-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstring.d.ts
More file actions
129 lines (67 loc) · 2.29 KB
/
Copy pathstring.d.ts
File metadata and controls
129 lines (67 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
export interface StringJsConstructor {
new (value:any): StringJs
ENTITIES: Object
TMPL_CLOSE: string
TMPL_OPEN: string
VERSION:string
extendPrototype()
restorePrototype()
}
export interface StringJs extends String {
(value: any): this
constructor: StringJsConstructor
s: string
between(left: string, right: string): this
camelize(): this
capitalize(): this
chompLeft(prefix: string): this
chompRight(suffix: string): this
collapseWhitespace(): this
contains(string: string): number
count(substring): number
dasherize(): this
equalsIgnoreCase(prefix: string): boolean
latinise(): this
decodeHtmlEntities(): this
escapeHTML(): this
ensureLeft(prefix: string): this
ensureRight(suffix: string): this
humanize(): this
isAlpha(): boolean
isAlphaNumeric(): boolean
isEmpty(): boolean
isLower(): boolean
isNumeric(): boolean
isUpper(): boolean
left(number: number): this
lines(): string[],
pad(length: number, character?: string): this
padLeft(length: number, character?: string): this
padRight(length: number, character?: string): this
parseCSV(delimiter?: string, qualifier?: string, escape?: string, lineDelimiter?: string): string[]
replaceAll(search: string, replace: string): this
splitLeft(separator: string, maxSplit?: number, limit?: number): string[]
splitRight(separator: string, maxSplit?: number, limit?: number): string[]
strip(...remove: string[]): this
stripLeft(pattern: string): this
stripRight(pattern: string): this
right(number: number): this
setValue(value: string): this
slugify(): this
stripPunctuation(): this
stripTags(...tags: string[]): this
template(values: object, opening?: string, closing?: string): this
times(number: number): this
titleCase(): this
toBoolean(): boolean
toFloat(precision?: number): number
toInt(): number
truncate(length, ending?: string): this
toCSV(delimiter?: string, qualifier?: string): this
toCSV(options?: object): this
underscore(): this
unescapeHTML(): this
wrapHTML(tag?: string, attributes?: object): this
}
declare function StringJsFactory(value:any): StringJs
export default StringJs