fast.parsing

Text parsing functionality.

Members

Functions

fixedTermStrCmp
int fixedTermStrCmp(const(C)* p_str, bool delegate(ref immutable(char)*, ref const(char)*) callback)

Compares a string of unknown length against a statically known key.

hexDecode
uint hexDecode(char c)

Decodes a single hexadecimal character.

hexDecode4
uint hexDecode4(const(char)* hex)
Undocumented in source. Be warned that the author may not have intended to support it.
hexDecode4
inout(char)* hexDecode4(inout(char)* hex, uint result)
Undocumented in source. Be warned that the author may not have intended to support it.
parseNumber
bool parseNumber(const(char)* str, N n)

Parse a number from a character read pointer.

seekPast
void seekPast(const(char)* p)

Searches for a specific character known to appear in the stream and skips the read pointer over it.

seekToAnyOf
void seekToAnyOf(const(char)* p)
Undocumented in source. Be warned that the author may not have intended to support it.
seekToRanges
void seekToRanges(const(char)* p)
Undocumented in source. Be warned that the author may not have intended to support it.
skipAllOf
void skipAllOf(const(char)* p)

Skips the read pointer over all and any of the given characters.

skipAsciiWhitespace
void skipAsciiWhitespace(const(char)* p)

Skips the read pointer over ASCII white-space comprising '\t', '\r', '\n' and ' '.

skipCharRanges
void skipCharRanges(const(char)* p)

Skips the read pointer over characters that fall into any of up to 8 ranges of characters. The first character in cs is the start of the first range, the second character is the end. This is repeated for any other character pair. A character falls into a range from a to b if a <= *p <= b.

skipToNextLine
void skipToNextLine(const(char)* p)

Sets the read pointer to the start of the next line.

Structs

NumberOptions
struct NumberOptions

Options for parseNumber.

Meta