/*
**********************************************************************
-* Copyright (C) 1999-2004, International Business Machines
+* Copyright (C) 1999-2014, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
*
}
if (value >= 1 << 1) {
- value >>= 1;
+ //value >>= 1;
bit += 1;
}
int32_t pairedCharExtra = pairedCharCount - pairedCharPower;
int32_t probe = pairedCharPower;
- int32_t index = 0;
+ int32_t pairIndex = 0;
if (ch >= pairedChars[pairedCharExtra]) {
- index = pairedCharExtra;
+ pairIndex = pairedCharExtra;
}
while (probe > (1 << 0)) {
probe >>= 1;
- if (ch >= pairedChars[index + probe]) {
- index += probe;
+ if (ch >= pairedChars[pairIndex + probe]) {
+ pairIndex += probe;
}
}
- if (pairedChars[index] != ch) {
- index = -1;
+ if (pairedChars[pairIndex] != ch) {
+ pairIndex = -1;
}
- return index;
+ return pairIndex;
}
static UBool