libunibreak
4.0
|
Header file for the grapheme breaking algorithm. More...
Go to the source code of this file.
Macros | |
#define | GRAPHEMEBREAK_BREAK 0 |
Between 2 graphemes. More... | |
#define | GRAPHEMEBREAK_NOBREAK 1 |
Inside a grapheme. More... | |
#define | GRAPHEMEBREAK_INSIDEACHAR 2 |
Inside a unicode character. More... | |
Functions | |
void | init_graphemebreak (void) |
Initializes the wordbreak internals. More... | |
void | set_graphemebreaks_utf8 (const utf8_t *s, size_t len, const char *lang, char *brks) |
Sets the grapheme breaking information for a UTF-8 input string. More... | |
void | set_graphemebreaks_utf16 (const utf16_t *s, size_t len, const char *lang, char *brks) |
Sets the grapheme breaking information for a UTF-16 input string. More... | |
void | set_graphemebreaks_utf32 (const utf32_t *s, size_t len, const char *lang, char *brks) |
Sets the grapheme breaking information for a UTF-32 input string. More... | |
Header file for the grapheme breaking algorithm.
#define GRAPHEMEBREAK_BREAK 0 |
Between 2 graphemes.
#define GRAPHEMEBREAK_INSIDEACHAR 2 |
Inside a unicode character.
#define GRAPHEMEBREAK_NOBREAK 1 |
Inside a grapheme.
void init_graphemebreak | ( | void | ) |
Initializes the wordbreak internals.
It currently does nothing, but it may in the future.
void set_graphemebreaks_utf16 | ( | const utf16_t * | s, |
size_t | len, | ||
const char * | lang, | ||
char * | brks | ||
) |
Sets the grapheme breaking information for a UTF-16 input string.
[in] | s | input UTF-16 string |
[in] | len | length of the input |
[in] | lang | language of the input (reserved for future use) |
[out] | brks | pointer to the output breaking data, containing GRAPHEMEBREAK_BREAK or GRAPHEMEBREAK_NOBREAK. First element in output array is for the break behind the first character the pointer must point to an array with at least as many elements as there are characters in the string |
void set_graphemebreaks_utf32 | ( | const utf32_t * | s, |
size_t | len, | ||
const char * | lang, | ||
char * | brks | ||
) |
Sets the grapheme breaking information for a UTF-32 input string.
[in] | s | input UTF-32 string |
[in] | len | length of the input |
[in] | lang | language of the input (reserved for future use) |
[out] | brks | pointer to the output breaking data, containing GRAPHEMEBREAK_BREAK or GRAPHEMEBREAK_NOBREAK. First element in output array is for the break behind the first character the pointer must point to an array with at least as many elements as there are characters in the string |
void set_graphemebreaks_utf8 | ( | const utf8_t * | s, |
size_t | len, | ||
const char * | lang, | ||
char * | brks | ||
) |
Sets the grapheme breaking information for a UTF-8 input string.
[in] | s | input UTF-8 string |
[in] | len | length of the input |
[in] | lang | language of the input (reserved for future use) |
[out] | brks | pointer to the output breaking data, containing GRAPHEMEBREAK_BREAK or GRAPHEMEBREAK_NOBREAK. First element in output array is for the break behind the first character the pointer must point to an array with at least as many elements as there are characters in the string |