Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MatchChars()

static unsafe char * System.Number.MatchChars ( char * p,
char * pEnd,
string value )
inlinestaticprivate

Definition at line 5877 of file Number.cs.

5878 {
5879 fixed (char* ptr = value)
5880 {
5881 char* ptr2 = ptr;
5882 if (*ptr2 != 0)
5883 {
5884 while (true)
5885 {
5886 char c = ((p < pEnd) ? (*p) : '\0');
5887 if (c != *ptr2 && (!IsSpaceReplacingChar(*ptr2) || c != ' '))
5888 {
5889 break;
5890 }
5891 p++;
5892 ptr2++;
5893 if (*ptr2 == '\0')
5894 {
5895 return p;
5896 }
5897 }
5898 }
5899 }
5900 return null;
5901 }
static bool IsSpaceReplacingChar(char c)
Definition Number.cs:5857

References System.Number.IsSpaceReplacingChar(), and System.value.

Referenced by System.Number.MatchNegativeSignChars(), and System.Number.TryParseNumber().