CASP Python Libraries
This documentation primarily focuses on the usage of functions from 'casp', 'casp_be', 'casp_gpio' and 'casp_udio' namespaces.
Loading...
Searching...
No Matches
casp_utils.py
1"""! This module provides helper functions that are used by other modules of this package.
2"""
3
4import sys
5if sys.version_info[:3] < (3,9):
6 from typing import List as list
7
8def SplitString(in_str: str, sep: str='$') -> list[str]:
9 """! Function that splits an input string delimited by a specified character and returns the sub-strings
10
11 in_str: input string to split
12
13 sep: delimited character. defaulted to '$'
14
15 return value: returns a list of sub-strings resulted from the split.
16 """
17 return in_str.split(sep)
list[str] SplitString(str in_str, str sep='$')
Function that splits an input string delimited by a specified character and returns the sub-strings.
Definition casp_utils.py:8