Lines Matching refs:std

108 static inline bool fromString(const std::string &str, T &result)
115 if (str.find_first_of(std::string("\r\n\t\v ")) != std::string::npos) {
122 if (str.find("-") != std::string::npos
123 && !std::numeric_limits<T>::is_signed) {
127 std::stringstream ss(str);
132 if (std::numeric_limits<T>::is_integer) {
133 ss >> std::hex >> result;
146 static inline bool toString(const T &value, std::string &str)
153 std::stringstream oss;
164 class Converter<std::string, dstType>
167 static inline bool run(const std::string &str, dstType &result)
174 class Converter<srcType, std::string>
177 static inline bool run(const srcType &str, std::string &result)
189 class Converter<std::vector<SrcElem>, std::vector<DstElem> >
192 typedef const std::vector<SrcElem> Src;
193 typedef std::vector<DstElem> Dst;
234 inline bool convertTo<std::string, int16_t>(const std::string &str, int16_t &result)
238 if (!convertTo<std::string, int64_t>(str, res)) {
242 if (res > std::numeric_limits<int16_t>::max() || res < std::numeric_limits<int16_t>::min()) {
266 inline bool convertTo<std::string, float>(const std::string &str, float &result)
268 if (!details::Converter<std::string, float>::run(str, result)) {
272 if (std::abs(result) == std::numeric_limits<float>::infinity() ||
273 result == std::numeric_limits<float>::quiet_NaN()) {
296 inline bool convertTo<std::string, double>(const std::string &str, double &result)
298 if (!details::Converter<std::string, double>::run(str, result)) {
302 if (std::abs(result) == std::numeric_limits<double>::infinity() ||
303 result == std::numeric_limits<double>::quiet_NaN()) {
328 inline bool convertTo<std::string, bool>(const std::string &str, bool &result)
356 inline bool convertTo<bool, std::string>(const bool &isSet, std::string &result)
375 inline bool convertTo<std::string, std::string>(const std::string &str, std::string &result)