Changeset 1339 for cpp/common/Convert.h
- Timestamp:
- 05/06/25 23:04:33 (2 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/Convert.h
r1285 r1339 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 0Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2025 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 12 12 #include <cmath> 13 13 14 #ifdef LINUX15 #define UINT64_FORMAT "%llu" //we want to avoid this and ambiguous "long long", but gcc does not seem to support I64u (yet?)16 #else17 #define UINT64_FORMAT "%I64u"18 #endif19 14 20 15 struct Convert … … 22 17 public: 23 18 static int toInt(string s); 19 static unsigned int toUInt(string s); 24 20 static int toInt_HexIf0x(string s); 25 21 static float toFloat(string s); 22 static double toDouble(string s); 26 23 static string toLowerCase(string s); 27 24 static string toUpperCase(string s);
Note: See TracChangeset
for help on using the changeset viewer.