Lines Matching refs:start
42 UBool parseLevels(const char *&start);
43 UBool parseOrdering(const char *start);
44 UBool parseInputStringFromBiDiClasses(const char *&start);
80 UBool BiDiConformanceTest::parseLevels(const char *&start) { in parseLevels() argument
83 while(*start!=0 && *(start=u_skipWhitespace(start))!=0 && *start!=';') { in parseLevels()
84 if(*start=='x') { in parseLevels()
86 ++start; in parseLevels()
89 uint32_t value=(uint32_t)strtoul(start, &end, 10); in parseLevels()
90 if(end<=start || (!U_IS_INV_WHITESPACE(*end) && *end!=0 && *end!=';') in parseLevels()
92 errln("\nError on line %d: Levels parse error at %s", (int)lineNumber, start); in parseLevels()
98 start=end; in parseLevels()
104 UBool BiDiConformanceTest::parseOrdering(const char *start) { in parseOrdering() argument
106 while(*start!=0 && *(start=u_skipWhitespace(start))!=0 && *start!=';') { in parseOrdering()
108 uint32_t value=(uint32_t)strtoul(start, &end, 10); in parseOrdering()
109 if(end<=start || (!U_IS_INV_WHITESPACE(*end) && *end!=0 && *end!=';') || value>=1000) { in parseOrdering()
110 errln("\nError on line %d: Reorder parse error at %s", (int)lineNumber, start); in parseOrdering()
115 start=end; in parseOrdering()
167 UBool BiDiConformanceTest::parseInputStringFromBiDiClasses(const char *&start) { in parseInputStringFromBiDiClasses() argument
175 while(*start!=0 && *(start=u_skipWhitespace(start))!=0 && *start!=';') { in parseInputStringFromBiDiClasses()
179 if(start[0]=='L') { in parseInputStringFromBiDiClasses()
180 if(start[1]=='R') { in parseInputStringFromBiDiClasses()
181 if(start[2]=='E') { in parseInputStringFromBiDiClasses()
183 } else if(start[2]=='I') { in parseInputStringFromBiDiClasses()
185 } else if(start[2]=='O') { in parseInputStringFromBiDiClasses()
191 } else if(start[0]=='R') { in parseInputStringFromBiDiClasses()
192 if(start[1]=='L') { in parseInputStringFromBiDiClasses()
193 if(start[2]=='E') { in parseInputStringFromBiDiClasses()
195 } else if(start[2]=='I') { in parseInputStringFromBiDiClasses()
197 } else if(start[2]=='O') { in parseInputStringFromBiDiClasses()
203 } else if(start[0]=='E') { in parseInputStringFromBiDiClasses()
204 if(start[1]=='N') { in parseInputStringFromBiDiClasses()
206 } else if(start[1]=='S') { in parseInputStringFromBiDiClasses()
208 } else if(start[1]=='T') { in parseInputStringFromBiDiClasses()
211 } else if(start[0]=='A') { in parseInputStringFromBiDiClasses()
212 if(start[1]=='L') { in parseInputStringFromBiDiClasses()
214 } else if(start[1]=='N') { in parseInputStringFromBiDiClasses()
217 } else if(start[0]=='C' && start[1]=='S') { in parseInputStringFromBiDiClasses()
219 } else if(start[0]=='B') { in parseInputStringFromBiDiClasses()
220 if(start[1]=='N') { in parseInputStringFromBiDiClasses()
225 } else if(start[0]=='S') { in parseInputStringFromBiDiClasses()
227 } else if(start[0]=='W' && start[1]=='S') { in parseInputStringFromBiDiClasses()
229 } else if(start[0]=='O' && start[1]=='N') { in parseInputStringFromBiDiClasses()
231 } else if(start[0]=='P' && start[1]=='D') { in parseInputStringFromBiDiClasses()
232 if(start[2]=='F') { in parseInputStringFromBiDiClasses()
234 } else if(start[2]=='I') { in parseInputStringFromBiDiClasses()
237 } else if(start[0]=='N' && start[1]=='S' && start[2]=='M') { in parseInputStringFromBiDiClasses()
239 } else if(start[0]=='F' && start[1]=='S' && start[2]=='I') { in parseInputStringFromBiDiClasses()
245 char c=start[biDiClassNameLength]; in parseInputStringFromBiDiClasses()
248 start+=biDiClassNameLength; in parseInputStringFromBiDiClasses()
251 errln("\nError on line %d: BiDi class string not recognized at %s", (int)lineNumber, start); in parseInputStringFromBiDiClasses()
293 const char *start=u_skipWhitespace(line); in TestBidiTest() local
294 if(*start==0) { in TestBidiTest()
297 if(*start=='@') { in TestBidiTest()
298 ++start; in TestBidiTest()
299 if(0==strncmp(start, "Levels:", 7)) { in TestBidiTest()
300 start+=7; in TestBidiTest()
301 if(!parseLevels(start)) { in TestBidiTest()
304 } else if(0==strncmp(start, "Reorder:", 8)) { in TestBidiTest()
305 if(!parseOrdering(start+8)) { in TestBidiTest()
311 if(!parseInputStringFromBiDiClasses(start)) { in TestBidiTest()
314 start=u_skipWhitespace(start); in TestBidiTest()
315 if(*start!=';') { in TestBidiTest()
319 start=u_skipWhitespace(start+1); in TestBidiTest()
321 uint32_t bitset=(uint32_t)strtoul(start, &end, 16); in TestBidiTest()
322 if(end<=start || (!U_IS_INV_WHITESPACE(*end) && *end!=';' && *end!=0)) { in TestBidiTest()
323 errln("input bitset parse error at %s", start); in TestBidiTest()
457 const char *start=u_skipWhitespace(line); in TestBidiCharacterTest() local
458 if(*start==0) { in TestBidiCharacterTest()
463 int32_t length=u_parseString(start, buffer, inputString.getCapacity(), NULL, errorCode); in TestBidiCharacterTest()
470 start=strchr(start, ';'); in TestBidiCharacterTest()
471 if(start==NULL) { in TestBidiCharacterTest()
476 start=u_skipWhitespace(start+1); in TestBidiCharacterTest()
478 int32_t paraDirection=(int32_t)strtol(start, &end, 10); in TestBidiCharacterTest()
501 if(end<=start || (!U_IS_INV_WHITESPACE(*end) && *end!=';' && *end!=0) || in TestBidiCharacterTest()
503 … errln("\nError on line %d: Input paragraph direction incorrect at %s", (int)lineNumber, start); in TestBidiCharacterTest()
507 start=u_skipWhitespace(end); in TestBidiCharacterTest()
508 if(*start!=';') { in TestBidiCharacterTest()
513 start++; in TestBidiCharacterTest()
514 uint32_t resolvedParaLevel=(uint32_t)strtoul(start, &end, 10); in TestBidiCharacterTest()
515 if(end<=start || (!U_IS_INV_WHITESPACE(*end) && *end!=';' && *end!=0) || in TestBidiCharacterTest()
517 … errln("\nError on line %d: Resolved paragraph level incorrect at %s", (int)lineNumber, start); in TestBidiCharacterTest()
521 start=u_skipWhitespace(end); in TestBidiCharacterTest()
522 if(*start!=';') { in TestBidiCharacterTest()
527 start++; in TestBidiCharacterTest()
528 if(!parseLevels(start)) { in TestBidiCharacterTest()
531 start=u_skipWhitespace(start); in TestBidiCharacterTest()
532 if(*start==';') { in TestBidiCharacterTest()
533 if(!parseOrdering(start+1)) { in TestBidiCharacterTest()