diff options
author | Keno Fischer <kfischer+github@college.harvard.edu> | 2016-07-13 10:41:13 -0400 |
---|---|---|
committer | Steven G. Johnson <stevenj@mit.edu> | 2016-07-13 10:41:13 -0400 |
commit | c0a1ff81fc71f742acf2c046fe7acd070c0f08b9 (patch) | |
tree | 9e0143d912fd0c9699b5fd1c457dc3af5a752a81 /utf8proc.c | |
parent | c02ebd5a83c009261788df87bce6539259632ccb (diff) | |
download | libutf8proc-c0a1ff81fc71f742acf2c046fe7acd070c0f08b9.tar.gz libutf8proc-c0a1ff81fc71f742acf2c046fe7acd070c0f08b9.tar.bz2 |
Walk back ABI breaking changes (#76)
Diffstat (limited to 'utf8proc.c')
-rw-r--r-- | utf8proc.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -308,7 +308,7 @@ static utf8proc_bool grapheme_break_extended(int lbc, int tbc, utf8proc_int32_t return break_permitted; } -UTF8PROC_DLLEXPORT utf8proc_bool utf8proc_grapheme_break( +UTF8PROC_DLLEXPORT utf8proc_bool utf8proc_grapheme_break_stateful( utf8proc_int32_t c1, utf8proc_int32_t c2, utf8proc_int32_t *state) { return grapheme_break_extended(utf8proc_get_property(c1)->boundclass, @@ -316,6 +316,12 @@ UTF8PROC_DLLEXPORT utf8proc_bool utf8proc_grapheme_break( state); } + +UTF8PROC_DLLEXPORT utf8proc_bool utf8proc_grapheme_break( + utf8proc_int32_t c1, utf8proc_int32_t c2) { + return utf8proc_grapheme_break_stateful(c1, c2, NULL); +} + static utf8proc_int32_t seqindex_decode_entry(const utf8proc_uint16_t **entry) { utf8proc_int32_t entry_cp = **entry; |