Lines Matching full:start
44 UBool parseLevels(const char *&start);
45 UBool parseOrdering(const char *start);
46 UBool parseInputStringFromBiDiClasses(const char *&start);
82 UBool BiDiConformanceTest::parseLevels(const char *&start) { in parseLevels() argument
85 while(*start!=0 && *(start=u_skipWhitespace(start))!=0 && *start!=';') { in parseLevels()
86 if(*start=='x') { in parseLevels()
88 ++start; in parseLevels()
91 uint32_t value=(uint32_t)strtoul(start, &end, 10); in parseLevels()
92 if(end<=start || (!U_IS_INV_WHITESPACE(*end) && *end!=0 && *end!=';') in parseLevels()
94 errln("\nError on line %d: Levels parse error at %s", (int)lineNumber, start); in parseLevels()
100 start=end; in parseLevels()
106 UBool BiDiConformanceTest::parseOrdering(const char *start) { in parseOrdering() argument
108 while(*start!=0 && *(start=u_skipWhitespace(start))!=0 && *start!=';') { in parseOrdering()
110 uint32_t value=(uint32_t)strtoul(start, &end, 10); in parseOrdering()
111 if(end<=start || (!U_IS_INV_WHITESPACE(*end) && *end!=0 && *end!=';') || value>=1000) { in parseOrdering()
112 errln("\nError on line %d: Reorder parse error at %s", (int)lineNumber, start); in parseOrdering()
117 start=end; in parseOrdering()
169 UBool BiDiConformanceTest::parseInputStringFromBiDiClasses(const char *&start) { in parseInputStringFromBiDiClasses() argument
177 while(*start!=0 && *(start=u_skipWhitespace(start))!=0 && *start!=';') { in parseInputStringFromBiDiClasses()
181 if(start[0]=='L') { in parseInputStringFromBiDiClasses()
182 if(start[1]=='R') { in parseInputStringFromBiDiClasses()
183 if(start[2]=='E') { in parseInputStringFromBiDiClasses()
185 } else if(start[2]=='I') { in parseInputStringFromBiDiClasses()
187 } else if(start[2]=='O') { in parseInputStringFromBiDiClasses()
193 } else if(start[0]=='R') { in parseInputStringFromBiDiClasses()
194 if(start[1]=='L') { in parseInputStringFromBiDiClasses()
195 if(start[2]=='E') { in parseInputStringFromBiDiClasses()
197 } else if(start[2]=='I') { in parseInputStringFromBiDiClasses()
199 } else if(start[2]=='O') { in parseInputStringFromBiDiClasses()
205 } else if(start[0]=='E') { in parseInputStringFromBiDiClasses()
206 if(start[1]=='N') { in parseInputStringFromBiDiClasses()
208 } else if(start[1]=='S') { in parseInputStringFromBiDiClasses()
210 } else if(start[1]=='T') { in parseInputStringFromBiDiClasses()
213 } else if(start[0]=='A') { in parseInputStringFromBiDiClasses()
214 if(start[1]=='L') { in parseInputStringFromBiDiClasses()
216 } else if(start[1]=='N') { in parseInputStringFromBiDiClasses()
219 } else if(start[0]=='C' && start[1]=='S') { in parseInputStringFromBiDiClasses()
221 } else if(start[0]=='B') { in parseInputStringFromBiDiClasses()
222 if(start[1]=='N') { in parseInputStringFromBiDiClasses()
227 } else if(start[0]=='S') { in parseInputStringFromBiDiClasses()
229 } else if(start[0]=='W' && start[1]=='S') { in parseInputStringFromBiDiClasses()
231 } else if(start[0]=='O' && start[1]=='N') { in parseInputStringFromBiDiClasses()
233 } else if(start[0]=='P' && start[1]=='D') { in parseInputStringFromBiDiClasses()
234 if(start[2]=='F') { in parseInputStringFromBiDiClasses()
236 } else if(start[2]=='I') { in parseInputStringFromBiDiClasses()
239 } else if(start[0]=='N' && start[1]=='S' && start[2]=='M') { in parseInputStringFromBiDiClasses()
241 } else if(start[0]=='F' && start[1]=='S' && start[2]=='I') { in parseInputStringFromBiDiClasses()
245 // and not just the start of a longer word. in parseInputStringFromBiDiClasses()
247 char c=start[biDiClassNameLength]; in parseInputStringFromBiDiClasses()
250 start+=biDiClassNameLength; in parseInputStringFromBiDiClasses()
253 errln("\nError on line %d: BiDi class string not recognized at %s", (int)lineNumber, start); in parseInputStringFromBiDiClasses()
295 const char *start=u_skipWhitespace(line); in TestBidiTest() local
296 if(*start==0) { in TestBidiTest()
299 if(*start=='@') { in TestBidiTest()
300 ++start; in TestBidiTest()
301 if(0==strncmp(start, "Levels:", 7)) { in TestBidiTest()
302 start+=7; in TestBidiTest()
303 if(!parseLevels(start)) { in TestBidiTest()
306 } else if(0==strncmp(start, "Reorder:", 8)) { in TestBidiTest()
307 if(!parseOrdering(start+8)) { in TestBidiTest()
313 if(!parseInputStringFromBiDiClasses(start)) { in TestBidiTest()
316 start=u_skipWhitespace(start); in TestBidiTest()
317 if(*start!=';') { in TestBidiTest()
321 start=u_skipWhitespace(start+1); in TestBidiTest()
323 uint32_t bitset=(uint32_t)strtoul(start, &end, 16); in TestBidiTest()
324 if(end<=start || (!U_IS_INV_WHITESPACE(*end) && *end!=';' && *end!=0)) { in TestBidiTest()
325 errln("input bitset parse error at %s", start); in TestBidiTest()
459 const char *start=u_skipWhitespace(line); in TestBidiCharacterTest() local
460 if(*start==0) { in TestBidiCharacterTest()
465 int32_t length=u_parseString(start, buffer, inputString.getCapacity(), NULL, errorCode); in TestBidiCharacterTest()
472 start=strchr(start, ';'); in TestBidiCharacterTest()
473 if(start==NULL) { in TestBidiCharacterTest()
478 start=u_skipWhitespace(start+1); in TestBidiCharacterTest()
480 int32_t paraDirection=(int32_t)strtol(start, &end, 10); in TestBidiCharacterTest()
503 if(end<=start || (!U_IS_INV_WHITESPACE(*end) && *end!=';' && *end!=0) || in TestBidiCharacterTest()
505 … errln("\nError on line %d: Input paragraph direction incorrect at %s", (int)lineNumber, start); in TestBidiCharacterTest()
509 start=u_skipWhitespace(end); in TestBidiCharacterTest()
510 if(*start!=';') { in TestBidiCharacterTest()
515 start++; in TestBidiCharacterTest()
516 uint32_t resolvedParaLevel=(uint32_t)strtoul(start, &end, 10); in TestBidiCharacterTest()
517 if(end<=start || (!U_IS_INV_WHITESPACE(*end) && *end!=';' && *end!=0) || in TestBidiCharacterTest()
519 … errln("\nError on line %d: Resolved paragraph level incorrect at %s", (int)lineNumber, start); in TestBidiCharacterTest()
523 start=u_skipWhitespace(end); in TestBidiCharacterTest()
524 if(*start!=';') { in TestBidiCharacterTest()
529 start++; in TestBidiCharacterTest()
530 if(!parseLevels(start)) { in TestBidiCharacterTest()
533 start=u_skipWhitespace(start); in TestBidiCharacterTest()
534 if(*start==';') { in TestBidiCharacterTest()
535 if(!parseOrdering(start+1)) { in TestBidiCharacterTest()