Lines Matching refs:s
42 dest_type& string_to(std::string const& s, dest_type& result) { in string_to() argument
43 std::stringstream stream(s); in string_to()
46 throw std::invalid_argument("error converting string '" + std::string(s) + "'"); in string_to()
52 dest_type string_to(std::string const& s) { in string_to() argument
54 return string_to(s, result); in string_to()
80 virtual void parse_and_store(const std::string& s) = 0;
105 void parse_and_store(const std::string& s) /*override*/ { in parse_and_store() argument
108 if (is_bool && s.empty()) { in parse_and_store()
115 internal::string_to(s, target); in parse_and_store()
120 str << "'" << s << "' is incorrect input for argument '" << name << "'" in parse_and_store()
136 static bool is_null_c_str(char* s) { in is_null_c_str() argument
137 return s == nullptr; in is_null_c_str()
183 void parse_and_store(const std::string& s) { in parse_and_store() argument
184 p_type->parse_and_store(s); in parse_and_store()
485 std::string s; in operator >>() local
486 i >> s; in operator >>()
496 std::size_t colon = s.find(':'); in operator >>()
498 low = high = string_to_number_of_threads(s); in operator >>()
502 std::size_t second_colon = s.find(':', colon + 1); in operator >>()
504 low = string_to_number_of_threads(std::string(s, 0, colon)); //not copying the colon in operator >>()
506 std::string(s, colon + 1, second_colon - (colon + 1))); //not copying the colons in operator >>()
508 internal::string_to(std::string(s, second_colon + 1), range.step); in operator >>()