Lines Matching refs:dataTable
57 UChar*** dataTable = NULL; variable
73 if(dataTable == NULL) { in setUpDataTable()
74 dataTable = (UChar***)calloc(sizeof(UChar**),3); in setUpDataTable()
77 dataTable[i] = (UChar**)calloc(sizeof(UChar*),4); in setUpDataTable()
79 dataTable[i][j] = (UChar*) malloc(sizeof(UChar)*(strlen(raw[i][j])+1)); in setUpDataTable()
80 u_uastrcpy(dataTable[i][j],raw[i][j]); in setUpDataTable()
89 if(dataTable != NULL) { in cleanUpDataTable()
92 free(dataTable[i][j]); in cleanUpDataTable()
94 free(dataTable[i]); in cleanUpDataTable()
96 free(dataTable); in cleanUpDataTable()
98 dataTable = NULL; in cleanUpDataTable()
113 …if( u_strlen(dataTable[0][0])!= u_strlen(dataTable[0][3]) || u_strlen(dataTable[0][0]) == u_strlen… in TestStringFunctions()
122 log_verbose("Testing %s\n", u_austrcpy(tempOut, dataTable[i][j])); in TestStringFunctions()
125 u_memcpy(temp,dataTable[i][j], 7); in TestStringFunctions()
129 if(u_memcmp(temp, dataTable[i][j], 7)!=0) in TestStringFunctions()
133 if(u_memcmp(dataTable[0][0], dataTable[1][1], 7)==0) in TestStringFunctions()
177 log_verbose("Testing %s\n", u_austrcpy(tempOut, dataTable[i][j])); in TestStringFunctions()
179 u_strcpy(temp,dataTable[i][j]); in TestStringFunctions()
181 if(u_strcmp(temp,dataTable[i][j])!=0) in TestStringFunctions()
185 if(u_strcmp(dataTable[0][0], dataTable[1][1])==0) in TestStringFunctions()
193 u_strcpy(temp,dataTable[i][j]); in TestStringFunctions()
194 u_strcat(temp,dataTable[i+1][j]); in TestStringFunctions()
195 if(u_strcmp(temp,dataTable[i+2][j])!=0) in TestStringFunctions()
202 k=u_strlen(dataTable[i][j]); in TestStringFunctions()
203 if(u_strncmp(dataTable[i][j],dataTable[i+2][j],k)!=0) in TestStringFunctions()
206 if(u_strncmp(dataTable[0][0], dataTable[1][1], 7)==0) in TestStringFunctions()
213 k=u_strlen(dataTable[i][j]); in TestStringFunctions()
217 if(u_strcmp(u_strncat(temp,dataTable[i+2][j],k),dataTable[i][j])!=0) in TestStringFunctions()
225 k=u_strlen(dataTable[i][j]); in TestStringFunctions()
226 u_strncpy(temp, dataTable[i][j],k); in TestStringFunctions()
229 if(u_strncmp(temp, dataTable[i][j],k)!=0) in TestStringFunctions()
237 if(u_strncmp(temp, dataTable[i][j],k-1)!=0) in TestStringFunctions()
245 if(u_strcmp(temp, dataTable[i][j])!=0) in TestStringFunctions()
253 if(u_strncmp(temp, dataTable[i][j], k)!=0) in TestStringFunctions()
264 UChar saveVal = dataTable[i][j][0]; in TestStringFunctions()
265 UChar *findPtr = u_strchr(dataTable[i][j], 0x005F); in TestStringFunctions()
266 int32_t dataSize = (int32_t)(u_strlen(dataTable[i][j]) + 1); in TestStringFunctions()
274 findPtr = u_strchr32(dataTable[i][j], 0x005F); in TestStringFunctions()
279 findPtr = u_strchr(dataTable[i][j], 0); in TestStringFunctions()
280 if (findPtr != (&(dataTable[i][j][dataSize - 1]))) { in TestStringFunctions()
284 findPtr = u_strchr32(dataTable[i][j], 0); in TestStringFunctions()
285 if (findPtr != (&(dataTable[i][j][dataSize - 1]))) { in TestStringFunctions()
289 findPtr = u_memchr(dataTable[i][j], 0, dataSize); in TestStringFunctions()
290 if (findPtr != (&(dataTable[i][j][dataSize - 1]))) { in TestStringFunctions()
294 findPtr = u_memchr32(dataTable[i][j], 0, dataSize); in TestStringFunctions()
295 if (findPtr != (&(dataTable[i][j][dataSize - 1]))) { in TestStringFunctions()
299 dataTable[i][j][0] = 0; in TestStringFunctions()
301 findPtr = u_memchr(dataTable[i][j], 0x005F, dataSize); in TestStringFunctions()
306 findPtr = u_memchr32(dataTable[i][j], 0x005F, dataSize); in TestStringFunctions()
310 findPtr = u_memchr32(dataTable[i][j], 0xFFFD, dataSize); in TestStringFunctions()
314 dataTable[i][j][0] = saveVal; /* Put it back for the other tests */ in TestStringFunctions()
338 u_austrcpy(test,dataTable[0][0]); in TestStringFunctions()