Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion scripts/unicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
# these are the surrogate codepoints, which are not valid rust characters
surrogate_codepoints = (0xd800, 0xdfff)

UNICODE_VERSION = (16, 0, 0)
UNICODE_VERSION = (17, 0, 0)

UNICODE_VERSION_NUMBER = "%s.%s.%s" %UNICODE_VERSION

Expand Down
15 changes: 8 additions & 7 deletions src/grapheme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -800,13 +800,14 @@ impl GraphemeCursor {
self.cat_after = self.cat_before.take();
self.state = GraphemeState::Unknown;
if let Some(incb_linker_count) = self.incb_linker_count {
self.ris_count = if incb_linker_count > 0 && crate::tables::is_incb_linker(ch) {
Some(incb_linker_count - 1)
} else if crate::tables::derived_property::InCB_Extend(ch) {
Some(incb_linker_count)
} else {
None
};
self.incb_linker_count =
if incb_linker_count > 0 && crate::tables::is_incb_linker(ch) {
Some(incb_linker_count - 1)
} else if crate::tables::derived_property::InCB_Extend(ch) {
Some(incb_linker_count)
} else {
None
};
}
if let Some(ris_count) = self.ris_count {
self.ris_count = if ris_count > 0 {
Expand Down
Loading
Loading