Changed startsWithDouble to startsWithNumber.

This commit is contained in:
Brad Arant committed 2024-09-26 12:32:04 -07:00
1 parent 974a509767
commit e2d20a0c2d
3 files changed
+4 -9

No files matched your search

+2 -7
View File
@@ -322,13 +322,8 @@ namespace coreutils {
return strncmp(cursor, value, strlen(value)) == 0;
}
bool ZString::startsWithDouble() {
push();
char *tempc = cursor;
double temp = strtod(cursor, &cursor);
int diff = cursor - tempc;
pop();
return diff != 0;
bool ZString::startsWithNumber() {
return ((*cursor >= '0') && (*cursor <= '9'));
}
int ZString::compare(ZString zstring) {