template delimited(char delimiter)
enum findFormatCode =
q{
{
if (haystack == null)
return null;
for(;;) {
auto nextLimit = %s;
auto value = haystack[0..nextLimit - haystack];
if(value == needle) {
return value;
}
if(%s) {
return null;
}
haystack = nextLimit + 1;
}
}
};