// generated by diplomat-tool import type { CollatorOptions } from "./CollatorOptions" import type { CollatorOptions_obj } from "./CollatorOptions" import type { CollatorResolvedOptions } from "./CollatorResolvedOptions" import type { DataError } from "./DataError" import type { DataProvider } from "./DataProvider" import type { Locale } from "./Locale" import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
/** *Seethe[Rustdocumentationfor`Collator`](https://docs.rs/icu/2.1.1/icu/collator/struct.Collator.html) for more information.
*/
export class Collator { /** @internal */
get ffiValue(): pointer;
/** *ConstructanewCollatorinstanceusingaparticulardatasource. * *Seethe[Rustdocumentationfor`try_new`](https://docs.rs/icu/2.1.1/icu/collator/struct.Collator.html#method.try_new) for more information.
*/ static createWithProvider(provider: DataProvider, locale: Locale, options: CollatorOptions_obj): Collator;
/** *Comparetwostrings. * *Ill-formedinputistreatedasiferrorshadbeenreplacedwithREPLACEMENTCHARACTERsaccording *totheWHATWGEncodingStandard. * *Seethe[Rustdocumentationfor`compare_utf16`](https://docs.rs/icu/2.1.1/icu/collator/struct.CollatorBorrowed.html#method.compare_utf16) for more information.
*/
compare(left: string, right: string): number;
/** *Theresolvedoptionsshowinghowthedefaultoptions,therequestedoptions, *andtheoptionsfromlocaledatawerecombined.Noneofthestructfields *willhave`Auto`asthevalue. * *Seethe[Rustdocumentationfor`resolved_options`](https://docs.rs/icu/2.1.1/icu/collator/struct.CollatorBorrowed.html#method.resolved_options) for more information.
*/
get resolvedOptions(): CollatorResolvedOptions;
/** *ConstructanewCollatorinstanceusingcompileddata. * *Seethe[Rustdocumentationfor`try_new`](https://docs.rs/icu/2.1.1/icu/collator/struct.Collator.html#method.try_new) for more information.
*/
constructor(locale: Locale, options: CollatorOptions_obj);
}
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.