format_t now handles escaped characters in input strings.
This commit is contained in:
parent
62389888b6
commit
6d020a9b0b
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue