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.
-
class
xsdata.utils.text.StringType[source]¶ Bases:
object-
UPPER= 1¶
-
LOWER= 2¶
-
NUMERIC= 3¶
-
OTHER= 4¶
-