Lines Matching refs:ucsp
171 * This function takes a Unicode input string, ucsp, of ucslen bytes
193 utf8_encodelen(const u_int16_t * ucsp, size_t ucslen, u_int16_t altslash, int flags)
212 ucs_ch = *ucsp++;
260 utf8_encodestr(const u_int16_t * ucsp, size_t ucslen, u_int8_t * utf8p,
287 ucs_ch = swapbytes ? OSSwapInt16(*ucsp++) : *ucsp++;
337 ch2 = swapbytes ? OSSwapInt16(*ucsp) : *ucsp;
346 ++ucsp;
411 utf8_decodestr(const u_int8_t* utf8p, size_t utf8len, u_int16_t* ucsp,
430 bufstart = ucsp;
431 bufend = (u_int16_t *)((u_int8_t *)ucsp + buflen);
434 if (ucsp >= bufend)
500 *ucsp++ = swapbytes ? OSSwapInt16(ucs_ch) : (u_int16_t)ucs_ch;
501 if (ucsp >= bufend)
505 --ucsp;
508 *ucsp++ = swapbytes ? OSSwapInt16(ucs_ch) : (u_int16_t)ucs_ch;
524 priortysort(ucsp - combcharcnt, combcharcnt);
531 *ucsp++ = swapbytes ? OSSwapInt16(ucs_ch) : (u_int16_t)ucs_ch;
532 if (ucsp >= bufend)
538 } else if (precompose && (ucsp != bufstart)) {
542 base = swapbytes ? OSSwapInt16(*(ucsp - 1)) : *(ucsp - 1);
545 --ucsp;
563 priortysort(ucsp - combcharcnt, combcharcnt);
568 *ucsp++ = swapbytes ? OSSwapInt16(ucs_ch) : (u_int16_t)ucs_ch;
591 if ((ucsp + 2) >= bufend)
596 priortysort(ucsp - combcharcnt, combcharcnt);
601 *ucsp++ = swapbytes ? OSSwapInt16(ucs_ch) : (u_int16_t)ucs_ch;
603 *ucsp++ = swapbytes ? OSSwapInt16(ucs_ch) : (u_int16_t)ucs_ch;
605 *ucsp++ = swapbytes ? OSSwapInt16(ucs_ch) : (u_int16_t)ucs_ch;
611 priortysort(ucsp - combcharcnt, combcharcnt);
614 *ucslen = (u_int8_t*)ucsp - (u_int8_t*)bufstart;