Module vibe.utils.string
Functions
Function name | Description |
---|---|
allOf | Checks if all characters in 'str ' are contained in 'chars '. |
anyOf | Checks if any character in 'str ' is contained in 'chars '. |
countUntilAny | Finds the first occurence of any of the characters in `chars ` |
formatString | Formats a string using formattedWrite() and returns it. |
icmp2 | Special version of icmp() with optimization for ASCII characters |
isAlpha | ASCII alpha character check |
joinLines | Joins an array of strings using 'linesep ' as the line separator (\n by default). |
sanitizeUTF8 | Takes a string with possibly invalid UTF8 sequences and outputs a valid UTF8 string as near to the original as possible. |
stripA | ASCII whitespace trimming (space and tab) |
stripLeftA | ASCII whitespace trimming (space and tab) |
stripRightA | ASCII whitespace trimming (space and tab) |
stripUTF8Bom | Strips the byte order mark of an UTF8 encoded string. This is useful when the string is coming from a file. |
Authors
Sönke Ludwig
Copyright
© 2012 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.