//
void RegExTestCase::parseFlags(const wxString& flags)
{
- for (const wxChar *p = flags; *p; p++) {
- switch (*p) {
+ for ( wxString::const_iterator p = flags.begin(); p != flags.end(); ++p )
+ {
+ switch ( (*p).GetValue() ) {
// noop
case '-': break;
wxString str;
for (size_t i = 0; i < arg.length(); i++) {
- wxUChar ch = arg[i];
+ wxUChar ch = (wxChar)arg[i];
const wxChar *p = wxStrchr(needEscape, ch);
if (p)
else if (wxIscntrl(ch))
str += wxString::Format(_T("\\%03o"), ch);
else
- str += ch;
+ str += (wxChar)ch;
}
return str.length() == arg.length() && str.find(' ') == wxString::npos ?