Home
last modified time | relevance | path

Searched refs:ucs2 (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/fs/nls/
Dnls_ucs2_utils.h50 static inline wchar_t *UniStrcat(wchar_t *ucs1, const wchar_t *ucs2) in UniStrcat() argument
57 while ((*ucs1++ = *ucs2++)) in UniStrcat()
87 static inline int UniStrcmp(const wchar_t *ucs1, const wchar_t *ucs2) in UniStrcmp() argument
89 while ((*ucs1 == *ucs2) && *ucs1) { in UniStrcmp()
91 ucs2++; in UniStrcmp()
93 return (int)*ucs1 - (int)*ucs2; in UniStrcmp()
99 static inline wchar_t *UniStrcpy(wchar_t *ucs1, const wchar_t *ucs2) in UniStrcpy() argument
103 while ((*ucs1++ = *ucs2++)) in UniStrcpy()
139 static inline wchar_t *UniStrncat(wchar_t *ucs1, const wchar_t *ucs2, size_t n) in UniStrncat() argument
146 while (n-- && (*ucs1 = *ucs2)) { /* copy s2 after s1 */ in UniStrncat()
[all …]
/linux-6.12.1/fs/jfs/
Djfs_unicode.h22 static inline wchar_t *UniStrcpy(wchar_t * ucs1, const wchar_t * ucs2) in UniStrcpy() argument
26 while ((*ucs1++ = *ucs2++)); in UniStrcpy()
35 static inline __le16 *UniStrncpy_le(__le16 * ucs1, const __le16 * ucs2, in UniStrncpy_le() argument
40 while (n-- && *ucs2) /* Copy the strings */ in UniStrncpy_le()
41 *ucs1++ = *ucs2++; in UniStrncpy_le()
52 static inline int UniStrncmp_le(const wchar_t * ucs1, const __le16 * ucs2, in UniStrncmp_le() argument
57 while ((*ucs1 == __le16_to_cpu(*ucs2)) && *ucs1 && --n) { in UniStrncmp_le()
59 ucs2++; in UniStrncmp_le()
61 return (int) *ucs1 - (int) __le16_to_cpu(*ucs2); in UniStrncmp_le()
67 static inline __le16 *UniStrncpy_to_le(__le16 * ucs1, const wchar_t * ucs2, in UniStrncpy_to_le() argument
[all …]
/linux-6.12.1/fs/exfat/
Dnls.c406 const unsigned char *ch, int ch_len, unsigned short *ucs2, in exfat_convert_char_to_ucs2() argument
411 *ucs2 = 0x0; in exfat_convert_char_to_ucs2()
414 *ucs2 = ch[0]; in exfat_convert_char_to_ucs2()
418 len = nls->char2uni(ch, ch_len, ucs2); in exfat_convert_char_to_ucs2()
423 *ucs2 = '_'; in exfat_convert_char_to_ucs2()
430 unsigned short ucs2, unsigned char *ch, int *lossy) in exfat_convert_ucs2_to_char() argument
436 if (ucs2 < 0x0080) { in exfat_convert_ucs2_to_char()
437 ch[0] = ucs2; in exfat_convert_ucs2_to_char()
441 len = nls->uni2char(ucs2, ch, MAX_CHARSET_SIZE); in exfat_convert_ucs2_to_char()