Home | History | Annotate | Download | only in i18n

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 * &quot;<code>$alefmadda</code>&quot;, will be replaced by
60 * text of any length, including no text at all (&quot;<code>$empty=;</code>&quot;).
61 * The right hand side may contain embedded <code>UnicodeSet</code>
62 * patterns, for example, &quot;<code>$softvowel=[eiyEIY]</code>&quot;.</dd>
64 * <dt><code>ai&gt;$alefmadda;</code></dt>
70 * <dt><code>ai<$alefmadda;</code></dt>
78 * <dt><code>ai<>$alefmadda;</code></dt>
92 * text. For example, the pattern &quot;<code>abc{def}</code>&quot;
93 * indicates the characters &quot;<code>def</code>&quot; must be
94 * preceded by &quot;<code>abc</code>&quot; for a successful match.
95 * If there is a successful match, &quot;<code>def</code>&quot; will
96 * be replaced, but not &quot;<code>abc</code>&quot;. The final '<code>}</code>'
97 * is optional, so &quot;<code>abc{def</code>&quot; is equivalent to
98 * &quot;<code>abc{def}</code>&quot;. Another example is &quot;<code>{123}456</code>&quot;
99 * (or &quot;<code>123}456</code>&quot;) in which the literal
100 * pattern &quot;<code>123</code>&quot; must be followed by &quot;<code>456</code>&quot;.
105 * output string contains the character '<code>|</code>', this is
111 * special character '<code>@</code>'. Examples:</p>
114 * <p><code>a {foo} z &gt; | @ bar; # foo -&gt; 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 &quot;<code>$a=[a-z];$not_a=[^$a]</code>&quot;,
126 * or &quot;<code>$range=a-z;$ll=[$range]</code>&quot;.</p>
128 * <p><code>UnicodeSet</code> patterns may also be embedded directly
132 * <p><code>$vowel=[aeiou]; $vowel&gt;'*'; # One way to do this<br>
135 * Another way</code></p>
147 * <p><code>([a-z]) &gt; $1 $1;
150 * ([:Lu:]) ([:Ll:]) &gt; $2 $1; # reverse order of Lu-Ll pairs</code></p>
154 * &quot;<code>(</code>&quot; and &quot;<code>)</code>&quot;. Up to
156 * output string, &quot;<code>$1</code>&quot; through &quot;<code>$9</code>&quot;
163 * special characters '<code>^</code>' and '<code>$</code>'. For example:</p>
166 * <p><code>^ a&nbsp;&nbsp; &gt; 'BEG_A'; &nbsp;&nbsp;# 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$]; &nbsp;&nbsp;# match 'a' through 'z' OR anchor<br>
183 * &nbsp;&nbsp; 3 $x &gt; 4; &nbsp;&nbsp;# match '3' before a-z or at the end</code></p>
194 * <td valign="top" nowrap><code>abc{def}&gt;x|y</code></td>
198 * <td valign="top" nowrap><code>xyz&gt;r</code></td>
202 * <td valign="top" nowrap><code>yz&gt;q</code></td>
206 * <p>Applying these rules to the string &quot;<code>adefabcdefz</code>&quot;
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 &quot;<code>def</code>&quot;
244 * with &quot;<code>xy</code>&quot; 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 &quot;<code>xyz</code>&quot; is
251 * before the '<code>y</code>', not before the '<code>x</code>'.
252 * Rule 3 does match. Replace &quot;<code>yz</code>&quot;
253 * with &quot;<code>q</code>&quot;.</td>
256 * <td valign="top" nowrap><code>adefabcxq|</code></td>
272 * the rule &quot;<code>'&gt;'&gt;o''clock</code>&quot; changes the
273 * string &quot;<code>&gt;</code>&quot; to the string &quot;<code>o'clock</code>&quot;.