|
LLVM 23.0.0git
|
Implementation of format_provider<T> for c-style strings and string objects such as std::string and llvm::StringRef. More...
#include "llvm/Support/FormatProviders.h"
Static Public Member Functions | |
| static void | format (const T &V, llvm::raw_ostream &Stream, StringRef Style) |
Implementation of format_provider<T> for c-style strings and string objects such as std::string and llvm::StringRef.
The options string of a string type has the grammar:
string_options :: [length]
where length is an optional integer specifying the maximum number of characters in the string to print. If length is omitted, the string is printed up to the null terminator.
Definition at line 205 of file FormatProviders.h.
|
inlinestatic |
Definition at line 207 of file FormatProviders.h.
References assert(), N, llvm::StringRef::npos, llvm::StringRef::substr(), and T.