• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/ICU-531.30/icuSources/test/cintltst/

Lines Matching +defs:src +defs:pos

81 static UChar* toUChar(const char *src, void **freeHook) {
91 if (src == NULL) {
103 src, -1,
110 ucnv_toUChars(cnv, dest->str, numUChars+1, src, -1, &status);
145 int32_t start,pos,end,to;
242 pos=ubrk_next(word);
243 if(pos!=4)
245 log_verbose("next (word = %d\n", (int32_t)pos);
246 pos=ubrk_following(word, 4);
247 if(pos!=5)
249 log_verbose("next (word = %d\n", (int32_t)pos);
255 pos=ubrk_previous(word);
256 log_verbose("%d %d\n", end, pos);
258 pos=ubrk_previous(word);
259 log_verbose("%d \n", pos);
264 pos=ubrk_current(word);
265 if (pos != 4) {
276 pos = ubrk_following(character, 5);
277 if(pos!=6)
279 log_verbose("Following (character,5) = %d\n", (int32_t)pos);
280 pos=ubrk_following(character, 18);
281 if(pos!=19)
283 log_verbose("Followingcharacter,18) = %d\n", (int32_t)pos);
284 pos=ubrk_preceding(character, 22);
285 if(pos!=21)
287 log_verbose("preceding(character,22) = %d\n", (int32_t)pos);
291 pos=ubrk_first(line);
292 if(pos != 0)
293 log_err("error ubrk_first(line) returned %d, expected 0\n", (int32_t)pos);
294 pos = ubrk_next(line);
295 pos=ubrk_following(line, 18);
296 if(pos!=22)
298 log_verbose("following (line) = %d\n", (int32_t)pos);
303 pos = ubrk_current(sentence);
304 log_verbose("Current(sentence) = %d\n", (int32_t)pos);
305 pos = ubrk_last(sentence);
306 if(pos!=49)
308 log_verbose("Last (sentence) = %d\n", (int32_t)pos);
373 int32_t start,pos;
495 pos=ubrk_next(someClonedIterators[i]);
496 if(pos!=4)
551 int32_t pos;
559 pos = ubrk_first(bi);
561 if (pos == i && breaks[i] != '*') {
562 log_err("FAIL: unexpected break at position %d found\n", pos);
565 if (pos != i && breaks[i] == '*') {
569 if (pos == i) {
575 pos, expectedTag, tag);
578 pos = ubrk_next(bi);
627 int32_t pos = 0;
647 pos = ubrk_next(bi);
648 TEST_ASSERT(pos == 1);
678 int32_t pos = 0;
696 pos = ubrk_first(bi);
697 TEST_ASSERT(pos == 0);
699 pos = ubrk_next(bi);
700 TEST_ASSERT(pos == 4);
702 pos = ubrk_next(bi);
703 TEST_ASSERT(pos == 5);
705 pos = ubrk_next(bi);
706 TEST_ASSERT(pos == 10);
708 pos = ubrk_next(bi);
709 TEST_ASSERT(pos == UBRK_DONE);