Lines Matching refs:offsafe
683 uint32_t offsafe=0; in TestFwdBack() local
687 while(offsafe < sizeof(input)){ in TestFwdBack()
688 UTF8_FWD_1_SAFE(input, offsafe, sizeof(input)); in TestFwdBack()
689 if(offsafe != fwd_safe[i]){ in TestFwdBack()
690 log_err("ERROR: Forward_safe offset expected:%d, Got:%d\n", fwd_safe[i], offsafe); in TestFwdBack()
695 offsafe=0; in TestFwdBack()
697 while(offsafe < sizeof(input)){ in TestFwdBack()
698 U8_FWD_1(input, offsafe, sizeof(input)); in TestFwdBack()
699 if(offsafe != fwd_safe[i]){ in TestFwdBack()
700 log_err("ERROR: U8_FWD_1 offset expected:%d, Got:%d\n", fwd_safe[i], offsafe); in TestFwdBack()
706 offsafe=sizeof(input); in TestFwdBack()
707 while(offsafe > 0){ in TestFwdBack()
708 UTF8_BACK_1_SAFE(input, 0, offsafe); in TestFwdBack()
709 if(offsafe != back_safe[i]){ in TestFwdBack()
710 log_err("ERROR: Backward_safe offset expected:%d, Got:%d\n", back_safe[i], offsafe); in TestFwdBack()
716 offsafe=sizeof(input); in TestFwdBack()
717 while(offsafe > 0){ in TestFwdBack()
718 U8_BACK_1(input, 0, offsafe); in TestFwdBack()
719 if(offsafe != back_safe[i]){ in TestFwdBack()
720 log_err("ERROR: U8_BACK_1 offset expected:%d, Got:%d\n", back_safe[i], offsafe); in TestFwdBack()
725 offsafe=0; in TestFwdBack()
727 UTF8_FWD_N_SAFE(input, offsafe, sizeof(input), Nvalue[i]); in TestFwdBack()
728 if(offsafe != fwd_N_safe[i]){ in TestFwdBack()
729 … log_err("ERROR: Forward_N_safe offset=%d expected:%d, Got:%d\n", i, fwd_N_safe[i], offsafe); in TestFwdBack()
734 offsafe=0; in TestFwdBack()
736 U8_FWD_N(input, offsafe, sizeof(input), Nvalue[i]); in TestFwdBack()
737 if(offsafe != fwd_N_safe[i]){ in TestFwdBack()
738 log_err("ERROR: U8_FWD_N offset=%d expected:%d, Got:%d\n", i, fwd_N_safe[i], offsafe); in TestFwdBack()
743 offsafe=sizeof(input); in TestFwdBack()
745 UTF8_BACK_N_SAFE(input, 0, offsafe, Nvalue[i]); in TestFwdBack()
746 if(offsafe != back_N_safe[i]){ in TestFwdBack()
747 … log_err("ERROR: backward_N_safe offset=%d expected:%d, Got:%ld\n", i, back_N_safe[i], offsafe); in TestFwdBack()
751 offsafe=sizeof(input); in TestFwdBack()
753 U8_BACK_N(input, 0, offsafe, Nvalue[i]); in TestFwdBack()
754 if(offsafe != back_N_safe[i]){ in TestFwdBack()
755 … log_err("ERROR: U8_BACK_N offset=%d expected:%d, Got:%ld\n", i, back_N_safe[i], offsafe); in TestFwdBack()