/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * cifs_unicode: Unicode kernel case support * * Function: * Convert a unicode character to upper or lower case using * compressed tables. * * Copyright (c) International Business Machines Corp., 2000,2009 * * Notes: * These APIs are based on the C library functions. The semantics * should match the C functions but with expanded size operands. * * The upper/lower functions are based on a table created by mkupr. * This is a compressed table of upper and lower case conversion.
*/ #ifndef _CIFS_UNICODE_H #define _CIFS_UNICODE_H
/* * Mapping mechanism to use when one of the seven reserved characters is * encountered. We can only map using one of the mechanisms at a time * since otherwise readdir could return directory entries which we would * not be able to open * * NO_MAP_UNI_RSVD = do not perform any remapping of the character * SFM_MAP_UNI_RSVD = map reserved characters using SFM scheme (MAC compatible) * SFU_MAP_UNI_RSVD = map reserved characters ala SFU ("mapchars" option) *
*/ #define NO_MAP_UNI_RSVD 0 #define SFM_MAP_UNI_RSVD 1 #define SFU_MAP_UNI_RSVD 2
#ifdef __KERNEL__ int cifs_from_utf16(char *to, const __le16 *from, int tolen, int fromlen, conststruct nls_table *cp, int map_type); int cifs_utf16_bytes(const __le16 *from, int maxbytes, conststruct nls_table *codepage); int cifs_strtoUTF16(__le16 *, constchar *, int, conststruct nls_table *); char *cifs_strndup_from_utf16(constchar *src, constint maxlen, constbool is_unicode, conststruct nls_table *codepage); externint cifsConvertToUTF16(__le16 *target, constchar *source, int maxlen, conststruct nls_table *cp, int mapChars); externint cifs_remap(struct cifs_sb_info *cifs_sb); extern __le16 *cifs_strndup_to_utf16(constchar *src, constint maxlen, int *utf16_len, conststruct nls_table *cp, int remap); #endif
wchar_t cifs_toupper(wchar_t in);
#endif/* _CIFS_UNICODE_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.23 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.