Lines Matching refs:ucsp
203 utf8_encodelen(const u_int16_t * ucsp, size_t ucslen, u_int16_t altslash, int flags) in utf8_encodelen() argument
222 ucs_ch = *ucsp++; in utf8_encodelen()
270 utf8_encodestr(const u_int16_t * ucsp, size_t ucslen, u_int8_t * utf8p, in utf8_encodestr() argument
298 ucs_ch = swapbytes ? OSSwapInt16(*ucsp++) : *ucsp++; in utf8_encodestr()
346 ch2 = swapbytes ? OSSwapInt16(*ucsp) : *ucsp; in utf8_encodestr()
355 ++ucsp; in utf8_encodestr()
393 push(uint16_t ucs_ch, int *combcharcnt, uint16_t **ucsp) in push() argument
402 prioritysort(*ucsp - *combcharcnt, *combcharcnt); in push()
407 *(*ucsp)++ = ucs_ch; in push()
439 utf8_decodestr(const u_int8_t* utf8p, size_t utf8len, u_int16_t* ucsp, in utf8_decodestr() argument
457 bufstart = ucsp; in utf8_decodestr()
458 bufend = (u_int16_t *)((u_int8_t *)ucsp + buflen); in utf8_decodestr()
461 if (ucsp >= bufend) { in utf8_decodestr()
539 push((uint16_t)ucs_ch, &combcharcnt, &ucsp); in utf8_decodestr()
540 if (ucsp >= bufend) { in utf8_decodestr()
545 --ucsp; in utf8_decodestr()
548 *ucsp++ = (u_int16_t)ucs_ch; in utf8_decodestr()
562 if (ucsp >= bufend) { in utf8_decodestr()
566 push(sequence[i], &combcharcnt, &ucsp); in utf8_decodestr()
571 } else if (precompose && (ucsp != bufstart)) { in utf8_decodestr()
575 base = ucsp[-1]; in utf8_decodestr()
578 --ucsp; in utf8_decodestr()
591 push((u_int16_t)ucs_ch, &combcharcnt, &ucsp); in utf8_decodestr()
615 if ((ucsp + 2) >= bufend) { in utf8_decodestr()
621 prioritysort(ucsp - combcharcnt, combcharcnt); in utf8_decodestr()
626 *ucsp++ = (u_int16_t)ucs_ch; in utf8_decodestr()
628 *ucsp++ = (u_int16_t)ucs_ch; in utf8_decodestr()
630 *ucsp++ = (u_int16_t)ucs_ch; in utf8_decodestr()
636 prioritysort(ucsp - combcharcnt, combcharcnt); in utf8_decodestr()
641 while (p < ucsp) { in utf8_decodestr()
648 *ucslen = (u_int8_t*)ucsp - (u_int8_t*)bufstart; in utf8_decodestr()