icu4x
    Preparing search index...

    Class LineSegmenter

    An ICU4X line-break segmenter, capable of finding breakpoints in strings.

    See the Rust documentation for LineSegmenter for more information.

    Index

    Constructors

    Accessors

    • get ffiValue(): number

      Returns number

    Methods

    • Construct a [LineSegmenter] with custom options using compiled data. It automatically loads the best available payload data for Burmese, Khmer, Lao, and Thai.

      See the Rust documentation for new_auto for more information.

      Parameters

      • contentLocale: Locale
      • options: LineBreakOptions_obj

      Returns LineSegmenter

    • Construct a [LineSegmenter] with custom options. It automatically loads the best available payload data for Burmese, Khmer, Lao, and Thai, using a particular data source.

      See the Rust documentation for new_auto for more information.

      Parameters

      Returns LineSegmenter

    • Construct a [LineSegmenter] with default options (no locale-based tailoring) using compiled data. It automatically loads the best available payload data for Burmese, Khmer, Lao, and Thai.

      See the Rust documentation for new_auto for more information.

      Returns LineSegmenter

    • Construct a [LineSegmenter] with default options (no locale-based tailoring) and LSTM payload data for Burmese, Khmer, Lao, and Thai, using compiled data.

      See the Rust documentation for new_lstm for more information.

      Returns LineSegmenter

    • Construct a [LineSegmenter] with custom options and dictionary payload data for Burmese, Khmer, Lao, and Thai, using compiled data.

      See the Rust documentation for new_dictionary for more information.

      Parameters

      • contentLocale: Locale
      • options: LineBreakOptions_obj

      Returns LineSegmenter

    • Construct a [LineSegmenter] with custom options and LSTM payload data for Burmese, Khmer, Lao, and Thai, using compiled data.

      See the Rust documentation for new_lstm for more information.

      Parameters

      • contentLocale: Locale
      • options: LineBreakOptions_obj

      Returns LineSegmenter

    • Construct a [LineSegmenter] with custom options and LSTM payload data for Burmese, Khmer, Lao, and Thai, using a particular data source.

      See the Rust documentation for new_lstm for more information.

      Parameters

      Returns LineSegmenter