pop3mail v1.3.2 Pop3mail.StringUtils View Source
String manipulation utilities.
Link to this section Summary
Functions
true if search is found in content
test if string is nil or has empty length
Print text if it valid utf-8 encoded. If not, print the alternative text.
Strip a character. Only when it occurs both at the start and end if the text. Strip once only.
Strip double quotes. Only when they occur at the start and end if the text. Strip balanced. Once only.
Link to this section Functions
Link to this function
contains?(content, search) View Source
true if search is found in content
Link to this function
is_empty?(str) View Source
test if string is nil or has empty length
Link to this function
printable(str, printable_alternative \\ "") View Source
Print text if it valid utf-8 encoded. If not, print the alternative text.
Link to this function
remove_balanced(text, remove) View Source
Strip a character. Only when it occurs both at the start and end if the text. Strip once only.
Link to this function
unquoted(text) View Source
Strip double quotes. Only when they occur at the start and end if the text. Strip balanced. Once only.