strings

String manipulation utilities.

Functions

camel_case_initials(name)[source]
complex_string(complex_num)[source]
initials(name, sep_values=[' ', '_'])[source]
split_string_list_to_isolate_substrings(string_list, *substrings_to_isolate)[source]

Similar to split_string_to_isolate_substrings, but the first argument is a list of strings, thought of as something already broken up a bit.

split_string_to_isolate_substrings(full_string, *substrings_to_isolate)[source]

Given a string, and an arbitrary number of possible substrings, returns a list of strings which would concatenate to make the full string, and in which these special substrings appear as their own elements.

For example, split_string_to_isolate_substrings(“to be or not to be”, “to”, “be”) would return [“to”, ” “, “be”, ” or not “, “to”, ” “, “be”]

to_camel_case(name)[source]