xsdata.utils.text module¶
-
xsdata.utils.text.
prefix
(string, sep=':')[source]¶ Return the first part of the string before the separator.
-
xsdata.utils.text.
suffix
(string, sep=':')[source]¶ Return the last part of the string after the separator.
-
xsdata.utils.text.
split
(string, sep=':')[source]¶ Separate the given string with the given separator and return a tuple of the prefix and suffix.
If the separator isn’t present in the string return None as prefix.
-
xsdata.utils.text.
split_words
(string)[source]¶ Split a string on new capital letters and not alphanumeric characters.