krakjoe / ustring

UnicodeString for PHP7
Other
64 stars 7 forks source link

Handling of empty strings #17

Open hikari-no-yume opened 10 years ago

hikari-no-yume commented 10 years ago

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 :(