- determineIndentation
string determineIndentation(const(char)[] code)
Undocumented in source. Be warned that the author may not have intended to support it.
- endsWithKeyword
bool endsWithKeyword(const(char)[] code, string keyword)
Undocumented in source. Be warned that the author may not have intended to support it.
- indexOfKeyword
ptrdiff_t indexOfKeyword(const(char)[] code, string keyword, ptrdiff_t start)
Undocumented in source. Be warned that the author may not have intended to support it.
- isIdentifierChar
bool isIdentifierChar(dchar c)
Undocumented in source. Be warned that the author may not have intended to support it.
- isIdentifierSeparatingChar
bool isIdentifierSeparatingChar(dchar c)
Undocumented in source. Be warned that the author may not have intended to support it.
- runTestDataFileTests
void runTestDataFileTests(string dir, void delegate() onFileStart, void delegate(string code, string variable, JSONValue value) setVariable, void delegate(string code, string[] parts, string line) onTestLine, void delegate(string code) onFileFinished, string __file, size_t __line)
Iterates over all files in the given folder, reads them as D files until
a __EOF__ token is encountered, then parses the following lines in this
format per file:
- If the line is empty or starts with // ignore it
- If the line starts with : it's a variable assignment in form :variable=JSON
- Otherwise it's a tab separated line like 1 2 3
Finally, it's tested that at least one test has been tested.
- stripLineEndingLength
int stripLineEndingLength(const(char)[] code)
Undocumented in source. Be warned that the author may not have intended to support it.