UNPKG

1.39 kBTypeScriptView Raw
1/**
2 * Determines if haystack ends with needle.
3 */
4export declare function endsWith(haystack: string, needle: string): boolean;
5export declare function isLowerAsciiLetter(code: number): boolean;
6export declare function isUpperAsciiLetter(code: number): boolean;
7export declare function equalsIgnoreCase(a: string, b: string): boolean;
8/**
9 * @returns the length of the common prefix of the two strings.
10 */
11export declare function commonPrefixLength(a: string, b: string): number;
12/**
13 * Escapes regular expression characters in a given string
14 */
15export declare function escapeRegExpCharacters(value: string): string;
16export declare function startsWithIgnoreCase(str: string, candidate: string): boolean;
17export declare function split(s: string, splitter: string): IterableIterator<string>;
18export declare function escapeInvisibleChars(value: string): string;
19export declare function unescapeInvisibleChars(value: string): string;
20export declare function compare(a: string, b: string): number;
21export declare function compareSubstring(a: string, b: string, aStart?: number, aEnd?: number, bStart?: number, bEnd?: number): number;
22export declare function compareIgnoreCase(a: string, b: string): number;
23export declare function compareSubstringIgnoreCase(a: string, b: string, aStart?: number, aEnd?: number, bStart?: number, bEnd?: number): number;
24//# sourceMappingURL=strings.d.ts.map
\No newline at end of file