Skip to content

Commit

Permalink
Fix getSet on properties of strings when using incremental properties
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Mar 26, 2024
1 parent ecec2fc commit f11eb25
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,14 @@ public UnicodeSet getSet(PatternMatcher matcher, UnicodeSet result) {
System.out.println(
"Long getSet for U" + ucdVersion + ":" + prop + " (" + Δt_in_ms + " ms)");
}
// We only do the delta thing for code points; for strings, we need to do the lookup
// directly (and clean whatever was added by walking through history).
if (baseVersionProperties != null
&& (result.hasStrings()
|| (_getRawUnicodeMap().stringKeys() != null
&& !_getRawUnicodeMap().stringKeys().isEmpty()))) {
result.removeAllStrings().addAll(super.getSet(matcher, new UnicodeSet()).strings());
}
return result;
}

Expand Down

0 comments on commit f11eb25

Please sign in to comment.