Utility code related to string and text processing.
Simple (ASCII-only) text-processing functions, for speed and CTFE.
Case-insensitive ASCII string.
Case-insensitive Unicode string.
Like std.string.split (one argument version, which splits by whitespace), but only splits by ASCII and does not autodecode.
Consume a LF or CRLF terminated line from s. Sets s to null and returns the remainder if there is no line terminator in s.
Select best match from a list of items. Returns -1 if none are above the threshold.
Return the slice up to the first NUL character, or of the whole array if none is found.
Formats binary data as a hex dump (three-column layout consisting of hex offset, byte values in hex, and printable low-ASCII characters).
Where a delegate with this signature is required.
Convert any data to a valid UTF-8 bytestream, so D's string functions can properly work on it.
Fast version for static arrays of known length.
Covering slice-list of s with interleaved whitespace.
Select best match from a list of items. Returns null if none are above the threshold.
Simpler implementation of Levenshtein string distance
Return a number between 0.0 and 1.0 indicating how similar two strings are (1.0 if identical)
Get shortest string representation of a FP type that still converts to exactly the same number.