diff --git a/icu4j/src/com/ibm/icu/text/TransliterationRule.java b/icu4j/src/com/ibm/icu/text/TransliterationRule.java index 88226bcccc..b60e9c97ea 100755 --- a/icu4j/src/com/ibm/icu/text/TransliterationRule.java +++ b/icu4j/src/com/ibm/icu/text/TransliterationRule.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/TransliterationRule.java,v $ - * $Date: 2001/10/04 22:33:53 $ - * $Revision: 1.30 $ + * $Date: 2001/10/18 23:02:32 $ + * $Revision: 1.31 $ * ***************************************************************************************** */ @@ -44,7 +44,7 @@ import com.ibm.util.Utility; *
Copyright © IBM Corporation 1999. All rights reserved.
*
* @author Alan Liu
- * @version $RCSfile: TransliterationRule.java,v $ $Revision: 1.30 $ $Date: 2001/10/04 22:33:53 $
+ * @version $RCSfile: TransliterationRule.java,v $ $Revision: 1.31 $ $Date: 2001/10/18 23:02:32 $
*/
class TransliterationRule {
@@ -791,6 +791,11 @@ class TransliterationRule {
boolean emitBraces =
(anteContextLength != 0) || (keyLength != pattern.length());
+ // Emit start anchor
+ if ((flags & ANCHOR_START) != 0) {
+ rule.append('^');
+ }
+
// Emit the input pattern
for (i=0; i Copyright © IBM Corporation 1999. All rights reserved.
*
* @author Alan Liu
- * @version $RCSfile: TransliterationRule.java,v $ $Revision: 1.30 $ $Date: 2001/10/04 22:33:53 $
+ * @version $RCSfile: TransliterationRule.java,v $ $Revision: 1.31 $ $Date: 2001/10/18 23:02:32 $
*/
class TransliterationRule {
@@ -791,6 +791,11 @@ class TransliterationRule {
boolean emitBraces =
(anteContextLength != 0) || (keyLength != pattern.length());
+ // Emit start anchor
+ if ((flags & ANCHOR_START) != 0) {
+ rule.append('^');
+ }
+
// Emit the input pattern
for (i=0; i