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
Use JCodings to check for uppercase char instead of Java String
This improves on 3ec4747 by:
* Avoiding a Rope to String conversion just to be able to extract the
first character in an encoding-aware way
* Avoiding issues with surrogate characters -- as pointed out by
@eregon during PR review -- `String::charAt(...)` can still slice
characters in half as discussed in
<https://stackoverflow.com/questions/5903008/what-is-a-surrogate-pair-in-java>
PullRequest: truffleruby/2102
0 commit comments