Searched refs:sta_p (Results 1 – 1 of 1) sorted by relevance
62 static int utf8_dec(char key, char *utf8_scratch, int *sta_p) ;944 static int utf8_dec(char key, char *utf8_scratch, int *sta_p) in utf8_dec() argument948 c[*sta_p] = key; in utf8_dec()949 if (!(*sta_p)) *c = key; in utf8_dec()950 if (*c < 0x7F) { *sta_p = 1; return 1; } in utf8_dec()954 else {*sta_p = 0; return 0; } in utf8_dec()956 (*sta_p)++; in utf8_dec()958 if (*sta_p == 1) return 0; in utf8_dec()959 if ((c[*sta_p-1] & 0xc0) != 0x80) {*sta_p = 0; return 0; } in utf8_dec()961 if (*sta_p == len) { c[(*sta_p)] = 0; return 1; } in utf8_dec()