krakjoe/ustring

Handling of empty strings

Opened this issue · 0 comments

One important thing needing doing is making sure indexOf, split, startsWith and so on work properly with empty strings, i.e. pretending there's one between each actual codepoint. Otherwise it's harder to write userland string-handling functions, because you need to work around incorrectly-implemented boundary cases :(