Methods
(static) camelize(string) → {String}
Camelizes a string
Camelizes字符串
Parameters:
Name | Type | Description |
---|---|---|
string |
String | String to camelize字符串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