Open
Description
Based on the current documentation
Apple Native API does not expose locale-sensitive endsWith/startsWith function. As a workaround, both strings get normalized and weightless characters are removed. Resulting strings are cut to the same length and comparison is performed. As we are normalizing strings to be able to cut them, we cannot calculate the match length on the original strings. Methods that calculate this information throw PlatformNotSupported exception.
We should remove the exception throw for IsPrefixx/IsSuffix
APIs and instead document the differences in returned matchLength
or improve the implementation to give correct results.