Classes using rules and patterns should standardize the way they do quoting, and
deviations should be documented.
Quoting mechanisms in use include:
1. Single quotes. Inside OR OUTSIDE of single quotes, two adjacent single
quotes represents a literal single quote.
2. Backslash. This escapes the next character, or initiates an escape sequence
(see unescape(), unescapeAt()).
ICU parsers use zero, one, or two of these mechanisms.
When a parser GENERATES a pattern (toPattern(), etc.) it will need to quote
characters that otherwise would be taken for syntax characters.
The general rule for doing so:
*** Quote all LITERAL characters in a rule/pattern for which isIdContinue(c) ==
FALSE.
This was decided in a staff meeting technical discussion 9/8/2003.