// generated by diplomat-tool import type { DataError } from "./DataError" import type { DataProvider } from "./DataProvider" import type { LineBreakIteratorUtf16 } from "./LineBreakIteratorUtf16" import type { LineBreakOptions } from "./LineBreakOptions" import type { LineBreakOptions_obj } from "./LineBreakOptions" import type { Locale } from "./Locale" import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
/** *AnICU4Xline-breaksegmenter,capableoffindingbreakpointsinstrings. * *Seethe[Rustdocumentationfor`LineSegmenter`](https://docs.rs/icu/2.1.1/icu/segmenter/struct.LineSegmenter.html) for more information.
*/
export class LineSegmenter { /** @internal */
get ffiValue(): pointer; /** @internal */
constructor();
/** *Constructa{@linkLineSegmenter}withdefaultoptions(nolocale-basedtailoring)usingcompileddata.Itautomaticallyloadsthebest *availablepayloaddataforBurmese,Khmer,Lao,andThai. * *Seethe[Rustdocumentationfor`new_auto`](https://docs.rs/icu/2.1.1/icu/segmenter/struct.LineSegmenter.html#method.new_auto) for more information.
*/ static createAuto(): LineSegmenter;
/** *Constructa{@linkLineSegmenter}withdefaultoptions(nolocale-basedtailoring)andLSTMpayloaddatafor *Burmese,Khmer,Lao,andThai,usingcompileddata. * *Seethe[Rustdocumentationfor`new_lstm`](https://docs.rs/icu/2.1.1/icu/segmenter/struct.LineSegmenter.html#method.new_lstm) for more information.
*/ static createLstm(): LineSegmenter;
/** *Constructa{@linkLineSegmenter}withdefaultoptions(nolocale-basedtailoring)anddictionarypayloaddatafor *Burmese,Khmer,Lao,andThai,usingcompileddata * *Seethe[Rustdocumentationfor`new_dictionary`](https://docs.rs/icu/2.1.1/icu/segmenter/struct.LineSegmenter.html#method.new_dictionary) for more information.
*/ static createDictionary(): LineSegmenter;
/** *Constructa{@linkLineSegmenter}withcustomoptionsusingcompileddata.Itautomaticallyloadsthebest *availablepayloaddataforBurmese,Khmer,Lao,andThai. * *Seethe[Rustdocumentationfor`new_auto`](https://docs.rs/icu/2.1.1/icu/segmenter/struct.LineSegmenter.html#method.new_auto) for more information.
*/ static autoWithOptions(contentLocale: Locale | null, options: LineBreakOptions_obj): LineSegmenter;
/** *Constructa{@linkLineSegmenter}withcustomoptions.Itautomaticallyloadsthebest *availablepayloaddataforBurmese,Khmer,Lao,andThai,usingaparticulardatasource. * *Seethe[Rustdocumentationfor`new_auto`](https://docs.rs/icu/2.1.1/icu/segmenter/struct.LineSegmenter.html#method.new_auto) for more information.
*/ static autoWithOptionsAndProvider(provider: DataProvider, contentLocale: Locale | null, options: LineBreakOptions_obj): LineSegmenter;
/** *Constructa{@linkLineSegmenter}withcustomoptionsandLSTMpayloaddatafor *Burmese,Khmer,Lao,andThai,usingcompileddata. * *Seethe[Rustdocumentationfor`new_lstm`](https://docs.rs/icu/2.1.1/icu/segmenter/struct.LineSegmenter.html#method.new_lstm) for more information.
*/ static lstmWithOptions(contentLocale: Locale | null, options: LineBreakOptions_obj): LineSegmenter;
/** *Constructa{@linkLineSegmenter}withcustomoptionsandLSTMpayloaddatafor *Burmese,Khmer,Lao,andThai,usingaparticulardatasource. * *Seethe[Rustdocumentationfor`new_lstm`](https://docs.rs/icu/2.1.1/icu/segmenter/struct.LineSegmenter.html#method.new_lstm) for more information.
*/ static lstmWithOptionsAndProvider(provider: DataProvider, contentLocale: Locale | null, options: LineBreakOptions_obj): LineSegmenter;
/** *Constructa{@linkLineSegmenter}withcustomoptionsanddictionarypayloaddatafor *Burmese,Khmer,Lao,andThai,usingcompileddata. * *Seethe[Rustdocumentationfor`new_dictionary`](https://docs.rs/icu/2.1.1/icu/segmenter/struct.LineSegmenter.html#method.new_dictionary) for more information.
*/ static dictionaryWithOptions(contentLocale: Locale | null, options: LineBreakOptions_obj): LineSegmenter;
/** *Constructa{@linkLineSegmenter}withcustomoptionsanddictionarypayloaddatafor *Burmese,Khmer,Lao,andThai,usingaparticulardatasource. * *Seethe[Rustdocumentationfor`new_dictionary`](https://docs.rs/icu/2.1.1/icu/segmenter/struct.LineSegmenter.html#method.new_dictionary) for more information.
*/ static dictionaryWithOptionsAndProvider(provider: DataProvider, contentLocale: Locale | null, options: LineBreakOptions_obj): LineSegmenter;
/** *Segmentsastring. * *Ill-formedinputistreatedasiferrorshadbeenreplacedwithREPLACEMENTCHARACTERsaccording *totheWHATWGEncodingStandard. * *Seethe[Rustdocumentationfor`segment_utf16`](https://docs.rs/icu/2.1.1/icu/segmenter/struct.LineSegmenterBorrowed.html#method.segment_utf16) for more information.
*/
segment(input: string): LineBreakIteratorUtf16;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.