Skip to content

String Util

Class full path: StringUtil.StringUtil

implementation of the string utilities

Functions

split_string(string, pattern) staticmethod

split a string by a pattern

Parameters:

Name Type Description Default
string str

string

required
pattern str

pattern ... %s ... %n ...

required

Returns:

Type Description
Tuple[int, ...]

count of splitted strings, strings

to_string(value, length, fractions) staticmethod

convert a value to a string