LSubstring::LSubstring(string & s, LRegex const & r)
: ps(&s)
{
- LRegex::MatchPair res = r.first_match(s);
+ LRegex::MatchPair const res = r.first_match(s);
if (res.first != string::npos) {
n = res.second;
pos = res.first;
}
-LSubstring & LSubstring::operator=(char const * p)
+LSubstring & LSubstring::operator=(string::value_type const * p)
{
ps->replace(pos, n, p);
return *this;
}
-LSubstring & LSubstring::operator=(char c)
+LSubstring & LSubstring::operator=(string::value_type c)
{
ps->replace(pos, n, 1, c);
return *this;