Methods
(static) camelize(string) → {String}
Camelizes a string
骆驼是一根绳子
Parameters:
Name | Type | Description |
---|---|---|
string |
String | String to camelize用绳子捆骆驼 |
Returns:
Camelized version of a string
- Type
- String
(static) capitalize(string, firstLetterOnlyopt) → {String}
Capitalizes a string
将字符串大写
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
string |
String | String to capitalize字符串大写 | |
firstLetterOnly |
Boolean |
<optional> |
If true only first letter is capitalized and other letters stay untouched, if false first letter is capitalized and other letters are converted to lowercase.如果为真,则只有第一个字母大写 其他字母保持不变,如果假的第一个字母大写 其他字母都转换成小写。 |
Returns:
Capitalized version of a string
- Type
- String
(static) escapeXml(string) → {String}
Escapes XML in a string
在字符串中转义XML
Parameters:
Name | Type | Description |
---|---|---|
string |
String | String to escape转义字符串 |
Returns:
Escaped version of a string
- Type
- String
(static) graphemeSplit(textstring) → {Array}
Divide a string in the user perceived single units
将字符串分成用户感知到的单个单位
Parameters:
Name | Type | Description |
---|---|---|
textstring |
String | String to escape转义字符串 |
Returns:
array containing the graphemes
- Type
- Array