Lines Matching refs:u_len

37 	if ( (!dest) || (!src) || (!strlen) || (src->u_len > strlen) )  in udf_ustr_to_dchars()
39 memcpy(dest+1, src->u_name, src->u_len); in udf_ustr_to_dchars()
41 return src->u_len + 1; in udf_ustr_to_dchars()
46 if ( (!dest) || (!src) || (!strlen) || (src->u_len >= strlen) ) in udf_ustr_to_char()
48 memcpy(dest, src->u_name, src->u_len); in udf_ustr_to_char()
49 return src->u_len; in udf_ustr_to_char()
56 dest[dlength-1] = src->u_len + 1; in udf_ustr_to_dstring()
70 dest->u_len = strlen-1; in udf_dchars_to_ustr()
81 dest->u_len = strlen; in udf_char_to_ustr()
107 dest->u_len=ptr[size-1]; in udf_build_ustr()
122 dest->u_len=exactsize-1; in udf_build_ustr_exact()
158 ocu_len = ocu_i->u_len; in udf_CS0toUTF8()
160 utf_o->u_len = 0; in udf_CS0toUTF8()
166 utf_o->u_len = 0; in udf_CS0toUTF8()
176 for (i = 0; (i < ocu_len) && (utf_o->u_len <= (UDF_NAME_LEN-3)) ;) in udf_CS0toUTF8()
186 utf_o->u_name[utf_o->u_len++] = (uint8_t)c; in udf_CS0toUTF8()
189 utf_o->u_name[utf_o->u_len++] = (uint8_t)(0xc0 | (c >> 6)); in udf_CS0toUTF8()
190 utf_o->u_name[utf_o->u_len++] = (uint8_t)(0x80 | (c & 0x3f)); in udf_CS0toUTF8()
194 utf_o->u_name[utf_o->u_len++] = (uint8_t)(0xe0 | (c >> 12)); in udf_CS0toUTF8()
195 utf_o->u_name[utf_o->u_len++] = (uint8_t)(0x80 | ((c >> 6) & 0x3f)); in udf_CS0toUTF8()
196 utf_o->u_name[utf_o->u_len++] = (uint8_t)(0x80 | (c & 0x3f)); in udf_CS0toUTF8()
201 return utf_o->u_len; in udf_CS0toUTF8()
231 int u_len = 0; in udf_UTF8toCS0() local
240 for (i = 0U; i < utf->u_len; i++) in udf_UTF8toCS0()
304 ocu[++u_len] = (uint8_t)(utf_char >> 8); in udf_UTF8toCS0()
306 ocu[++u_len] = (uint8_t)(utf_char & 0xffU); in udf_UTF8toCS0()
317 ocu[length - 1] = (uint8_t)u_len + 1; in udf_UTF8toCS0()
318 return u_len + 1; in udf_UTF8toCS0()
330 ocu_len = ocu_i->u_len; in udf_CS0toNLS()
332 utf_o->u_len = 0; in udf_CS0toNLS()
338 utf_o->u_len = 0; in udf_CS0toNLS()
348 for (i = 0; (i < ocu_len) && (utf_o->u_len <= (UDF_NAME_LEN-3)) ;) in udf_CS0toNLS()
355 utf_o->u_len += nls->uni2char(c, &utf_o->u_name[utf_o->u_len], in udf_CS0toNLS()
356 UDF_NAME_LEN - utf_o->u_len); in udf_CS0toNLS()
360 return utf_o->u_len; in udf_CS0toNLS()
368 int u_len = 0; in udf_NLStoCS0() local
377 for (i = 0U; i < uni->u_len; i++) in udf_NLStoCS0()
379 len = nls->char2uni(&uni->u_name[i], uni->u_len-i, &uni_char); in udf_NLStoCS0()
390 ocu[++u_len] = (uint8_t)(uni_char >> 8); in udf_NLStoCS0()
393 ocu[++u_len] = (uint8_t)(uni_char & 0xffU); in udf_NLStoCS0()
396 ocu[length - 1] = (uint8_t)u_len + 1; in udf_NLStoCS0()
397 return u_len + 1; in udf_NLStoCS0()
429 if ((len = udf_translate_to_linux(dname, filename.u_name, filename.u_len, in udf_get_filename()
430 unifilename.u_name, unifilename.u_len))) in udf_get_filename()