Lines Matching defs:boundaries
592 * Use a (mostly) well-formed UTF-8 string and test at code point boundaries.
774 * Use a (mostly) well-formed UTF-8 string and test at code point boundaries.
787 static const int8_t boundaries[]={ 0, 1, 5, 6, 7, 10, 12, 16, 17 };
796 if(offset != boundaries[i]){
797 log_err("ERROR: UTF8_FWD_1_UNSAFE offset expected:%d, Got:%d\n", boundaries[i], offset);
803 if(offset != boundaries[i]){
804 log_err("ERROR: U8_FWD_1_UNSAFE offset expected:%d, Got:%d\n", boundaries[i], offset);
822 for(i=0; i<UPRV_LENGTHOF(boundaries); ++i) {
825 if(offset != boundaries[i]) {
826 log_err("ERROR: UTF8_FWD_N_UNSAFE offset expected:%d, Got:%d\n", boundaries[i], offset);
830 for(i=0; i<UPRV_LENGTHOF(boundaries); ++i) {
833 if(offset != boundaries[i]) {
834 log_err("ERROR: U8_FWD_N_UNSAFE offset expected:%d, Got:%d\n", boundaries[i], offset);