Lines Matching refs:cp
92 register ucs2_t *cp; in utf_16_convert_from_ucs() local
110 cp = (ucs2_t *)*outbuf; in utf_16_convert_from_ucs()
114 *cp++ = UTF16_BOM; in utf_16_convert_from_ucs()
123 *cp = ICONV_HTOLES ((ucs2_t)in); in utf_16_convert_from_ucs()
126 *cp = ICONV_HTOBES ((ucs2_t)in); in utf_16_convert_from_ucs()
129 *cp = (ucs2_t)in; in utf_16_convert_from_ucs()
145 *cp++ = ICONV_HTOLES (w1); in utf_16_convert_from_ucs()
146 *cp = ICONV_HTOLES (w2); in utf_16_convert_from_ucs()
149 *cp++ = ICONV_HTOBES (w1); in utf_16_convert_from_ucs()
150 *cp = ICONV_HTOBES (w2); in utf_16_convert_from_ucs()
153 *cp++ = w1; in utf_16_convert_from_ucs()
154 *cp = w2; in utf_16_convert_from_ucs()
193 register ucs2_t *cp; in utf_16_convert_to_ucs() local
203 cp = ((ucs2_t *)*inbuf); in utf_16_convert_to_ucs()
207 if (*cp == ICONV_HTOLES(UTF16_BOM)) in utf_16_convert_to_ucs()
212 if ( *cp == ICONV_HTOBES (UTF16_BOM) in utf_16_convert_to_ucs()
213 || *cp == ICONV_HTOLES (UTF16_BOM)) in utf_16_convert_to_ucs()
217 cp += 1; in utf_16_convert_to_ucs()
222 w1 = ICONV_LETOHS (*cp); in utf_16_convert_to_ucs()
224 w1 = ICONV_BETOHS (*cp); in utf_16_convert_to_ucs()
242 cp += 1; in utf_16_convert_to_ucs()
245 w2 = ICONV_LETOHS (*cp); in utf_16_convert_to_ucs()
247 w2 = ICONV_BETOHS (*cp); in utf_16_convert_to_ucs()