Lines Matching refs:outstr
902 * When "outstr" is NULL only return the number of UTF-16 words produced.
903 * Otherwise "outstr" must be a buffer of sufficient size.
907 utf8_to_utf16(char_u *instr, int inlen, short_u *outstr, int *unconvlenp)
932 if (outstr != NULL)
934 *outstr++ = (0xD800 - (0x10000 >> 10)) + (ch >> 10);
935 *outstr++ = 0xDC00 | (ch & 0x3FF);
938 else if (outstr != NULL)
939 *outstr++ = ch;
951 * When "outstr" is NULL only return the required number of bytes.
952 * Otherwise "outstr" must be a buffer of sufficient size.
956 utf16_to_utf8(short_u *instr, int inlen, char_u *outstr)
978 if (outstr != NULL)
980 l = utf_char2bytes(ch, outstr);
981 outstr += l;