Previous: Functions for converting UTF-8 characters, Up: UTF-8 [Contents][Index]
Returns a pointer to a new wide character string which is a duplicate
of the string s. Memory for the new string is obtained with
malloc
(3), and can be freed with free
(3).
Quotes occurrences of backslash and double-quote in s by
prefixing each of them with a backslash. The return value is
allocated using malloc
(3).
Quotes occurrences of backslash and double-quote in s by
prefixing each of them with a backslash. On success stores the result
(allocated with malloc
(3)) in sptr, and returns 0. On
error, returns -1 and sets errno
to the one of the following:
Not enough memory to allocate the return buffer.
An invalid wide character is encountered.
Compute a hash code of ws for a symbol table of n buckets.
Computes Levenshtein distance between UTF-8 strings a and b. The flags argument is a bitwise or of one or more flags:
0
Default - compute Levenstein distance, treating both arguments literally.
DICO_LEV_NORM
Treat runs of one or more whitespace characters as a single space character (ASCII 32).
DICO_LEV_DAMERAU
Compute Damerau-Levenshtein distance. This distance takes into account transpositions.
Computes the Soundex code for the given word. The code is stored in code. Returns 0 on success, -1 if word is not a valid UTF-8 string.
This macro definition expands to the size of Soundex code buffer, including the terminal zero.
Note that this function silently ignores all characters, except Latin letters.
Previous: Functions for converting UTF-8 characters, Up: UTF-8 [Contents][Index]