/** Writes an integer to a Regex code string, in little-endian order. */
template<typename T>
-void write_int(T n, Msp::Regex::Code &code)
+void write_int(T n, basic_string<unsigned char> &code)
{
for(unsigned i=0; i<sizeof(T); ++i)
code += (n>>(i*8))&0xFF;
/** Reads an integer from a Regex code string, in little-endian order. */
template<typename T>
-T read_int(Msp::Regex::Code::const_iterator &c)
+T read_int(basic_string<unsigned char>::const_iterator &c)
{
T result = 0;
for(unsigned i=0; i<sizeof(T); ++i)
unsigned char mask[32] = {0};
unsigned type = 0;
bool range = false;
- unsigned char first=0, last = 0;
+ unsigned char first = 0, last = 0;
for(string::const_iterator i=iter; i!=end; ++i)
{
unsigned char c = *i;