'Python' Style String Functions


[Up] [Top]

Documentation for package ‘strs’ version 0.1.0

Help Pages

strs_capitalize Capitalize the first character of each sentence
strs_casefold Perform case folding on strings
strs_center Center a string in a field of a given width
strs_contains Check if string contains a substring
strs_count Count occurrences of a substring in a string
strs_endswith Check if string ends with a specified suffix
strs_expandtabs Expand tabs in a string to spaces
strs_find Find the first occurrence of a substring in a string
strs_isalnum Check if string is alphanumeric
strs_isalpha Check if string contains only alphabetical characters
strs_isascii Check if string contains only ascii characters
strs_isdecimal Check if string contains only decimal characters
strs_isdigit Check if string contains only digits
strs_islower Check if string is in lowercase
strs_isnumeric Check if string contains only numeric characters
strs_isspace Check if string contains only whitespace characters
strs_istitle Check if string is in title case
strs_isupper Check if string is in uppercase
strs_join Join elements into a single string with a separator
strs_ljust Left-justify string in a field of a given width
strs_lower Convert string to lowercase
strs_lstrip Left strip characters from a string
strs_normalize_whitespace Normalize whitespace in a string
strs_removeprefix Remove a prefix from a string
strs_removesuffix Remove a suffix from a string
strs_replace Replace substring in a string
strs_rfind Find the last occurrence of a substring in a string
strs_rjust Right-justify string in a field of a given width
strs_rstrip Right strip characters from a string
strs_slice Slice substrings from a string
strs_split Split string into substrings
strs_splitlines Split string into lines
strs_startswith Check if string starts with a specified prefix
strs_strip Strip characters from both ends of a string
strs_swapcase Swap uppercase and lowercase characters in a string
strs_title Convert string to title case
strs_upper Convert string to uppercase