Improve performance re: non-composing combining chars

X-SVN-Rev: 1943
This commit is contained in:
Alan Liu 2000-07-19 15:43:07 +00:00
parent 940852abe7
commit 00fc8e0218
2 changed files with 6 additions and 6 deletions

View File

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/Normalizer.java,v $
* $Date: 2000/07/19 15:16:34 $
* $Revision: 1.6 $
* $Date: 2000/07/19 15:43:07 $
* $Revision: 1.7 $
*
*****************************************************************************************
*/
@ -617,7 +617,7 @@ public final class Normalizer {
// We can only combine a character with the base if we haven't
// already seen a combining character with the same canonical class.
if (type == ComposeData.COMBINING && (classesSeen & cclass) == 0
if (index < ComposeData.COMBINING_COUNT && (classesSeen & cclass) == 0
&& (action = composeAction(baseIndex, index)) > 0)
{
if (action > ComposeData.MAX_COMPOSED) {

View File

@ -5,8 +5,8 @@
*******************************************************************************
*
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/text/Attic/Normalizer.java,v $
* $Date: 2000/07/19 15:16:34 $
* $Revision: 1.6 $
* $Date: 2000/07/19 15:43:07 $
* $Revision: 1.7 $
*
*****************************************************************************************
*/
@ -617,7 +617,7 @@ public final class Normalizer {
// We can only combine a character with the base if we haven't
// already seen a combining character with the same canonical class.
if (type == ComposeData.COMBINING && (classesSeen & cclass) == 0
if (index < ComposeData.COMBINING_COUNT && (classesSeen & cclass) == 0
&& (action = composeAction(baseIndex, index)) > 0)
{
if (action > ComposeData.MAX_COMPOSED) {