Added a permissive code point enumerator, which doesn't choke on lone surrogates.

This commit is contained in:
GoldenCrystal
2014-11-26 22:27:09 +01:00
parent 3abba328ee
commit fd2e8122ed
8 changed files with 200 additions and 3 deletions
@@ -139,7 +139,7 @@ namespace UnicodeCharacterInspector
int index = 0;
if (!string.IsNullOrEmpty(value))
{
foreach (int codePoint in value.AsCodePointEnumerable())
foreach (int codePoint in value.AsPermissiveCodePointEnumerable())
{
if (index >= codePoints.Length) Array.Resize(ref codePoints, codePoints.Length * 2);