You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Unicode character name support and fix bugs in tr/// operator
- Add support for \N{name} syntax with actual Unicode character names
using UnicodeResolver integration with ICU4J (~30,000+ names supported)
- Fix empty \N{} validation to give proper 'Unknown charname' error
- Fix surrogate pair handling bug that was incorrectly removing characters
by checking isSupplementaryCodePoint() instead of isHighSurrogate()
Test improvements: 256/318 (80.5%) -> 277/318 (87.1%)
- Fixed 21 tests (+6.6%)
- Tests now run to completion (previously died at line 1113)
Examples:
$s =~ tr/\N{LATIN SMALL LETTER E WITH ACUTE}/E/; # now works
$s = "\x{d800}\x{ffff}"; $s =~ tr/\0/A/; # now preserves both chars
0 commit comments