Merge null/pattern checks into complex pattern.

This commit is contained in:
2022-11-13 20:46:23 +00:00
parent 98f08919d6
commit 7fbeaebfd3

View File

@@ -454,15 +454,15 @@ public static class Marshal
{ {
char c = hex[i]; char c = hex[i];
if(c < '0' || if(c < '0' ||
c > '9' && c < 'A' || c is > '9' and < 'A' ||
c > 'F' && c < 'a' || c is > 'F' and < 'a' ||
c > 'f') c > 'f')
break; break;
c -= c >= 'a' && c <= 'f' c -= c is >= 'a' and <= 'f'
? '\u0057' ? '\u0057'
: c >= 'A' && c <= 'F' : c is >= 'A' and <= 'F'
? '\u0037' ? '\u0037'
: '\u0030'; : '\u0030';
@@ -470,15 +470,15 @@ public static class Marshal
c = hex[i + 1]; c = hex[i + 1];
if(c < '0' || if(c < '0' ||
c > '9' && c < 'A' || c is > '9' and < 'A' ||
c > 'F' && c < 'a' || c is > 'F' and < 'a' ||
c > 'f') c > 'f')
break; break;
c -= c >= 'a' && c <= 'f' c -= c is >= 'a' and <= 'f'
? '\u0057' ? '\u0057'
: c >= 'A' && c <= 'F' : c is >= 'A' and <= 'F'
? '\u0037' ? '\u0037'
: '\u0030'; : '\u0030';