format_t now handles escaped characters in input strings.

This commit is contained in:
John Wiegley 2008-09-14 19:40:26 -04:00
parent 62389888b6
commit 6d020a9b0b

View file

@ -159,6 +159,8 @@ format_t::element_t * format_t::parse_elements(const string& fmt)
case 'r': current->chars = "\r"; break;
case 't': current->chars = "\t"; break;
case 'v': current->chars = "\v"; break;
case '\\': current->chars = "\\"; break;
default: current->chars = string(1, *p); break;
}
continue;
}