Lines Matching refs:string
2 * unistr.c - Unicode string handling. Originated from the Linux-NTFS project.
39 #include <string.h>
247 * @s1: first string
248 * @s2: second string
285 * @s1: first string
286 * @s2: second string
329 * ntfs_ucsnlen - determine the length of a little endian Unicode string
330 * @s: pointer to Unicode string
331 * @maxlen: maximum length of string @s
334 * string @s up to a maximum of maxlen Unicode characters, not including
352 * ntfs_ucsndup - duplicate little endian Unicode string
353 * @s: pointer to Unicode string
354 * @maxlen: maximum length of string @s
356 * Return a pointer to a new little endian Unicode string which is a duplicate
357 * of the string s. Memory for the new string is obtained with ntfs_malloc(3),
365 * Return a pointer to the new little endian Unicode string on success and NULL
462 * store the given UTF-16LE string.
466 * EILSEQ The input string is not valid UTF-16LE (only possible
468 * ENAMETOOLONG The length of the UTF-8 string in bytes (without the
543 * ntfs_utf16_to_utf8 - convert a little endian UTF16LE string to an UTF-8 string
544 * @ins: input utf16 string buffer
545 * @ins_len: length of input string in utf16 characters
546 * @outs: on return contains the (allocated) output multibyte string
549 * Return -1 with errno set if string has invalid byte sequence or too long.
674 ntfs_log_error("Failed to normalize NTFS string to UTF-8 NFD: %s\n", *outs);
692 * (without the terminating null) to store given UTF-8 string.
694 * Return -1 with errno set if it's longer than PATH_MAX or string is invalid.
696 * Note: This does not check whether the input sequence is a valid utf8 string,
804 * ntfs_utf8_to_utf16 - convert a UTF-8 string to a UTF-16LE string
805 * @ins: input multibyte string buffer
806 * @outs: on return contains the (allocated) output utf16 string
822 ntfs_log_error("Failed to normalize NTFS string to UTF-8 NFC: %s\n", ins);
882 * ntfs_ucstombs - convert a little endian Unicode string to a multibyte string
883 * @ins: input Unicode string buffer
884 * @ins_len: length of input string in Unicode characters
885 * @outs: on return contains the (allocated) output multibyte string
888 * Convert the input little endian, 2-byte Unicode string @ins, of length
889 * @ins_len into the multibyte string format dictated by the current locale.
891 * If *@outs is NULL, the function allocates the string and the caller is
895 * string *@outs (>= 0), not counting the terminating NULL byte. If the output
896 * string buffer was allocated, *@outs is set to it.
901 * EILSEQ The input string cannot be represented as a multibyte
903 * ENAMETOOLONG Destination buffer is too small for input string.
1005 * ntfs_mbstoucs - convert a multibyte string to a little endian Unicode string
1006 * @ins: input multibyte string buffer
1007 * @outs: on return contains the (allocated) output Unicode string
1009 * Convert the input multibyte string @ins, from the current locale into the
1010 * corresponding little endian, 2-byte Unicode string.
1012 * The function allocates the string and the caller is responsible for calling
1016 * the output string *@outs (>= 0), not counting the terminating Unicode NULL
1022 * EILSEQ The input string cannot be represented as a Unicode
1023 * string according to the current locale.
1024 * ENAMETOOLONG Destination buffer is too small for input string.
1048 /* Determine the size of the multi-byte string in bytes. */
1050 /* Determine the length of the multi-byte string. */
1426 * ntfs_str2ucs - convert a string to a valid NTFS file name
1427 * @s: input string
1430 * Convert the input @s string into the corresponding little endian,
1431 * 2-byte Unicode string. The length of the converted string is less
1436 * On success the function returns the Unicode string in an allocated
1464 * @ucs input string to be freed
1688 /* Convert the UTF-8 string to a CFString. */
1696 /* Create a mutable string from cfSourceString that we are free to
1706 /* Normalize the mutable string to the desired normalization form. */
1710 /* Store the resulting string in a '\0'-terminated UTF-8 encoded char*