diff options
author | 2006-08-24 10:26:09 +1000 | |
---|---|---|
committer | 2006-08-24 10:26:09 +1000 | |
commit | 4dbac8f941ff5aeb348de16d2f90f0d9fa0b9b62 (patch) | |
tree | c1aaedd37d3c31f1d10ac1d9d607376ce10f3cfb | |
parent | 303473f20cc4ff55318b02741f66405480e68426 (diff) |
Add support for \a \f \v escape sequences, and make supåport for \e standards compliant
darcs-hash:20060824002609-ac50b-a1a9150d096647d9ab4c39d3245b528d7e75cd57.gz
-rw-r--r-- | common.c | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -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; } |