Home | History | Annotate | Download | only in common

Lines Matching refs:strict

90 errorValue(int32_t count, int8_t strict) {
91 if(strict>=0) {
93 } else if(strict==-3) {
106 * The "strict" parameter controls the error behavior:
118 * >0 Obsolete "strict" behavior of UTF8_NEXT_CHAR_SAFE(..., TRUE):
125 utf8_nextCharSafeBody(const uint8_t *s, int32_t *pi, int32_t length, UChar32 c, UBool strict) {
154 if(((c&0xffe0)==0x360 && strict!=-2) || trail>0x3f) { break; }
161 /* strict: forbid non-characters like U+fffe */
162 (strict<=0 || !U_IS_UNICODE_NONCHAR(c))) {
179 c=errorValue(i-*pi, strict);
230 utf8_prevCharSafeBody(const uint8_t *s, int32_t start, int32_t *pi, UChar32 c, UBool strict) {
234 if(!U8_IS_TRAIL(c)) { return errorValue(0, strict); }
242 return errorValue(0, strict);
257 if(count>=4 || c>0x10ffff || c<utf8_minLegal[count] || (U_IS_SURROGATE(c) && strict!=-2) || (strict>0 && U_IS_UNICODE_NONCHAR(c))) {
258 /* illegal sequence or (strict and non-character) */
262 c=errorValue(count, strict);
272 c=errorValue(count, strict);
274 c=errorValue(0, strict);
285 c=errorValue(0, strict);
290 c=errorValue(0, strict);