A bit of refactoring to be able to find some issue...

This commit is contained in:
Krom, Robertus 2020-02-18 16:32:51 +01:00
parent bef29df3db
commit 42cd533862
308 changed files with 2705 additions and 2454 deletions

View file

@ -217,7 +217,7 @@ namespace GreenshotPlugin.Core {
if (remainingLength >= 4) {
// parse the 32 bit hex into an integer codepoint
if (!(success = uint.TryParse(new string(json, index, 4), NumberStyles.HexNumber, CultureInfo.InvariantCulture, out var codePoint))) {
return "";
return string.Empty;
}
// convert the integer codepoint to a unicode char and add to string
s.Append(char.ConvertFromUtf32((int)codePoint));