NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
String manipulation functions

Lots of commonly-used string manipulation routines.

Function Description
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_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_istr_remall() Remove all occurrences of substring, ignoring case
mutt_istr_startswith() Check whether a string starts with a prefix, ignoring case
mutt_str_adjust() Shrink-to-fit a string
mutt_str_append_item() Add string to another separated by sep
mutt_str_asprintf() Format a string, allocating space as necessary
mutt_str_atoi() Convert ASCII string to an integer
mutt_str_atol() Convert ASCII string to a long
mutt_str_atos() Convert ASCII string to a short
mutt_str_atoui() Convert ASCII string to an unsigned integer
mutt_str_atoul() Convert ASCII string to an unsigned long
mutt_str_atoull() Convert ASCII string to an unsigned long long
mutt_str_cat() Concatenate two strings
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_dequote_comment() Un-escape characters in an email address comment
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_inline_replace() Replace the beginning of a string
mutt_str_is_ascii() Is a string ASCII (7-bit)?
mutt_str_is_email_wsp() Is this a whitespace character (for an email header)
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_lws_rlen() Measure the linear-white-space at the end of a string
mutt_strn_cat() Concatenate two strings
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
mutt_str_next_word() Find the next word in a string
mutt_strn_rfind() Find last instance of a substring
mutt_str_remove_trailing_ws() Trim trailing whitespace from a string
mutt_str_replace() Replace one string with another
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