:: Text -> Text -package:text

Wrap double quotes around a Text
Strip trailing newlines from string.
Remove leading and trailing space (including newlines) from string.
Remove leading space (including newlines) from string.
Remove trailing space (including newlines) from string.
Trim leading space and trailing space unless after .
Strip leading and trailing characters from string
Change CamelCase word to hyphenated lowercase (e.g., camel-case).
Escape string as needed for XML. Entity references are not preserved.
Converts a string into an NCName, i.e., an XML name without colons. Disallowed characters are escaped using ux%x, where %x is the hexadecimal unicode identifier of the escaped character.
Escape all non-ascii characters using numerical entities.
Escape all non-ascii characters using HTML5 entities, falling back to numerical entities.
Unescapes XML entities
Warning: traceId remains in code
Warning: Trace statement left in code
O(n) Reverse the characters of a string. Example:
>>> T.reverse "desrever"
"reversed"
Subject to fusion.
O(n) Convert a string to folded case. Subject to fusion. This function is mainly useful for performing caseless (also known as case insensitive) string comparisons. A string x is a caseless match for a string y if and only if:
toCaseFold x == toCaseFold y
The result string may be longer than the input string, and may differ from applying toLower to the input string. For instance, the Armenian small ligature "ﬓ" (men now, U+FB13) is case folded to the sequence "մ" (men, U+0574) followed by "ն" (now, U+0576), while the Greek "µ" (micro sign, U+00B5) is case folded to "μ" (small letter mu, U+03BC) instead of itself.
O(n) Convert a string to lower case, using simple case conversion. Subject to fusion. The result string may be longer than the input string. For instance, "İ" (Latin capital letter I with dot above, U+0130) maps to the sequence "i" (Latin small letter i, U+0069) followed by " ̇" (combining dot above, U+0307).
O(n) Convert a string to upper case, using simple case conversion. Subject to fusion. The result string may be longer than the input string. For instance, the German "ß" (eszett, U+00DF) maps to the two-letter sequence "SS".
O(n) Convert a string to title case, using simple case conversion. Subject to fusion. The first letter of the input is converted to title case, as is every subsequent letter that immediately follows a non-letter. Every letter that immediately follows another letter is converted to lower case. The result string may be longer than the input string. For example, the Latin small ligature fl (U+FB02) is converted to the sequence Latin capital letter F (U+0046) followed by Latin small letter l (U+006C). Note: this function does not take language or culture specific rules into account. For instance, in English, different style guides disagree on whether the book name "The Hill of the Red Fox" is correctly title cased—but this function will capitalize every word.
O(n) Remove leading and trailing white space from a string. Equivalent to:
dropAround isSpace
O(n) Remove leading white space from a string. Equivalent to:
dropWhile isSpace
O(n) Remove trailing white space from a string. Equivalent to:
dropWhileEnd isSpace