Lines Matching refs:boundaries

503      * Use a (mostly) well-formed UTF-8 string and test at code point boundaries.
645 * Use a (mostly) well-formed UTF-8 string and test at code point boundaries.
657 static const int8_t boundaries[]={ 0, 1, 5, 7, 10, 12, 16, 17 };
663 if(offset != boundaries[i]){
664 log_err("ERROR: UTF8_FWD_1_UNSAFE offset expected:%d, Got:%d\n", boundaries[i], offset);
669 if(offset != boundaries[i]){
670 log_err("ERROR: U8_FWD_1_UNSAFE offset expected:%d, Got:%d\n", boundaries[i], offset);
674 for(i=UPRV_LENGTHOF(boundaries)-2, offset=UPRV_LENGTHOF(input); offset>0; --i) {
676 if(offset != boundaries[i]){
677 log_err("ERROR: UTF8_BACK_1_UNSAFE offset expected:%d, Got:%d\n", boundaries[i], offset);
680 for(i=UPRV_LENGTHOF(boundaries)-2, offset=UPRV_LENGTHOF(input); offset>0; --i) {
682 if(offset != boundaries[i]){
683 log_err("ERROR: U8_BACK_1_UNSAFE offset expected:%d, Got:%d\n", boundaries[i], offset);
687 for(i=0; i<UPRV_LENGTHOF(boundaries); ++i) {
690 if(offset != boundaries[i]) {
691 log_err("ERROR: UTF8_FWD_N_UNSAFE offset expected:%d, Got:%d\n", boundaries[i], offset);
694 for(i=0; i<UPRV_LENGTHOF(boundaries); ++i) {
697 if(offset != boundaries[i]) {
698 log_err("ERROR: U8_FWD_N_UNSAFE offset expected:%d, Got:%d\n", boundaries[i], offset);
702 for(i=0; i<UPRV_LENGTHOF(boundaries); ++i) {
703 int32_t j=UPRV_LENGTHOF(boundaries)-1-i;
706 if(offset != boundaries[j]) {
707 log_err("ERROR: UTF8_BACK_N_UNSAFE offset expected:%d, Got:%d\n", boundaries[j], offset);
710 for(i=0; i<UPRV_LENGTHOF(boundaries); ++i) {
711 int32_t j=UPRV_LENGTHOF(boundaries)-1-i;
714 if(offset != boundaries[j]) {
715 log_err("ERROR: U8_BACK_N_UNSAFE offset expected:%d, Got:%d\n", boundaries[j], offset);