Skip to content

Commit

Permalink
Make code style more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
adah1972 committed Mar 2, 2024
1 parent cb77b1d commit f79ad51
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/graphemebreak.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
extern "C" {
#endif

#define GRAPHEMEBREAK_BREAK 0 /**< Between 2 graphemes */
#define GRAPHEMEBREAK_NOBREAK 1 /**< Inside a grapheme */
#define GRAPHEMEBREAK_INSIDEACHAR 2 /**< Inside a unicode character */
#define GRAPHEMEBREAK_BREAK 0 /**< Between two graphemes */
#define GRAPHEMEBREAK_NOBREAK 1 /**< Inside a grapheme */
#define GRAPHEMEBREAK_INSIDEACHAR 2 /**< Inside a Unicode character */

void init_graphemebreak(void);
void set_graphemebreaks_utf8(const utf8_t *s, size_t len, const char *lang,
Expand Down
10 changes: 5 additions & 5 deletions src/linebreak.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@
extern "C" {
#endif

#define LINEBREAK_MUSTBREAK 0 /**< Break is mandatory */
#define LINEBREAK_ALLOWBREAK 1 /**< Break is allowed */
#define LINEBREAK_NOBREAK 2 /**< No break is possible */
#define LINEBREAK_INSIDEACHAR 3 /**< A UTF-8/16 sequence is unfinished */
#define LINEBREAK_INDETERMINATE 4 /**< End of input on a non-EOL char */
#define LINEBREAK_MUSTBREAK 0 /**< Break is mandatory */
#define LINEBREAK_ALLOWBREAK 1 /**< Break is allowed */
#define LINEBREAK_NOBREAK 2 /**< No break is possible */
#define LINEBREAK_INSIDEACHAR 3 /**< A UTF-8/16 sequence is unfinished */
#define LINEBREAK_INDETERMINATE 4 /**< End of input on a non-EOL char */

void init_linebreak(void);
void set_linebreaks_utf8(
Expand Down
6 changes: 3 additions & 3 deletions src/wordbreak.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
extern "C" {
#endif

#define WORDBREAK_BREAK 0 /**< Break is allowed */
#define WORDBREAK_NOBREAK 1 /**< No break is allowed */
#define WORDBREAK_INSIDEACHAR 2 /**< A UTF-8/16 sequence is unfinished */
#define WORDBREAK_BREAK 0 /**< Break is allowed */
#define WORDBREAK_NOBREAK 1 /**< No break is allowed */
#define WORDBREAK_INSIDEACHAR 2 /**< A UTF-8/16 sequence is unfinished */

void init_wordbreak(void);
void set_wordbreaks_utf8(
Expand Down

0 comments on commit f79ad51

Please sign in to comment.