Lines Matching refs:str
180 static std::string str;
181 if (str.empty()) {
182 str = "Memory with granularity of " + std::to_string(Divisor) + " bytes";
184 return str.c_str();
190 Result Parse(const std::string& str) {
193 double value = strtod(str.c_str(), &end);
196 return Result::Failure("Failed to parse double from " + str);
200 "Failed to parse double from " + str + "; overflow/underflow occurred");
211 static inline CmdlineParseResult<T> ParseNumeric(const std::string& str) {
215 const char* begin = str.c_str();
223 return CmdlineParseResult<T>::Failure("Failed to parse integer from " + str);
227 "Failed to parse integer from " + str + "; out of range");
235 Result Parse(const std::string& str) {
236 return ParseNumeric<unsigned int>(str);
245 Result Parse(const std::string& str) {
246 return ParseNumeric<int>(str);
293 Result Parse(const std::string& str) {
295 CmdlineParseResult<unsigned int> res = uint_parser.Parse(str);
398 static ParseStringList<Separator> Split(const std::string& str) {
400 art::Split(str, Separator, &list);
422 static std::string str;
423 if (str.empty()) {
424 str = android::base::StringPrintf("list separated by '%c'", Separator);
426 return str.c_str();