Home
last modified time | relevance | path

Searched refs:uc (Results 1 – 4 of 4) sorted by relevance

/fs/cifs/
Dcifs_unicode.h115 UniStrchr(const wchar_t *ucs, wchar_t uc) in UniStrchr() argument
117 while ((*ucs != uc) && *ucs) in UniStrchr()
120 if (*ucs == uc) in UniStrchr()
303 UniToupper(register wchar_t uc) in UniToupper() argument
307 if (uc < sizeof(CifsUniUpperTable)) { in UniToupper()
309 return uc + CifsUniUpperTable[uc]; /* Use base tables */ in UniToupper()
313 if (uc < rp->start) /* Before start of range */ in UniToupper()
314 return uc; /* Uppercase = input */ in UniToupper()
315 if (uc <= rp->end) /* In range */ in UniToupper()
316 return uc + rp->table[uc - rp->start]; in UniToupper()
[all …]
/fs/ntfs/
Dupcase.c69 ntfschar *uc; in generate_default_upcase() local
71 uc = ntfs_malloc_nofs(default_upcase_len * sizeof(ntfschar)); in generate_default_upcase()
72 if (!uc) in generate_default_upcase()
73 return uc; in generate_default_upcase()
74 memset(uc, 0, default_upcase_len * sizeof(ntfschar)); in generate_default_upcase()
77 uc[i] = cpu_to_le16(i); in generate_default_upcase()
80 le16_add_cpu(&uc[i], uc_run_table[r][2]); in generate_default_upcase()
83 le16_add_cpu(&uc[i + 1], -1); in generate_default_upcase()
85 uc[uc_word_table[r][0]] = cpu_to_le16(uc_word_table[r][1]); in generate_default_upcase()
86 return uc; in generate_default_upcase()
/fs/jfs/
Djfs_unicode.h121 static inline wchar_t UniToupper(wchar_t uc) in UniToupper() argument
125 if (uc < sizeof(UniUpperTable)) { /* Latin characters */ in UniToupper()
126 return uc + UniUpperTable[uc]; /* Use base tables */ in UniToupper()
130 if (uc < rp->start) /* Before start of range */ in UniToupper()
131 return uc; /* Uppercase = input */ in UniToupper()
132 if (uc <= rp->end) /* In range */ in UniToupper()
133 return uc + rp->table[uc - rp->start]; in UniToupper()
137 return uc; /* Past last range */ in UniToupper()
/fs/hfsplus/
Dunicode.c256 wchar_t *uc) in asc2unichar() argument
258 int size = HFSPLUS_SB(sb)->nls->char2uni(astr, len, uc); in asc2unichar()
260 *uc = '?'; in asc2unichar()
263 switch (*uc) { in asc2unichar()
265 *uc = 0; in asc2unichar()
268 *uc = '/'; in asc2unichar()
275 static inline u16 *decompose_unichar(wchar_t uc, int *size) in decompose_unichar() argument
279 off = hfsplus_decompose_table[(uc >> 12) & 0xf]; in decompose_unichar()
283 off = hfsplus_decompose_table[off + ((uc >> 8) & 0xf)]; in decompose_unichar()
287 off = hfsplus_decompose_table[off + ((uc >> 4) & 0xf)]; in decompose_unichar()
[all …]