Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions utf8proc.h
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,12 @@ UTF8PROC_DLLEXPORT utf8proc_ssize_t utf8proc_map(
* that is called on each codepoint in `str` before any other transformations
* (along with a `custom_data` pointer that is passed through to `custom_func`).
* The `custom_func` argument is ignored if it is `NULL`.
*
* @note `custom_func` may be called more than once for each input codepoint.
* It must return the same replacement for a given codepoint, independently of
* the number or order of calls. Caching results in `custom_data` is allowed if
* it does not change the mapping. Context-dependent transformations should be
* applied to the input before calling this function.
*/
UTF8PROC_DLLEXPORT utf8proc_ssize_t utf8proc_map_custom(
const utf8proc_uint8_t *str, utf8proc_ssize_t strlen, utf8proc_uint8_t **dstptr, unsigned int options,
Expand Down