Module /fusion/experimental/string
Experimental string operators.
WARNING
This module contains unstable, experimental features. There is NO SUPPORT for this module.
Exported Bindings
(string_explode string)
Returns a stretchy list of the Unicode scalar values (code points) in the given non-null string.
(string_implode list)
Returns a string filled by the given list of Unicode scalar values.
(string_index_codepoints string substring)
Returns the number of code points within string of the first occurrence
of substring.
Returns void if the substring doesn't occur within the string.
Since Fusion doesn't define a specific implementation of strings, this procedure is not guaranteed to have better than O(n) time.
(string_size_codepoints string)
Returns the number of code points in string.
Since Fusion doesn't define a specific implementation of strings, this procedure is not guaranteed to have better than O(n) time.
(string_size_utf8 string)
Returns the size of a string in UTF-8 bytes. Throws an exception if the
argument contains invalid Unicode data (such as mismatched surrogates).
Given null.string the result is zero.
Since Fusion doesn't define a specific implementation of strings, this procedure is not guaranteed to have better than O(n) time.
(string_split_noregexp string separator)
Splits string into an immutable list of strings using separator.
Both arguments must be actual strings.
Returns an empty list when string is an empty string.
The separator is not a regular expression; callers needing that feature
should use regexp_split from the FusionJavaRegexp package, being careful
to adapt code to that method's different argument order, result type (sexp
instead of immutable list), and edge cases around leading matches. Test your
code thoroughly.