diff options
| author | qwasdrizzel <145519042+qwasdrizzel@users.noreply.github.com> | 2026-03-05 17:17:45 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-05 17:17:45 -0600 |
| commit | 0666959d312dc74903f55d1071488a90239330f1 (patch) | |
| tree | 5c6886f7ec65a7828bc6e34a469514e418bcf78b /Minecraft.World/StringHelpers.h | |
| parent | 9370cbc7d878df1615d8ce76bc459e8b414d0f19 (diff) | |
| parent | eed770b121aa4ce38f002db042d0137c24c6d344 (diff) | |
Merge branch 'smartcmd:main' into main
Diffstat (limited to 'Minecraft.World/StringHelpers.h')
| -rw-r--r-- | Minecraft.World/StringHelpers.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Minecraft.World/StringHelpers.h b/Minecraft.World/StringHelpers.h index 1b364118..dee676ba 100644 --- a/Minecraft.World/StringHelpers.h +++ b/Minecraft.World/StringHelpers.h @@ -6,19 +6,7 @@ wstring trimString(const wstring& a); wstring replaceAll(const wstring& in, const wstring& replace, const wstring& with); bool equalsIgnoreCase(const wstring& a, const wstring& b); -// 4J-PB - for use in the ::toString -template <class T> std::wstring _toString(T t) -{ - std::wostringstream oss; - oss << std::dec << t; - return oss.str(); -} -template <class T> std::wstring _toHexString(T t) -{ - std::wostringstream oss; - oss << std::hex << t; - return oss.str(); -} + template <class T> T _fromString(const std::wstring& s) { std::wistringstream stream (s); |
