Lines Matching refs:utf8

928 // converts LENDIAN unicode to utf8
943 uchar utf8[4];
944 uchar *UTF8 = utf8;
950 utf8Len = UTF8 - utf8;
955 dst[dstCount + j] = utf8[j];
965 // utf8 to LENDIAN unicode
1004 // table translation to utf8
1022 uchar utf8[4];
1023 uchar *UTF8 = utf8;
1025 *(uint32 *)utf8 = 0;
1028 int32 utf8Len = UTF8 - utf8;
1033 dst[dstCount + j] = utf8[j];
1043 // converts utf8 to BENDIAN sjis
1126 // takes a unicode name of unilen uchar's and converts to a utf8 name of at
1128 status_t unicode_to_utf8(const uchar *uni, uint32 unilen, uint8 *utf8,
1137 (int32 *)&unilen, (char *)utf8, (int32 *)&utf8len);
1158 bool requires_long_name(const char *utf8, const uchar *unicode)
1173 if (utf8[i] == 0) return false;
1174 if (utf8[i] == '.') break;
1177 if (!strchr(sAcceptable, utf8[i])) return true;
1180 if (utf8[i] == 0) return false;
1181 if ((i == 8) && (utf8[i] != '.')) return true; /* name too long */
1183 if (utf8[i] == 0) return true; /* filenames with trailing periods */
1186 if (utf8[i] == 0) return false;
1188 if (!strchr(sAcceptable, utf8[i])) return true;
1191 return (utf8[i] == 0) ? false : true;
1194 status_t utf8_to_unicode(const char *utf8, uchar *uni, uint32 unilen)
1201 utf8len = origlen = strlen(utf8) + 1;
1203 result = _utf8_to_lendian_unicode(utf8,
1307 generate_short_name_msdos(const uchar *utf8, const uint16 *uni,
1314 TOUCH(utf8);
1387 generate_short_name_sjis(const uchar *utf8, const uint16 *uni,
1402 utf8len = strlen((const char *)utf8) + 1;
1405 result = _utf8_to_sjis_bendian((char *)utf8,
1410 if (utf8len < (int32)strlen((const char *)utf8) + 1) {
1501 /* called to convert a short ms-dos filename to utf8.
1504 status_t msdos_to_utf8(uchar *msdos, uchar *utf8, uint32 utf8len, uint8 toLower)
1532 (char *)utf8, (int32 *)&utf8len);