text
xsdata.utils.text
CharType
Character types.
Source code in xsdata/utils/text.py
167 168 169 170 171 172 173 |
|
prefix(value, sep=':')
Return the first part of the string before the separator.
Source code in xsdata/utils/text.py
68 69 70 |
|
suffix(value, sep=':')
Return the last part of the string after the separator.
Source code in xsdata/utils/text.py
73 74 75 |
|
split(value, sep=':')
Split the given value with the given separator once.
Source code in xsdata/utils/text.py
78 79 80 81 |
|
capitalize(value, **kwargs)
Capitalize the given string.
Source code in xsdata/utils/text.py
84 85 86 |
|
original_case(value, **kwargs)
Return the input string but ensure it's a valid Python variable.
Source code in xsdata/utils/text.py
89 90 91 92 93 94 |
|
pascal_case(value, **kwargs)
Convert the given string to pascal case.
Source code in xsdata/utils/text.py
97 98 99 |
|
camel_case(value, **kwargs)
Convert the given string to camel case.
Source code in xsdata/utils/text.py
102 103 104 105 |
|
mixed_case(value, **kwargs)
Convert the given string to mixed case.
Source code in xsdata/utils/text.py
108 109 110 |
|
mixed_pascal_case(value, **kwargs)
Convert the given string to mixed pascal case.
Source code in xsdata/utils/text.py
113 114 115 |
|
mixed_snake_case(value, **kwargs)
Convert the given string to mixed snake case.
Source code in xsdata/utils/text.py
118 119 120 |
|
snake_case(value, **kwargs)
Convert the given string to snake case.
Source code in xsdata/utils/text.py
123 124 125 |
|
screaming_snake_case(value, **kwargs)
Convert the given string to screaming snake case.
Source code in xsdata/utils/text.py
128 129 130 |
|
kebab_case(value, **kwargs)
Convert the given string to kebab case.
Source code in xsdata/utils/text.py
133 134 135 |
|
split_words(value)
Split a string on capital letters and not alphanumeric characters.
Source code in xsdata/utils/text.py
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
|
classify(character)
String classifier.
Source code in xsdata/utils/text.py
176 177 178 179 180 181 182 183 184 185 186 187 188 |
|
escape_string(value)
Escape a string for code generation.
Source code in xsdata/utils/text.py
205 206 207 208 209 210 211 |
|
alnum(value)
Return the ascii alphanumerical characters in lower case.
Source code in xsdata/utils/text.py
217 218 219 |
|