temple.util

Temple (C) Dylan Knutson, 2013, distributed under the: Boost Software License - Version 1.0 - August 17th, 2003

Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following:

The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor.

Members

Functions

countUntilAny
ptrdiff_t countUntilAny(string haystack, string[] subs)

Returns the location of the first occurance of any of 'subs' found in haystack, or -1 if none are found

endsWithIgnoreWhitespace
bool endsWithIgnoreWhitespace(string haystack, string needle)
Undocumented in source. Be warned that the author may not have intended to support it.
escapeQuotes
string escapeQuotes(string unclean)
Undocumented in source. Be warned that the author may not have intended to support it.
isBlockEnd
bool isBlockEnd(string haystack)
Undocumented in source. Be warned that the author may not have intended to support it.
isBlockStart
bool isBlockStart(string haystack)
Undocumented in source. Be warned that the author may not have intended to support it.
munchHeadOf
void munchHeadOf(string a, string b, size_t amt)
Undocumented in source. Be warned that the author may not have intended to support it.
nextDelim
DelimPos!(D)* nextDelim(string haystack, const(D)[] delims)

Returns the next matching delimeter in 'delims' found in the haystack, or null

startsWithBlockClose
bool startsWithBlockClose(string haystack)
Undocumented in source. Be warned that the author may not have intended to support it.
stripWs
string stripWs(string unclean)
Undocumented in source. Be warned that the author may not have intended to support it.
validBeforeShort
bool validBeforeShort(string str)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta