Namespace: string

fabric.util.string

String utilities
Source:

Methods

(static) camelize(string) → {String}

Camelizes a string
Parameters:
Name Type Description
string String String to camelize
Source:
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.
Source:
Returns:
Capitalized version of a string
Type
String

(static) escapeXml(string) → {String}

Escapes XML in a string
Parameters:
Name Type Description
string String String to escape
Source:
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
Source:
Returns:
array containing the graphemes
Type
Array