For now, assign the unicode label as a code point in the data…

This commit is contained in:
GoldenCrystal
2014-11-02 22:29:56 +01:00
parent 190597d317
commit 5ac0889b40
2 changed files with 9 additions and 1 deletions
@@ -37,6 +37,8 @@ namespace UnicodeInformation
public readonly int FirstCodePoint;
public readonly int LastCodePoint;
public bool IsSingleCodePoint { get { return FirstCodePoint == LastCodePoint; } }
public UnicodeCharacterRange(int codePoint)
{
if (codePoint < 0 || codePoint > 0x10FFFF) throw new ArgumentOutOfRangeException("codePoint");
+7 -1
View File
@@ -58,7 +58,13 @@ namespace UnicodeInformation
name = name.Substring(1, name.Length - 8);
rangeStartCodePoint = -1;
}
}
else
{
name = name.Substring(1, name.Length - 2);
if (codePoint.IsSingleCodePoint) name = name + "-" + codePoint.ToString();
}
}
else if (rangeStartCodePoint >= 0)
{