Lines Matching full:code
29 * <code>RuleBasedTransliterator</code> is a transliterator
34 * Whitespace, as defined by <code>Character.isWhitespace()</code>,
50 * <dt><code>$alefmadda=\u0622;</code></dt>
54 * "<code>$alefmadda</code>", will be replaced by
60 * text of any length, including no text at all ("<code>$empty=;</code>").
61 * The right hand side may contain embedded <code>UnicodeSet</code>
62 * patterns, for example, "<code>$softvowel=[eiyEIY]</code>".</dd>
64 * <dt><code>ai>$alefmadda;</code></dt>
70 * <dt><code>ai<$alefmadda;</code></dt>
78 * <dt><code>ai<>$alefmadda;</code></dt>
92 * text. For example, the pattern "<code>abc{def}</code>"
93 * indicates the characters "<code>def</code>" must be
94 * preceded by "<code>abc</code>" for a successful match.
95 * If there is a successful match, "<code>def</code>" will
96 * be replaced, but not "<code>abc</code>". The final '<code>}</code>'
97 * is optional, so "<code>abc{def</code>" is equivalent to
98 * "<code>abc{def}</code>". Another example is "<code>{123}456</code>"
99 * (or "<code>123}456</code>") in which the literal
100 * pattern "<code>123</code>" must be followed by "<code>456</code>".
105 * output string contains the character '<code>|</code>', this is
111 * special character '<code>@</code>'. Examples:</p>
114 * <p><code>a {foo} z > | @ bar; # foo -> bar, move cursor
117 * y and z</code></p>
122 * <p><code>UnicodeSet</code> patterns may appear anywhere that
124 * Contrariwise, <code>UnicodeSet</code> patterns may themselves
125 * contain variable references, such as "<code>$a=[a-z];$not_a=[^$a]</code>",
126 * or "<code>$range=a-z;$ll=[$range]</code>".</p>
128 * <p><code>UnicodeSet</code> patterns may also be embedded directly
132 * <p><code>$vowel=[aeiou]; $vowel>'*'; # One way to do this<br>
135 * Another way</code></p>
147 * <p><code>([a-z]) > $1 $1;
150 * ([:Lu:]) ([:Ll:]) > $2 $1; # reverse order of Lu-Ll pairs</code></p>
154 * "<code>(</code>" and "<code>)</code>". Up to
156 * output string, "<code>$1</code>" through "<code>$9</code>"
163 * special characters '<code>^</code>' and '<code>$</code>'. For example:</p>
166 * <p><code>^ a > 'BEG_A'; # match 'a' at start of text<br>
171 * of 'z'</code></p>
174 * <p>It is also possible to match the beginning or the end of the text using a <code>UnicodeSet</code>.
175 * This is done by including a virtual anchor character '<code>$</code>' at the end of the
181 * <p><code>$x = [a-z$]; # match 'a' through 'z' OR anchor<br>
183 * 3 $x > 4; # match '3' before a-z or at the end</code></p>
194 * <td valign="top" nowrap><code>abc{def}>x|y</code></td>
198 * <td valign="top" nowrap><code>xyz>r</code></td>
202 * <td valign="top" nowrap><code>yz>q</code></td>
206 * <p>Applying these rules to the string "<code>adefabcdefz</code>"
211 * <td valign="top" nowrap><code>|adefabcdefz</code></td>
216 * <td valign="top" nowrap><code>a|defabcdefz</code></td>
221 * <td valign="top" nowrap><code>ad|efabcdefz</code></td>
226 * <td valign="top" nowrap><code>ade|fabcdefz</code></td>
230 * <td valign="top" nowrap><code>adef|abcdefz</code></td>
234 * <td valign="top" nowrap><code>adefa|bcdefz</code></td>
238 * <td valign="top" nowrap><code>adefab|cdefz</code></td>
242 * <td valign="top" nowrap><code>adefabc|defz</code></td>
243 * <td valign="top">Rule 1 matches; replace "<code>def</code>"
244 * with "<code>xy</code>" and back up the cursor
245 * to before the '<code>y</code>'.</td>
248 * <td valign="top" nowrap><code>adefabcx|yz</code></td>
249 * <td valign="top">Although "<code>xyz</code>" is
251 * before the '<code>y</code>', not before the '<code>x</code>'.
252 * Rule 3 does match. Replace "<code>yz</code>"
253 * with "<code>q</code>".</td>
256 * <td valign="top" nowrap><code>adefabcxq|</code></td>
272 * the rule "<code>'>'>o''clock</code>" changes the
273 * string "<code>></code>" to the string "<code>o'clock</code>".