| OLD | NEW |
| 1 /* | 1 /* |
| 2 ********************************************************************** | 2 ********************************************************************** |
| 3 * Copyright (C) 2013, International Business Machines | 3 * Copyright (C) 2014, International Business Machines |
| 4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
| 5 ********************************************************************** | 5 ********************************************************************** |
| 6 * | 6 * |
| 7 * indentifier_info.h | 7 * indentifier_info.h |
| 8 * | 8 * |
| 9 * created on: 2013 Jan 7 | 9 * created on: 2013 Jan 7 |
| 10 * created by: Andy Heninger | 10 * created by: Andy Heninger |
| 11 */ | 11 */ |
| 12 | 12 |
| 13 #ifndef __IDENTIFIER_INFO_H__ | 13 #ifndef __IDENTIFIER_INFO_H__ |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 /** | 164 /** |
| 165 * Produce a readable string of alternates. | 165 * Produce a readable string of alternates. |
| 166 * | 166 * |
| 167 * @param alternates a UHashtable of UScriptSets. | 167 * @param alternates a UHashtable of UScriptSets. |
| 168 * Keys only, no meaningful values in the UHash. | 168 * Keys only, no meaningful values in the UHash. |
| 169 * @return display form | 169 * @return display form |
| 170 * @internal | 170 * @internal |
| 171 */ | 171 */ |
| 172 static UnicodeString &displayAlternates(UnicodeString &dest, const UHashtabl
e *alternates, UErrorCode &status); | 172 static UnicodeString &displayAlternates(UnicodeString &dest, const UHashtabl
e *alternates, UErrorCode &status); |
| 173 | 173 |
| 174 /** | |
| 175 * Static memory cleanup function. | |
| 176 * @internal | |
| 177 */ | |
| 178 static UBool cleanup(); | |
| 179 private: | 174 private: |
| 180 | 175 |
| 181 IdentifierInfo & clear(); | 176 IdentifierInfo & clear(); |
| 182 UBool containsWithAlternates(const ScriptSet &container, const S
criptSet &containee) const; | 177 UBool containsWithAlternates(const ScriptSet &container, const S
criptSet &containee) const; |
| 183 | 178 |
| 184 UnicodeString *fIdentifier; | 179 UnicodeString *fIdentifier; |
| 185 ScriptSet *fRequiredScripts; | 180 ScriptSet *fRequiredScripts; |
| 186 UHashtable *fScriptSetSet; | 181 UHashtable *fScriptSetSet; |
| 187 ScriptSet *fCommonAmongAlternates; | 182 ScriptSet *fCommonAmongAlternates; |
| 188 UnicodeSet *fNumerics; | 183 UnicodeSet *fNumerics; |
| 189 UnicodeSet *fIdentifierProfile; | 184 UnicodeSet *fIdentifierProfile; |
| 190 | |
| 191 static UnicodeSet *ASCII; | |
| 192 static ScriptSet *JAPANESE; | |
| 193 static ScriptSet *CHINESE; | |
| 194 static ScriptSet *KOREAN; | |
| 195 static ScriptSet *CONFUSABLE_WITH_LATIN; | |
| 196 | |
| 197 | |
| 198 | |
| 199 }; | 185 }; |
| 200 | 186 |
| 201 U_NAMESPACE_END | 187 U_NAMESPACE_END |
| 202 | 188 |
| 203 #endif // __IDENTIFIER_INFO_H__ | 189 #endif // __IDENTIFIER_INFO_H__ |
| 204 | 190 |
| OLD | NEW |