ustring icon indicating copy to clipboard operation
ustring copied to clipboard

add a normalize() method for unicode normalization forms

Open Wes0617 opened this issue 9 years ago • 1 comments

stuff already exists in the class Normalizer but would be handy to have it in this class as well. could look like JS's normalize() https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize

echo u($str)->normalize(UString::NFKC)->subString(0, 4);

Wes0617 avatar Nov 10 '15 05:11 Wes0617

Easy access to normalisation is quite essential. A lot of people neglect it. So, I support this in some form.

hikari-no-yume avatar Nov 10 '15 10:11 hikari-no-yume