Lines Matching refs:ocu
100 const uint8_t *ocu; in udf_CS0toUTF8() local
118 ocu = ocu_i->u_name; in udf_CS0toUTF8()
123 uint32_t c = ocu[i++]; in udf_CS0toUTF8()
125 c = (c << 8) | ocu[i++]; in udf_CS0toUTF8()
177 static int udf_UTF8toCS0(dstring *ocu, struct ustr *utf, int length) in udf_UTF8toCS0() argument
182 memset(ocu, 0, sizeof(dstring) * length); in udf_UTF8toCS0()
183 ocu[0] = 8; in udf_UTF8toCS0()
236 ocu[0] = (uint8_t)0x10U; in udf_UTF8toCS0()
244 ocu[++u_len] = (uint8_t)(utf_char >> 8); in udf_UTF8toCS0()
245 ocu[++u_len] = (uint8_t)(utf_char & 0xffU); in udf_UTF8toCS0()
250 ocu[++u_len] = '?'; in udf_UTF8toCS0()
254 ocu[length - 1] = (uint8_t)u_len + 1; in udf_UTF8toCS0()
262 const uint8_t *ocu; in udf_CS0toNLS() local
281 ocu = ocu_i->u_name; in udf_CS0toNLS()
285 uint32_t c = ocu[i++]; in udf_CS0toNLS()
287 c = (c << 8) | ocu[i++]; in udf_CS0toNLS()
302 static int udf_NLStoCS0(struct nls_table *nls, dstring *ocu, struct ustr *uni, in udf_NLStoCS0() argument
310 memset(ocu, 0, sizeof(dstring) * length); in udf_NLStoCS0()
311 ocu[0] = 8; in udf_NLStoCS0()
332 ocu[0] = (uint8_t)0x10U; in udf_NLStoCS0()
338 ocu[++u_len] = (uint8_t)(uni_char >> 8); in udf_NLStoCS0()
339 ocu[++u_len] = (uint8_t)(uni_char & 0xffU); in udf_NLStoCS0()
343 ocu[length - 1] = (uint8_t)u_len + 1; in udf_NLStoCS0()