private static void IncrementCount(ref int currentCount, string line)
{
//Grab codepoint
var code = line.Substring(0, line.IndexOf(';')).Trim();
if (code.IndexOf('.') != -1)
{
//Grabs the end codepoint
var endCode = code.Substring(code.IndexOf("..") + 2).Trim();
code = code.Substring(0, code.IndexOf("..")).Trim();
// Add all the characters in the range.
currentCount += SubHex(endCode, code) + 1;
}
// we found another valid codepoint
else
currentCount++;
}