aboutsummaryrefslogtreecommitdiffstats
path: root/tests/res
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2012-02-02 17:25:07 +0900
committerTadashi G. Takaoka <takaoka@google.com>2012-02-02 20:19:26 +0900
commit5852a2594f4cce518e0b18069c895c2f8561d093 (patch)
treeb251436c5c38d19a71344b8a531f49bbc1ec2c25 /tests/res
parenta456c755ee8dfecf1068756a431978154ec6778f (diff)
downloadlatinime-5852a2594f4cce518e0b18069c895c2f8561d093.tar.gz
latinime-5852a2594f4cce518e0b18069c895c2f8561d093.tar.xz
latinime-5852a2594f4cce518e0b18069c895c2f8561d093.zip
Parse escaped sequence strictly in CSV parser
This change alters the CSV parser behavior. The parser only resolves * String resource reference. ["@string/res" -> "<content_of_res>"] * Other occurrence of escape sequence will be intact. ["\x" -> "\x"] Before this change, escape sequence in moreKeys string is parsed three times. At first in parsing string resource, next in CSV parser, and at last in KeySpecParser. So that representing single escape character itself is a bit annoying, "\\\\\\\\". Now we can represent single escape character itself in string resource by "\\\\". Change-Id: Ib978e17b779cc82585eed8241ac3857508b14bc7
Diffstat (limited to 'tests/res')
-rw-r--r--tests/res/values/donottranslate.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/res/values/donottranslate.xml b/tests/res/values/donottranslate.xml
index bfd1c1716..d0cde71a5 100644
--- a/tests/res/values/donottranslate.xml
+++ b/tests/res/values/donottranslate.xml
@@ -30,11 +30,14 @@
<string name="label_surrounded_by_spaces">" abc "</string>
<string name="escaped_char">"\\a"</string>
<string name="escaped_comma">"\\,"</string>
+ <string name="escaped_comma_escape">"a\\,\\"</string>
<string name="escaped_escape">"\\\\"</string>
<string name="escaped_label">"a\\bc"</string>
<string name="escaped_label_at_beginning">"\\abc"</string>
+ <string name="escaped_label_at_end">"abc\\"</string>
<string name="escaped_label_with_comma">"a\\,c"</string>
<string name="escaped_label_with_comma_at_beginning">"\\,bc"</string>
+ <string name="escaped_label_with_comma_at_end">"ab\\,"</string>
<string name="escaped_label_with_successive">"\\,\\\\bc"</string>
<string name="escaped_label_with_escape">"a\\\\c"</string>
<string name="multiple_chars">"a,b,c"</string>