-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String#codePoints does not compile on scala.js #4925
Comments
Is it possible to use a different method to get the codepoints? Maybe something like the following could work? scala> "A\u00ea\u00f1\u00fcC".map(_.toInt).toArray
res4: Array[Int] = Array(65, 234, 241, 252, 67)
scala> res4.map(_.toChar)
res6: Array[Char] = Array(A, ê, ñ, ü, C) The method |
Heads up: char != code point (look up surrogate pairs for more, sorry for the brief comment, on mobile) |
Java Use |
Huh, this is the first time I'm hearing this. Feels like a pretty severe limitation we should document? (that we cannot support streams. I mean I realize that it for sure is a lot of work). |
I don't remember exactly what led me to that conclusion, but I remember I had already looked at it and it seemed unavoidable. |
Reopening but depends on #4926. |
scala: 3.3.1
scalajs: 1.15.0
The text was updated successfully, but these errors were encountered: