Lines Matching refs:setOffset
219 uint16_t offset=0, setOffset=0;
221 setOffset=offset;
222 UTF16_NEXT_CHAR_UNSAFE(input, setOffset, c);
223 if(setOffset != movedOffset[i]){
225 offset, movedOffset[i], setOffset);
231 setOffset=offset;
232 U16_NEXT_UNSAFE(input, setOffset, c);
233 if(setOffset != movedOffset[i]){
235 offset, movedOffset[i], setOffset);
241 setOffset=offset;
242 UTF16_NEXT_CHAR_SAFE(input, setOffset, sizeof(input)/U_SIZEOF_UCHAR, c, FALSE);
243 if(setOffset != movedOffset[i+1]){
245 offset, movedOffset[i+1], setOffset);
251 setOffset=offset;
252 U16_NEXT(input, setOffset, sizeof(input)/U_SIZEOF_UCHAR, c);
253 if(setOffset != movedOffset[i+1]){
255 offset, movedOffset[i+1], setOffset);
261 setOffset=offset;
262 UTF16_NEXT_CHAR_SAFE(input, setOffset, sizeof(input)/U_SIZEOF_UCHAR, c, TRUE);
263 if(setOffset != movedOffset[i+1]){
265 offset, movedOffset[i+2], setOffset);
275 setOffset=offset;
276 UTF16_PREV_CHAR_UNSAFE(input, setOffset, c);
277 if(setOffset != movedOffset[i+3]){
279 offset, movedOffset[i+3], setOffset);
285 setOffset=offset;
286 U16_PREV_UNSAFE(input, setOffset, c);
287 if(setOffset != movedOffset[i+3]){
289 offset, movedOffset[i+3], setOffset);
295 setOffset=offset;
296 UTF16_PREV_CHAR_SAFE(input, 0, setOffset, c, FALSE);
297 if(setOffset != movedOffset[i+4]){
299 offset, movedOffset[i+4], setOffset);
305 setOffset=offset;
306 U16_PREV(input, 0, setOffset, c);
307 if(setOffset != movedOffset[i+4]){
309 offset, movedOffset[i+4], setOffset);
315 setOffset=offset;
316 UTF16_PREV_CHAR_SAFE(input, 0, setOffset, c, TRUE);
317 if(setOffset != movedOffset[i+5]){
319 offset, movedOffset[i+5], setOffset);
497 uint16_t offset=0, setOffset=0;
499 setOffset=offset;
500 UTF16_SET_CHAR_START_UNSAFE(input, setOffset);
501 if(setOffset != start_unsafe[i]){
502 log_err("ERROR: UTF16_SET_CHAR_START_UNSAFE failed for offset=%ld. Expected:%lx Got:%lx\n", offset, start_unsafe[i], setOffset);
505 setOffset=offset;
506 U16_SET_CP_START_UNSAFE(input, setOffset);
507 if(setOffset != start_unsafe[i]){
508 log_err("ERROR: U16_SET_CHAR_START_UNSAFE failed for offset=%ld. Expected:%lx Got:%lx\n", offset, start_unsafe[i], setOffset);
511 setOffset=offset;
512 UTF16_SET_CHAR_START_SAFE(input, 0, setOffset);
513 if(setOffset != start_safe[i]){
514 log_err("ERROR: UTF16_SET_CHAR_START_SAFE failed for offset=%ld. Expected:%lx Got:%lx\n", offset, start_safe[i], setOffset);
517 setOffset=offset;
518 U16_SET_CP_START(input, 0, setOffset);
519 if(setOffset != start_safe[i]){
520 log_err("ERROR: U16_SET_CHAR_START failed for offset=%ld. Expected:%lx Got:%lx\n", offset, start_safe[i], setOffset);
524 setOffset=offset;
525 UTF16_SET_CHAR_LIMIT_UNSAFE(input, setOffset);
526 if(setOffset != limit_unsafe[i]){
527 log_err("ERROR: UTF16_SET_CHAR_LIMIT_UNSAFE failed for offset=%ld. Expected:%lx Got:%lx\n", offset, limit_unsafe[i], setOffset);
530 setOffset=offset;
531 U16_SET_CP_LIMIT_UNSAFE(input, setOffset);
532 if(setOffset != limit_unsafe[i]){
533 log_err("ERROR: U16_SET_CHAR_LIMIT_UNSAFE failed for offset=%ld. Expected:%lx Got:%lx\n", offset, limit_unsafe[i], setOffset);
537 setOffset=offset;
538 U16_SET_CP_LIMIT(input,0, setOffset, sizeof(input)/U_SIZEOF_UCHAR);
539 if(setOffset != limit_safe[i]){
540 log_err("ERROR: U16_SET_CHAR_LIMIT failed for offset=%ld. Expected:%lx Got:%lx\n", offset, limit_safe[i], setOffset);