Lines Matching defs:format_str
1154 bool FormatEntity::FormatStringRef(const llvm::StringRef &format_str, Stream &s,
1160 if (!format_str.empty()) {
1162 Status error = FormatEntity::Parse(format_str, root);
1178 llvm::StringRef format_str(format);
1179 Status error = FormatEntity::Parse(format_str, root);
1933 static Status ParseEntry(const llvm::StringRef &format_str,
1937 const size_t sep_pos = format_str.find_first_of(".[:");
1939 (sep_pos == llvm::StringRef::npos) ? '\0' : format_str[sep_pos];
1940 llvm::StringRef key = format_str.substr(0, sep_pos);
1949 format_str.substr(sep_pos + (entry_def->keep_separator ? 0 : 1));
1952 entry.string = format_str.str();
2019 static const Definition *FindEntry(const llvm::StringRef &format_str,
2024 std::pair<llvm::StringRef, llvm::StringRef> p = format_str.split('.');
2030 if (format_str.back() == '.')
2031 remainder = format_str.drop_front(format_str.size() - 1);
2045 remainder = format_str;
2341 Status FormatEntity::ExtractVariableInfo(llvm::StringRef &format_str,
2348 const size_t paren_pos = format_str.find('}');
2350 const size_t percent_pos = format_str.find('%');
2354 variable_name = format_str.substr(0, percent_pos);
2356 format_str.substr(percent_pos + 1, paren_pos - (percent_pos + 1));
2359 variable_name = format_str.substr(0, paren_pos);
2362 format_str = format_str.substr(paren_pos + 1);
2366 format_str.str().c_str());
2529 Status FormatEntity::Parse(const llvm::StringRef &format_str, Entry &entry) {
2532 llvm::StringRef modifiable_format(format_str);