| // generated by diplomat-tool |
| import type { LocaleParseError } from "./LocaleParseError" |
| import type { pointer, codepoint } from "./diplomat-runtime.d.ts"; |
| |
| |
| /** An ICU4X Locale, capable of representing strings like `"en-US"`. |
| * |
| *See the [Rust documentation for `Locale`](https://docs.rs/icu/latest/icu/locale/struct.Locale.html) for more information. |
| */ |
| |
| |
| export class Locale { |
| |
| get ffiValue(): pointer; |
| |
| static fromString(name: string): Locale; |
| |
| static und(): Locale; |
| |
| clone(): Locale; |
| |
| get basename(): string; |
| |
| getUnicodeExtension(s: string): string | null; |
| |
| get language(): string; |
| |
| set language(s: string); |
| |
| get region(): string | null; |
| |
| set region(s: string); |
| |
| get script(): string | null; |
| |
| set script(s: string); |
| |
| static normalize(s: string): string; |
| |
| toString(): string; |
| |
| normalizingEq(other: string): boolean; |
| |
| compareToString(other: string): number; |
| |
| compareTo(other: Locale): number; |
| } |