Refactor is_positive_num() to use C-strings

This makes the future move to C easier, as well as just shows that it's
plain unnecessary to use an std::string here.
This commit is contained in:
Misa
2021-02-11 16:36:22 -08:00
committed by Ethan Lee
parent 825dbac228
commit 89bddf98b6
3 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ bool next_split_s(
bool is_number(const char* str);
bool is_positive_num(const std::string& str, const bool hex);
bool is_positive_num(const char* str, const bool hex);
bool endsWith(const std::string& str, const std::string& suffix);