[#absl-Substitute-012] = xref:absl.adoc[absl]::Substitute :relfileprefix: ../ :mrdocs: Substitutes variables into `format` and returns the result. == Synopsis Declared in `<absl/strings/substitute.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::string Substitute( std::string_view format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1); ---- == Return Value The formatted string. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *format* | The format string with `$0`‐`$9` placeholders. | *a0* | Substitution argument for `$0`. | *a1* | Substitution argument for `$1`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#