NeoMutt  2024-12-12-14-g7b49f7
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
String manipulation functions

Lots of commonly-used string manipulation routines.

Functions

Function Description Links
mutt_istr_cmp() Compare two strings ignoring case, safely
mutt_istr_equal() Compare two strings, ignoring case
mutt_istr_find() Find first occurrence of string (ignoring case)
mutt_istr_remall() Remove all occurrences of substring, ignoring case
mutt_istr_startswith() Check whether a string starts with a prefix, ignoring case
mutt_istrn_cmp() Compare two strings ignoring case (to a maximum), safely
mutt_istrn_equal() Check for equality of two strings ignoring case (to a maximum), safely
mutt_istrn_rfind() Find last instance of a substring, ignoring case
mutt_str_adjust() Shrink-to-fit a string
mutt_str_asprintf() Format a string, allocating space as necessary
mutt_str_cmp() Compare two strings, safely
mutt_str_coll() Collate two strings (compare using locale), safely
mutt_str_copy() Copy a string into a buffer (guaranteeing NUL-termination)
mutt_str_dup() Copy a string, safely
mutt_str_equal() Compare two strings
mutt_str_find_word() Find the end of a word (non-space)
mutt_str_getenv() Get an environment variable
mutt_str_hyphenate() Hyphenate a snake-case string
mutt_str_inbox_cmp() Do two folders share the same path and one is an inbox sort_api
mutt_str_is_ascii() Is a string ASCII (7-bit)?
mutt_str_len() Calculate the length of a string, safely
mutt_str_lower() Convert all characters in the string to lowercase
mutt_str_lws_len() Measure the linear-white-space at the beginning of a string
mutt_str_remove_trailing_ws() Trim trailing whitespace from a string
mutt_str_replace() Replace one string with another
mutt_str_sep() Find first occurrence of any of delim characters in *stringp
mutt_str_skip_email_wsp() Skip over whitespace as defined by RFC5322
mutt_str_skip_whitespace() Find the first non-whitespace character in a string
mutt_str_startswith() Check whether a string starts with a prefix
mutt_str_sysexit() Return a string matching an error code
mutt_str_upper() Convert all characters in the string to uppercase
mutt_strn_copy() Copy a sub-string into a buffer
mutt_strn_dup() Duplicate a sub-string
mutt_strn_equal() Check for equality of two strings (to a maximum), safely
startswith() Check whether a string starts with a prefix
strcasestr() Find the first occurrence of needle in haystack, ignoring case
strsep() Extract a token from a string