• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// generated by diplomat-tool
2import type { CodePointSetBuilder } from "./CodePointSetBuilder"
3import type { DataError } from "./DataError"
4import type { DataProvider } from "./DataProvider"
5import type { Locale } from "./Locale"
6import type { TitlecaseOptions } from "./TitlecaseOptions"
7import type { TitlecaseOptions_obj } from "./TitlecaseOptions"
8import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
9
10
11/** See the [Rust documentation for `CaseMapper`](https://docs.rs/icu/latest/icu/casemap/struct.CaseMapper.html) for more information.
12*/
13
14
15export class CaseMapper {
16
17    get ffiValue(): pointer;
18
19    static createWithProvider(provider: DataProvider): CaseMapper;
20
21    lowercase(s: string, locale: Locale): string;
22
23    uppercase(s: string, locale: Locale): string;
24
25    titlecaseSegmentWithOnlyCaseData(s: string, locale: Locale, options: TitlecaseOptions_obj): string;
26
27    fold(s: string): string;
28
29    foldTurkic(s: string): string;
30
31    addCaseClosureTo(c: codepoint, builder: CodePointSetBuilder): void;
32
33    simpleLowercase(ch: codepoint): codepoint;
34
35    simpleUppercase(ch: codepoint): codepoint;
36
37    simpleTitlecase(ch: codepoint): codepoint;
38
39    simpleFold(ch: codepoint): codepoint;
40
41    simpleFoldTurkic(ch: codepoint): codepoint;
42
43    constructor();
44}