-
Notifications
You must be signed in to change notification settings - Fork 96
Closed
Description
Hello,
Would it be possible to add an ASCII validator for UTF-16 strings?
Our use case at Ladybird is that we deal with a lot of UTF-16 strings (technically, WTF-16). We have optimizations in place for strings that are actually ASCII, i.e. we use a char-based storage for these strings under-the-hood instead of a char16-based storage. As such, we find ourselves making ASCII validation checks quite a bit, which we currently do in quite a naive fashion by iterating over the code units.
Thanks!
Metadata
Metadata
Assignees
Labels
No labels