• Home
  • Raw
  • Download

Lines Matching refs:status

24     UErrorCode status = U_ZERO_ERROR;  in TestGrowTable()  local
26 testTable = uprv_cnttab_open(testMapping, &status); in TestGrowTable()
30 uprv_cnttab_addContraction(testTable, 0, (UChar)i, i, &status); in TestGrowTable()
31 if(U_FAILURE(status)) { in TestGrowTable()
32 … errln("Error occurred at position %i, error = %i (%s)\n", i, status, u_errorName(status)); in TestGrowTable()
37 if(U_SUCCESS(status)) { in TestGrowTable()
39 res = uprv_cnttab_getCE(testTable, 0, i, &status); in TestGrowTable()
40 if(U_FAILURE(status)) { in TestGrowTable()
41 … errln("Error occurred at position %i, error = %i (%s)\n", i, status, u_errorName(status)); in TestGrowTable()
54 UErrorCode status = U_ZERO_ERROR; in TestSetContraction() local
55 testTable = uprv_cnttab_open(testMapping, &status); in TestSetContraction()
57 uprv_cnttab_setContraction(testTable, 1, 0, 0x41, 0x41, &status); in TestSetContraction()
58 if(U_FAILURE(status)) { in TestSetContraction()
59 … errln("Error setting a non existing contraction error = %i (%s)\n", status, u_errorName(status)); in TestSetContraction()
62 status = U_ZERO_ERROR; in TestSetContraction()
65 uprv_cnttab_setContraction(testTable, 1, 0x401, 0x41, 0x41, &status); in TestSetContraction()
66 if(status != U_INDEX_OUTOFBOUNDS_ERROR) { in TestSetContraction()
69 status = U_ZERO_ERROR; in TestSetContraction()
74 UErrorCode status = U_ZERO_ERROR; in TestAddATableElement() local
75 testTable = uprv_cnttab_open(testMapping, &status); in TestAddATableElement()
80 uprv_cnttab_addContraction(testTable, i, (UChar)i, i, &status); in TestAddATableElement()
81 if(U_FAILURE(status)) { in TestAddATableElement()
82 … errln("Error occurred at position %i, error = %i (%s)\n", i, status, u_errorName(status)); in TestAddATableElement()
87 if(U_SUCCESS(status)) { in TestAddATableElement()
89 res = uprv_cnttab_getCE(testTable, i, 0, &status); in TestAddATableElement()
90 if(U_FAILURE(status)) { in TestAddATableElement()
91 … errln("Error occurred at position %i, error = %i (%s)\n", i, status, u_errorName(status)); in TestAddATableElement()
104 UErrorCode status = U_ZERO_ERROR; in TestClone() local
105 testTable = uprv_cnttab_open(testMapping, &status); in TestClone()
110 uprv_cnttab_addContraction(testTable, i, (UChar)i, i, &status); in TestClone()
111 if(U_FAILURE(status)) { in TestClone()
112 … errln("Error occurred at position %i, error = %i (%s)\n", i, status, u_errorName(status)); in TestClone()
116 uprv_cnttab_constructTable(testTable, 0, &status); in TestClone()
117 if(U_FAILURE(status)) { in TestClone()
118 errln("Error constructing table error = %i (%s)\n", status, u_errorName(status)); in TestClone()
120 testClone = uprv_cnttab_clone(testTable, &status); in TestClone()
121 if(U_SUCCESS(status)) { in TestClone()
123 res = uprv_cnttab_getCE(testTable, i, 0, &status); in TestClone()
124 if(U_FAILURE(status)) { in TestClone()
125 … errln("Error occurred at position %i, error = %i (%s)\n", i, status, u_errorName(status)); in TestClone()
137 testTable = uprv_cnttab_open(testMapping, &status); in TestClone()
138 if(U_FAILURE(status)) { in TestClone()
139 errln("Error opening table error = %i (%s)\n", status, u_errorName(status)); in TestClone()
145 UErrorCode status = U_ZERO_ERROR; in TestChangeContraction() local
146 testTable = uprv_cnttab_open(testMapping, &status); in TestChangeContraction()
148 res = uprv_cnttab_changeContraction(testTable, 0, 0x41, 0xAB, &status); in TestChangeContraction()
154 uprv_cnttab_addContraction(testTable, 0, (UChar)i, i, &status); in TestChangeContraction()
157 res = uprv_cnttab_changeContraction(testTable, 0, 0x41, 0xAB, &status); in TestChangeContraction()
163 res = uprv_cnttab_changeContraction(testTable, 0, (UChar)i, 0xAB, &status); in TestChangeContraction()
172 UErrorCode status = U_ZERO_ERROR; in TestChangeLastCE() local
173 testTable = uprv_cnttab_open(testMapping, &status); in TestChangeLastCE()
174 uint32_t res = uprv_cnttab_changeLastCE(testTable, 1, 0xABCD, &status); in TestChangeLastCE()
182 UErrorCode status = U_REGEX_SET_CONTAINS_STRING; in TestErrorCodeChecking() local
184 uprv_cnttab_open(NULL, &status); in TestErrorCodeChecking()
185 if (status != U_REGEX_SET_CONTAINS_STRING) { in TestErrorCodeChecking()
186 errln("Status was incorrectly modified to %s\n", u_errorName(status)); in TestErrorCodeChecking()
188 uprv_cnttab_clone(NULL, &status); in TestErrorCodeChecking()
189 if (status != U_REGEX_SET_CONTAINS_STRING) { in TestErrorCodeChecking()
190 errln("Status was incorrectly modified to %s\n", u_errorName(status)); in TestErrorCodeChecking()
192 uprv_cnttab_changeLastCE(NULL, 0, 0, &status); in TestErrorCodeChecking()
193 if (status != U_REGEX_SET_CONTAINS_STRING) { in TestErrorCodeChecking()
194 errln("Status was incorrectly modified to %s\n", u_errorName(status)); in TestErrorCodeChecking()
196 uprv_cnttab_insertContraction(NULL, 0, 0, 0, &status); in TestErrorCodeChecking()
197 if (status != U_REGEX_SET_CONTAINS_STRING) { in TestErrorCodeChecking()
198 errln("Status was incorrectly modified to %s\n", u_errorName(status)); in TestErrorCodeChecking()
200 uprv_cnttab_addContraction(NULL, 0, 0, 0, &status); in TestErrorCodeChecking()
201 if (status != U_REGEX_SET_CONTAINS_STRING) { in TestErrorCodeChecking()
202 errln("Status was incorrectly modified to %s\n", u_errorName(status)); in TestErrorCodeChecking()
204 uprv_cnttab_setContraction(NULL, 0, 0, 0, 0, &status); in TestErrorCodeChecking()
205 if (status != U_REGEX_SET_CONTAINS_STRING) { in TestErrorCodeChecking()
206 errln("Status was incorrectly modified to %s\n", u_errorName(status)); in TestErrorCodeChecking()
208 uprv_cnttab_findCP(NULL, 0, 0, &status); in TestErrorCodeChecking()
209 if (status != U_REGEX_SET_CONTAINS_STRING) { in TestErrorCodeChecking()
210 errln("Status was incorrectly modified to %s\n", u_errorName(status)); in TestErrorCodeChecking()
212 if (uprv_cnttab_getCE(NULL, 0, 0, &status) != UCOL_NOT_FOUND) { in TestErrorCodeChecking()
215 if (status != U_REGEX_SET_CONTAINS_STRING) { in TestErrorCodeChecking()
216 errln("Status was incorrectly modified to %s\n", u_errorName(status)); in TestErrorCodeChecking()
218 if (uprv_cnttab_findCE(NULL, 0, 0, &status) != UCOL_NOT_FOUND) { in TestErrorCodeChecking()
221 if (status != U_REGEX_SET_CONTAINS_STRING) { in TestErrorCodeChecking()
222 errln("Status was incorrectly modified to %s\n", u_errorName(status)); in TestErrorCodeChecking()
224 uprv_cnttab_isTailored(NULL, 0, NULL, &status); in TestErrorCodeChecking()
225 if (status != U_REGEX_SET_CONTAINS_STRING) { in TestErrorCodeChecking()
226 errln("Status was incorrectly modified to %s\n", u_errorName(status)); in TestErrorCodeChecking()
228 uprv_cnttab_changeContraction(NULL, 0, 0, 0, &status); in TestErrorCodeChecking()
229 if (status != U_REGEX_SET_CONTAINS_STRING) { in TestErrorCodeChecking()
230 errln("Status was incorrectly modified to %s\n", u_errorName(status)); in TestErrorCodeChecking()