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 ", true, escapeUnprintable, quoteBuf); // Emit the output pattern @@ -905,6 +915,9 @@ class TransliterationRule { /** * $Log: TransliterationRule.java,v $ + * Revision 1.31 2001/10/18 23:02:32 alan + * jitterbug 60: fix handling of anchors in toRule + * * Revision 1.30 2001/10/04 22:33:53 alan * jitterbug 69: minor fix to incremental RBT code * diff --git a/icu4j/src/com/ibm/text/TransliterationRule.java b/icu4j/src/com/ibm/text/TransliterationRule.java index a0cdd25418..a0aa6c178b 100755 --- a/icu4j/src/com/ibm/text/TransliterationRule.java +++ b/icu4j/src/com/ibm/text/TransliterationRule.java @@ -5,8 +5,8 @@ ******************************************************************************* * * $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/text/Attic/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 ", true, escapeUnprintable, quoteBuf); // Emit the output pattern @@ -905,6 +915,9 @@ class TransliterationRule { /** * $Log: TransliterationRule.java,v $ + * Revision 1.31 2001/10/18 23:02:32 alan + * jitterbug 60: fix handling of anchors in toRule + * * Revision 1.30 2001/10/04 22:33:53 alan * jitterbug 69: minor fix to incremental RBT code *