pyxx.strings.str_includes_only¶
- pyxx.strings.str_includes_only(value: str, allowed_chars: str) bool¶
Checks that a string contains only characters present in a specified set of characters
- Parameters:
value (str) – String whose contents are to be analyzed
allowed_chars (str) – If
valuecontains characters that are not inallowed_chars, the function should returnFalse
- Returns:
Returns
Trueifvalueis composed of only characters found inallowed_chars, andFalseotherwise- Return type:
bool