Added a permissive code point enumerator, which doesn't choke on lone surrogates.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user