vibe.d beta banner
get vibe.d
0.7.30

Module vibe.utils.string

Utility functions for string processing

Functions

Name Description
allOf Checks if all characters in 'str' are contained in 'chars'.
anyOf Checks if any character in 'str' is contained in 'chars'.
formatAlloc Same as std.string.format, just using an allocator.
icmp2 Special version of icmp() with optimization for ASCII characters
indexOfAny Finds the first occurence of any of the characters in chars
indexOfCT
indexOfCT
matchBracket Finds the closing bracket (works with any of '[', '(', '<', '{').
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.

Aliases

Name Type Description
countUntilAny
Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.