#include "Encoding.h"
#include "Parser.h"
-#include "support/foreach.h"
#include "support/lstrings.h"
#include "support/textutils.h"
return c;
}
-}
+} // namespace
//
// Token
{
if (fixed_enc_)
is_.setEncoding(fixedenc);
+ catInit();
}
// An idocstringstream can not change the encoding
fixed_enc_(true)
{
+ catInit();
}
if (pos_ >= tokens_.size())
return dummy;
}
- // cerr << "looking at token " << tokens_[pos_]
+ // cerr << "looking at token " << tokens_[pos_]
// << " pos: " << pos_ << '\n';
return tokens_[pos_++];
}
return Arg(false, string());
}
if (match_index) {
- oss << end_string.substr(0, match_index)
+ oss << end_string.substr(0, match_index)
<< t.asInput();
match_index = 0;
} else