Lines Matching refs:str
25 long CStringToL(const CString &str)
28 int64_t result = std::strtol(str.c_str(), &endPtr, BASE);
29 ASSERT(!(result == 0 && str.c_str() == endPtr) && "CString argument is not long int");
33 int64_t CStringToLL(const CString &str)
36 int64_t result = std::strtoll(str.c_str(), &endPtr, BASE);
37 ASSERT(!(result == 0 && str.c_str() == endPtr) && "CString argument is not long long int");
41 uint64_t CStringToULL(const CString &str)
44 uint64_t result = std::strtoull(str.c_str(), &endPtr, BASE);
45 ASSERT(!(result == 0 && str.c_str() == endPtr) && "CString argument is not unsigned long long int");
49 float CStringToF(const CString &str)
52 float result = std::strtof(str.c_str(), &endPtr);
54 ASSERT(!(result == 0 && str.c_str() == endPtr) && "CString argument is not float");
58 double CStringToD(const CString &str)
61 double result = std::strtod(str.c_str(), &endPtr);
63 ASSERT(!(result == 0 && str.c_str() == endPtr) && "CString argument is not double");
87 CString ConvertToString(const std::string &str)
90 res.reserve(str.size());
91 for (auto c : str) {
120 std::string ConvertToStdString(const CString &str)
123 res.reserve(str.size());
124 for (auto c : str) {