59#define LINEBREAK_MUSTBREAK 0
60#define LINEBREAK_ALLOWBREAK 1
61#define LINEBREAK_NOBREAK 2
62#define LINEBREAK_INSIDEACHAR 3
63#define LINEBREAK_INDETERMINATE 4
67 const utf8_t *s,
size_t len,
const char *lang,
char *brks);
69 const utf16_t *s,
size_t len,
const char *lang,
char *brks);
71 const utf32_t *s,
size_t len,
const char *lang,
char *brks);
73 const utf8_t *s,
size_t len,
const char *lang,
char *brks);
75 const utf16_t *s,
size_t len,
const char *lang,
char *brks);
void set_linebreaks_utf16(const utf16_t *s, size_t len, const char *lang, char *brks)
Sets the line breaking information for a UTF-16 input string.
Definition: linebreak.c:909
int is_line_breakable(utf32_t char1, utf32_t char2, const char *lang)
Tells whether a line break can occur between two Unicode characters.
Definition: linebreak.c:976
void init_linebreak(void)
Initializes the second-level index to the line breaking properties.
Definition: linebreak.c:347
size_t set_linebreaks_utf16_per_code_point(const utf16_t *s, size_t len, const char *lang, char *brks)
Sets the line breaking information for a UTF-16 input string.
Definition: linebreak.c:932
void set_linebreaks_utf32(const utf32_t *s, size_t len, const char *lang, char *brks)
Sets the line breaking information for a UTF-32 input string.
Definition: linebreak.c:953
size_t set_linebreaks_utf8_per_code_point(const utf8_t *s, size_t len, const char *lang, char *brks)
Sets the line breaking information for a UTF-8 input string.
Definition: linebreak.c:888
void set_linebreaks_utf8(const utf8_t *s, size_t len, const char *lang, char *brks)
Sets the line breaking information for a UTF-8 input string.
Definition: linebreak.c:865
Header file for common definitions in the libunibreak library.
unsigned short utf16_t
Type for UTF-16 data points.
Definition: unibreakbase.h:48
unsigned int utf32_t
Type for UTF-32 data points.
Definition: unibreakbase.h:49
unsigned char utf8_t
Type for UTF-8 data points.
Definition: unibreakbase.h:47