mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
Merge pull request #704 from lioncash/string
string_util: Remove AsciiToHex()
This commit is contained in:
commit
cbf43225a9
2 changed files with 0 additions and 15 deletions
|
@ -34,18 +34,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;
|
|
||||||
}
|
|
||||||
|
|
||||||
// For Debugging. Read out an u8 array.
|
// For Debugging. Read out an u8 array.
|
||||||
std::string ArrayToString(const u8* data, size_t size, int line_len, bool spaces) {
|
std::string ArrayToString(const u8* data, size_t size, int line_len, bool spaces) {
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
|
|
|
@ -57,9 +57,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);
|
||||||
|
|
Loading…
Reference in a new issue