parent
4a3c4f5f67
commit
8068f506c5
|
@ -36,18 +36,6 @@ std::string ToUpper(std::string str) {
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
// faster than sscanf
|
|
||||||
bool AsciiToHex(const char* _szValue, u32& result) {
|
|
||||||
char* endptr = nullptr;
|
|
||||||
const u32 value = strtoul(_szValue, &endptr, 16);
|
|
||||||
|
|
||||||
if (!endptr || *endptr)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
result = value;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool CharArrayFromFormatV(char* out, int outsize, const char* format, va_list args) {
|
bool CharArrayFromFormatV(char* out, int outsize, const char* format, va_list args) {
|
||||||
int writtenCount;
|
int writtenCount;
|
||||||
|
|
||||||
|
|
|
@ -69,9 +69,6 @@ static bool TryParse(const std::string& str, N* const output) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: kill this
|
|
||||||
bool AsciiToHex(const char* _szValue, u32& result);
|
|
||||||
|
|
||||||
std::string TabsToSpaces(int tab_size, const std::string& in);
|
std::string TabsToSpaces(int tab_size, const std::string& in);
|
||||||
|
|
||||||
void SplitString(const std::string& str, char delim, std::vector<std::string>& output);
|
void SplitString(const std::string& str, char delim, std::vector<std::string>& output);
|
||||||
|
|
Reference in New Issue