DHUStringExtensions extension

on

Properties

clean String
Removes all whitespace characters and collapses the string into a single line. Example: "Line 1\n Line 2" => "Line1Line2"
no setter
removeEmptyLines String
Removes consecutive empty lines, replacing them with single newlines. Example: "Line1\n\n\nLine2" => "Line1\nLine2"
no setter
removeWhiteSpaces String
Removes all whitespace characters (spaces) from the string. Example: "Line 1 Line 2" => "Line1Line2"
no setter
toOneLine String
Converts the string into a single line by replacing newline characters. Example: "Line1\nLine2" => "Line1Line2"
no setter