Skip to content

StringUtil

implementation of the string utilities

StringUtil

Canonical path: Utils.StringUtil.StringUtil

implementation of the string utilities

split_string staticmethod

split_string(string: str, pattern: str) -> Tuple[int, ...]

split a string by a pattern

Parameters:

  • string (str) –

    string

  • pattern (str) –

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

Returns:

  • Tuple[int, ...]

    count of splitted strings, strings

to_string staticmethod

to_string(value: Any, length: int, fractions: int)

convert a value to a string