This commit is contained in:
2024-04-26 15:37:28 +08:00
parent b6cffd8a97
commit c9152bffa8
13 changed files with 171 additions and 71 deletions

12
src/ParserHelper.hpp Normal file
View File

@ -0,0 +1,12 @@
#pragma once
#include <string>
#include <cinttypes>
namespace YYCC::ParserHelper {
bool Parse(const std::string& strl, int& ret, int base = 10);
int Parse(const std::string& strl, int base = 10);
bool ToString(int val, std::string& ret, int base = 10);
std::string ToString(int val, int base = 10);
}