We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parentscea3ce6 +6884202 commit1d3e87dCopy full SHA for 1d3e87d
src/word.rs
@@ -200,14 +200,13 @@ impl<'a> Iterator for UWordBounds<'a> {
200
letmut cat = wd::WC_Any;
201
letmut savecat = wd::WC_Any;
202
203
-// Whether or not the previous category was ZWJ
204
-// ZWJs get collapsed, so this handles precedence of WB3c over WB4
205
-letmut prev_zwj;
206
// If extend/format/zwj were skipped. Handles precedence of WB3d over WB4
207
letmut skipped_format_extend =false;
208
for(curr, ch)inself.string.char_indices(){
209
idx = curr;
210
- prev_zwj = cat == wd::WC_ZWJ;
+// Whether or not the previous category was ZWJ
+// ZWJs get collapsed, so this handles precedence of WB3c over WB4
+let prev_zwj = cat == wd::WC_ZWJ;
211
// if there's a category cached, grab it
212
cat =matchself.cat{
213
None => wd::word_category(ch).2,