X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstrings%2Fregex.cpp;h=68cf374dcd2544064e45ce661ddb01768f962f1d;hp=60b8ed10294aa1e83b399cb3605a3ef9750b597b;hb=817e584903996a041692640720a5a272d847a3c7;hpb=c7afef88380ebebc8c2b04e48664d73281ec8848 diff --git a/source/strings/regex.cpp b/source/strings/regex.cpp index 60b8ed1..68cf374 100644 --- a/source/strings/regex.cpp +++ b/source/strings/regex.cpp @@ -10,7 +10,7 @@ namespace { /** Writes an integer to a Regex code string, in little-endian order. */ template -void write_int(T n, Msp::Regex::Code &code) +void write_int(T n, basic_string &code) { for(unsigned i=0; i>(i*8))&0xFF; @@ -18,7 +18,7 @@ void write_int(T n, Msp::Regex::Code &code) /** Reads an integer from a Regex code string, in little-endian order. */ template -T read_int(Msp::Regex::Code::const_iterator &c) +T read_int(basic_string::const_iterator &c) { T result = 0; for(unsigned i=0; ig2.begin) + if(g1.begin>g2.begin) return false; // Longer match at same position is better