OLD | NEW |
1 /* | 1 /* |
2 ******************************************************************************* | 2 ******************************************************************************* |
3 * | 3 * |
4 * Copyright (C) 1999-2007, International Business Machines | 4 * Copyright (C) 1999-2014, International Business Machines |
5 * Corporation and others. All Rights Reserved. | 5 * Corporation and others. All Rights Reserved. |
6 * | 6 * |
7 ******************************************************************************* | 7 ******************************************************************************* |
8 */ | 8 */ |
9 | 9 |
10 #include "unicode/utypes.h" | 10 #include "unicode/utypes.h" |
11 #include "unicode/uclean.h" | 11 #include "unicode/uclean.h" |
12 #include "unicode/uchar.h" | 12 #include "unicode/uchar.h" |
13 #include "unicode/unistr.h" | 13 #include "unicode/unistr.h" |
14 #include "unicode/uscript.h" | 14 #include "unicode/uscript.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 if (testCase->getTagName().compare(test_case) == 0) { | 167 if (testCase->getTagName().compare(test_case) == 0) { |
168 char *id = getCString(testCase->getAttribute(id_attr)); | 168 char *id = getCString(testCase->getAttribute(id_attr)); |
169 char *script = getCString(testCase->getAttribute(script_attr)); | 169 char *script = getCString(testCase->getAttribute(script_attr)); |
170 char *lang = getCString(testCase->getAttribute(lang_attr)); | 170 char *lang = getCString(testCase->getAttribute(lang_attr)); |
171 char *fontName = NULL; | 171 char *fontName = NULL; |
172 char *fontVer = NULL; | 172 char *fontVer = NULL; |
173 char *fontCksum = NULL; | 173 char *fontCksum = NULL; |
174 const UXMLElement *element; | 174 const UXMLElement *element; |
175 int32_t ec = 0; | 175 int32_t ec = 0; |
176 int32_t charCount = 0; | 176 int32_t charCount = 0; |
177 int32_t typoFlags = 3; // kerning + ligatures... | 177 // int32_t typoFlags = 3; // kerning + ligatures... |
178 UScriptCode scriptCode; | 178 UScriptCode scriptCode; |
179 le_int32 languageCode = -1; | 179 le_int32 languageCode = -1; |
180 UnicodeString text, glyphs, indices, positions; | 180 UnicodeString text, glyphs, indices, positions; |
181 int32_t glyphCount = 0, indexCount = 0, positionCount = 0; | 181 int32_t glyphCount = 0, indexCount = 0, positionCount = 0; |
182 TestResult expected = {0, NULL, NULL, NULL}; | 182 TestResult expected = {0, NULL, NULL, NULL}; |
183 | 183 |
184 uscript_getCode(script, &scriptCode, 1, &status); | 184 uscript_getCode(script, &scriptCode, 1, &status); |
185 if (LE_FAILURE(status)) { | 185 if (LE_FAILURE(status)) { |
186 log_err("invalid script name: %s.\n", script); | 186 log_err("invalid script name: %s.\n", script); |
187 goto free_c_strings; | 187 goto free_c_strings; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 freeCString(script); | 250 freeCString(script); |
251 freeCString(id); | 251 freeCString(id); |
252 } | 252 } |
253 } | 253 } |
254 | 254 |
255 delete root; | 255 delete root; |
256 delete parser; | 256 delete parser; |
257 #endif | 257 #endif |
258 } | 258 } |
259 U_CDECL_END | 259 U_CDECL_END |
OLD | NEW |