dictIO.utils.strings¶
Utility functions for string manipulation.
Functions
|
Remove quotes (single or double quotes) from the string object passed in. |
|
Describe the line-by-line differences between two text values. |
- dictIO.utils.strings.remove_quotes(string: str) str¶
Remove quotes (single or double quotes) from the string object passed in.
Removes quote characters throughout the string, including quotes between other characters.
- Parameters:
string (str) – Text from which to remove single and double quote characters.
- Returns:
The input text with all single and double quote characters removed.
- Return type:
str
- dictIO.utils.strings.string_diff(text_1: str, text_2: str) str¶
Describe the line-by-line differences between two text values.
Blank lines in the diff output are omitted.
- Parameters:
text_1 (str) – First text value to compare.
text_2 (str) – Second text value to compare.
- Returns:
A summary containing changed lines and the total number of differences.
- Return type:
str