Add support for \a \f \v escape sequences, and make supåport for \e standards compliant

darcs-hash:20060824002609-ac50b-a1a9150d096647d9ab4c39d3245b528d7e75cd57.gz
This commit is contained in:
axel 2006-08-24 10:26:09 +10:00
parent 303473f20c
commit 4dbac8f941

View file

@ -843,9 +843,27 @@ wchar_t *unescape( const wchar_t * orig, int unescape_special )
break;
}
case L'a':
{
in[out_pos]=L'\a';
break;
}
case L'f':
{
in[out_pos]=L'\f';
break;
}
case L'v':
{
in[out_pos]=L'\v';
break;
}
case L'e':
{
in[out_pos]=L'\e';
in[out_pos]=L'\x1b';
break;
}