(And you are right that regex crate knows what a Unicode codepoint is. It is, in fact, the fundamental atom of a match for Unicode regexes. This is not as good as using grapheme clusters, but is easier to implement!)
-
-
Couldn't you stack allocate another four bytes (or 8 if needed) and unsafely write into it after validating?
-
I would suggest trying to write the code. The nature of Twitter prevents me from understanding where you've gone wrong. :-)
- 1 more reply
New conversation -
-
-
Yeah you‘d need ArrayString<[u8; 4]> which is not part of std
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.