#include "mlir/TableGen/Format.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/ADT/Twine.h"
#include <cctype>
usingnamespacemlir;
usingnamespacemlir::tblgen;
const char *const kMarkerForNoSubst = …;
FmtContext::FmtContext(ArrayRef<std::pair<StringRef, StringRef>> subs) { … }
FmtContext &FmtContext::addSubst(StringRef placeholder, const Twine &subst) { … }
FmtContext &FmtContext::withBuilder(Twine subst) { … }
FmtContext &FmtContext::withSelf(Twine subst) { … }
std::optional<StringRef>
FmtContext::getSubstFor(FmtContext::PHKind placeholder) const { … }
std::optional<StringRef> FmtContext::getSubstFor(StringRef placeholder) const { … }
FmtContext::PHKind FmtContext::getPlaceHolderKind(StringRef str) { … }
std::pair<FmtReplacement, StringRef>
FmtObjectBase::splitFmtSegment(StringRef fmt) { … }
std::vector<FmtReplacement> FmtObjectBase::parseFormatString(StringRef fmt) { … }
void FmtObjectBase::format(raw_ostream &s) const { … }
FmtStrVecObject::FmtStrVecObject(StringRef fmt, const FmtContext *ctx,
ArrayRef<std::string> params)
: … { … }
FmtStrVecObject::FmtStrVecObject(FmtStrVecObject &&that)
: … { … }