| OLD | NEW |
| 1 /* | 1 /* |
| 2 ********************************************************************** | 2 ********************************************************************** |
| 3 * Copyright (C) 1999-2009, International Business Machines | 3 * Copyright (C) 1999-2014, International Business Machines |
| 4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
| 5 ********************************************************************** | 5 ********************************************************************** |
| 6 * | 6 * |
| 7 * File USC_IMPL.C | 7 * File USC_IMPL.C |
| 8 * | 8 * |
| 9 * Modification History: | 9 * Modification History: |
| 10 * | 10 * |
| 11 * Date Name Description | 11 * Date Name Description |
| 12 * 07/08/2002 Eric Mader Creation. | 12 * 07/08/2002 Eric Mader Creation. |
| 13 ****************************************************************************** | 13 ****************************************************************************** |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 value >>= 4; | 139 value >>= 4; |
| 140 bit += 4; | 140 bit += 4; |
| 141 } | 141 } |
| 142 | 142 |
| 143 if (value >= 1 << 2) { | 143 if (value >= 1 << 2) { |
| 144 value >>= 2; | 144 value >>= 2; |
| 145 bit += 2; | 145 bit += 2; |
| 146 } | 146 } |
| 147 | 147 |
| 148 if (value >= 1 << 1) { | 148 if (value >= 1 << 1) { |
| 149 value >>= 1; | 149 //value >>= 1; |
| 150 bit += 1; | 150 bit += 1; |
| 151 } | 151 } |
| 152 | 152 |
| 153 return bit; | 153 return bit; |
| 154 } | 154 } |
| 155 | 155 |
| 156 static int32_t | 156 static int32_t |
| 157 getPairIndex(UChar32 ch) | 157 getPairIndex(UChar32 ch) |
| 158 { | 158 { |
| 159 int32_t pairedCharCount = ARRAY_SIZE(pairedChars); | 159 int32_t pairedCharCount = ARRAY_SIZE(pairedChars); |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 if (pRunLimit != NULL) { | 352 if (pRunLimit != NULL) { |
| 353 *pRunLimit = scriptRun->scriptLimit; | 353 *pRunLimit = scriptRun->scriptLimit; |
| 354 } | 354 } |
| 355 | 355 |
| 356 if (pRunScript != NULL) { | 356 if (pRunScript != NULL) { |
| 357 *pRunScript = scriptRun->scriptCode; | 357 *pRunScript = scriptRun->scriptCode; |
| 358 } | 358 } |
| 359 | 359 |
| 360 return TRUE; | 360 return TRUE; |
| 361 } | 361 } |
| OLD | NEW |