Lines Matching refs:format_str

289 Status FormatEntity::Parse(const llvm::StringRef &format_str, Entry &entry) {  in Parse()  argument
292 llvm::StringRef modifiable_format(format_str); in Parse()
1045 bool FormatEntity::FormatStringRef(const llvm::StringRef &format_str, Stream &s, in FormatStringRef() argument
1051 if (!format_str.empty()) { in FormatStringRef()
1053 Status error = FormatEntity::Parse(format_str, root); in FormatStringRef()
1069 llvm::StringRef format_str(format); in FormatCString() local
1070 Status error = FormatEntity::Parse(format_str, root); in FormatCString()
1915 static Status ParseEntry(const llvm::StringRef &format_str, in ParseEntry() argument
1919 const size_t sep_pos = format_str.find_first_of(".[:"); in ParseEntry()
1921 (sep_pos == llvm::StringRef::npos) ? '\0' : format_str[sep_pos]; in ParseEntry()
1922 llvm::StringRef key = format_str.substr(0, sep_pos); in ParseEntry()
1931 format_str.substr(sep_pos + (entry_def->keep_separator ? 0 : 1)); in ParseEntry()
1934 entry.string = format_str.str(); in ParseEntry()
1999 static const Definition *FindEntry(const llvm::StringRef &format_str, in FindEntry() argument
2004 std::pair<llvm::StringRef, llvm::StringRef> p = format_str.split('.'); in FindEntry()
2010 if (format_str.back() == '.') in FindEntry()
2011 remainder = format_str.drop_front(format_str.size() - 1); in FindEntry()
2025 remainder = format_str; in FindEntry()
2318 Status FormatEntity::ExtractVariableInfo(llvm::StringRef &format_str, in ExtractVariableInfo() argument
2325 const size_t paren_pos = format_str.find('}'); in ExtractVariableInfo()
2327 const size_t percent_pos = format_str.find('%'); in ExtractVariableInfo()
2331 variable_name = format_str.substr(0, percent_pos); in ExtractVariableInfo()
2333 format_str.substr(percent_pos + 1, paren_pos - (percent_pos + 1)); in ExtractVariableInfo()
2336 variable_name = format_str.substr(0, paren_pos); in ExtractVariableInfo()
2339 format_str = format_str.substr(paren_pos + 1); in ExtractVariableInfo()
2343 format_str.str().c_str()); in ExtractVariableInfo()