1 | /**
|
2 | * HTML-safe compress white-spaces.
|
3 | * @param str - String to compress.
|
4 | * @returns String.
|
5 | */
|
6 | export declare function compressSpaces(str: string): string;
|
7 | /**
|
8 | * HTML-safe left trim.
|
9 | * @param str - String to trim.
|
10 | * @returns String.
|
11 | */
|
12 | export declare function trimLeft(str: string): string;
|
13 | /**
|
14 | * HTML-safe right trim.
|
15 | * @param str - String to trim.
|
16 | * @returns String.
|
17 | */
|
18 | export declare function trimRight(str: string): string;
|
19 | /**
|
20 | * String to numbers array.
|
21 | * @param str - Numbers string.
|
22 | * @returns Numbers array.
|
23 | */
|
24 | export declare function toNumbers(str: string): number[];
|
25 | /**
|
26 | * Normalize attribute name.
|
27 | * @param name - Attribute name.
|
28 | * @returns Normalized attribute name.
|
29 | */
|
30 | export declare function normalizeAttributeName(name: string): string;
|
31 | /**
|
32 | * Parse external URL.
|
33 | * @param url - CSS url string.
|
34 | * @returns Parsed URL.
|
35 | */
|
36 | export declare function parseExternalUrl(url: string): string;
|
37 | /**
|
38 | * Transform floats to integers in rgb colors.
|
39 | * @param color - Color to normalize.
|
40 | * @returns Normalized color.
|
41 | */
|
42 | export declare function normalizeColor(color: string): string;
|
43 | //# sourceMappingURL=string.d.ts.map |
\ | No newline at end of file |