Lines Matching refs:ucs2
20 src/ucs2.h | 27 +++++++++++++++++++--------
99 diff --git a/src/ucs2.h b/src/ucs2.h
101 --- a/src/ucs2.h
102 +++ b/src/ucs2.h
145 -utf8_to_ucs2(uint16_t *ucs2, ssize_t size, int terminate, uint8_t *utf8)
150 + uint16_t *ucs2 = ucs2void;
153 if (!ucs2 && size > 0) {
155 @@ -162,10 +170,13 @@ utf8_to_ucs2(uint16_t *ucs2, ssize_t size, int terminate, uint8_t *utf8)
159 - ucs2[j] = val;
161 + ucs2[j] = val16;
165 + ucs2[j++] = val16;
168 - ucs2[j++] = (uint16_t)0;