ICU-990 backslash escape single quotes outside of quoted strings
X-SVN-Rev: 5142
This commit is contained in:
parent
34915937bd
commit
f89574d8e8
@ -523,11 +523,11 @@ void TransliterationRule::_appendToRule(UnicodeString& rule,
|
||||
}
|
||||
}
|
||||
|
||||
// Double ' and '\' and don't begin a quote just for them
|
||||
// Escape ' and '\' and don't begin a quote just for them
|
||||
else if (quoteBuf.length() == 0 &&
|
||||
(c == (UChar) 0x0027 /*'*/ ||
|
||||
c == (UChar) 0x005C /*\*/)) {
|
||||
rule.append(c);
|
||||
rule.append((UChar) 0x005C);
|
||||
rule.append(c);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user