Lines Matching refs:ocu
73 * ocu Pointer to OSTA Compressed Unicode input buffer
86 const uint8_t *ocu;
104 ocu = ocu_i->u_name;
109 uint32_t c = ocu[i++];
111 c = (c << 8) | ocu[i++];
147 * ocu Pointer to OSTA Compressed Unicode output
159 static int udf_UTF8toCS0(dstring *ocu, struct ustr *utf, int length)
164 memset(ocu, 0, sizeof(dstring) * length);
165 ocu[0] = 8;
213 ocu[0] = (uint8_t)0x10U;
220 ocu[++u_len] = (uint8_t)(utf_char >> 8);
221 ocu[++u_len] = (uint8_t)(utf_char & 0xffU);
226 ocu[++u_len] = '?';
230 ocu[length - 1] = (uint8_t)u_len + 1;
238 const uint8_t *ocu;
257 ocu = ocu_i->u_name;
261 uint32_t c = ocu[i++];
263 c = (c << 8) | ocu[i++];
278 static int udf_NLStoCS0(struct nls_table *nls, dstring *ocu, struct ustr *uni,
286 memset(ocu, 0, sizeof(dstring) * length);
287 ocu[0] = 8;
304 ocu[0] = (uint8_t)0x10U;
309 ocu[++u_len] = (uint8_t)(uni_char >> 8);
310 ocu[++u_len] = (uint8_t)(uni_char & 0xffU);
314 ocu[length - 1] = (uint8_t)u_len + 1;