Util class¶
- class crsyspqc.Util¶
Utilities for strings, etc.
- static substring(s, start, length)¶
Extract a substring of a string.
- Parameters:
s (str) – Source string.
start (int) – Start index (0 is the first character in the string). A negative value means count backwards from end of string.
length (int) – Length of substring to extract (specify 0 to indicate all characters to end of string).
- Returns:
Extracted substring.
- Return type:
str