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
I think this was unclear.
if p2 < BmpThreshold you can just (char)p2, and the else branch does exactly the same thing as char.ConvertFromUtf32.
You can use simple res.Append(char.ConvertFromUtf32(p2)) do all things.
And yourpublic static IEnumerable<int> ToCodePoints(this string str)can be replaced by
I think this was unclear.
if p2 < BmpThreshold you can just (char)p2, and the else branch does exactly the same thing as char.ConvertFromUtf32.
You can use simple
res.Append(char.ConvertFromUtf32(p2))
do all things.And your
public static IEnumerable<int> ToCodePoints(this string str)
can be replaced byThe text was updated successfully, but these errors were encountered: