[#absl-Substitute-03] = xref:absl.adoc[absl]::Substitute :relfileprefix: ../ :mrdocs: `Substitute` overloads == Synopses Declared in `<absl/strings/substitute.h>` Substitutes variables into `format` and returns the result. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::string xref:absl/Substitute-009.adoc[Substitute](std::string_view format); ---- [.small]#xref:absl/Substitute-009.adoc[_» more..._]# Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string xref:absl/Substitute-0d8.adoc[Substitute](char const* format); ---- [.small]#xref:absl/Substitute-0d8.adoc[_» more..._]# Substitutes variables into `format` and returns the result. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::string xref:absl/Substitute-0f9.adoc[Substitute]( std::string_view format, /* implementation-defined */ const& a0); ---- [.small]#xref:absl/Substitute-0f9.adoc[_» more..._]# Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string xref:absl/Substitute-09.adoc[Substitute]( char const* format, /* implementation-defined */ const& a0); ---- [.small]#xref:absl/Substitute-09.adoc[_» more..._]# Substitutes variables into `format` and returns the result. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::string xref:absl/Substitute-012.adoc[Substitute]( std::string_view format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1); ---- [.small]#xref:absl/Substitute-012.adoc[_» more..._]# Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string xref:absl/Substitute-0dc.adoc[Substitute]( char const* format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1); ---- [.small]#xref:absl/Substitute-0dc.adoc[_» more..._]# Substitutes variables into `format` and returns the result. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::string xref:absl/Substitute-0cb.adoc[Substitute]( std::string_view format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1, /* implementation-defined */ const& a2); ---- [.small]#xref:absl/Substitute-0cb.adoc[_» more..._]# Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string xref:absl/Substitute-06b8.adoc[Substitute]( char const* format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1, /* implementation-defined */ const& a2); ---- [.small]#xref:absl/Substitute-06b8.adoc[_» more..._]# Substitutes variables into `format` and returns the result. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::string xref:absl/Substitute-01f.adoc[Substitute]( std::string_view format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1, /* implementation-defined */ const& a2, /* implementation-defined */ const& a3); ---- [.small]#xref:absl/Substitute-01f.adoc[_» more..._]# Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string xref:absl/Substitute-055.adoc[Substitute]( char const* format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1, /* implementation-defined */ const& a2, /* implementation-defined */ const& a3); ---- [.small]#xref:absl/Substitute-055.adoc[_» more..._]# Substitutes variables into `format` and returns the result. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::string xref:absl/Substitute-06b3.adoc[Substitute]( std::string_view format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1, /* implementation-defined */ const& a2, /* implementation-defined */ const& a3, /* implementation-defined */ const& a4); ---- [.small]#xref:absl/Substitute-06b3.adoc[_» more..._]# Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string xref:absl/Substitute-05c.adoc[Substitute]( char const* format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1, /* implementation-defined */ const& a2, /* implementation-defined */ const& a3, /* implementation-defined */ const& a4); ---- [.small]#xref:absl/Substitute-05c.adoc[_» more..._]# Substitutes variables into `format` and returns the result. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::string xref:absl/Substitute-0819.adoc[Substitute]( std::string_view format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1, /* implementation-defined */ const& a2, /* implementation-defined */ const& a3, /* implementation-defined */ const& a4, /* implementation-defined */ const& a5); ---- [.small]#xref:absl/Substitute-0819.adoc[_» more..._]# Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string xref:absl/Substitute-0e.adoc[Substitute]( char const* format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1, /* implementation-defined */ const& a2, /* implementation-defined */ const& a3, /* implementation-defined */ const& a4, /* implementation-defined */ const& a5); ---- [.small]#xref:absl/Substitute-0e.adoc[_» more..._]# Substitutes variables into `format` and returns the result. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::string xref:absl/Substitute-0fe.adoc[Substitute]( std::string_view format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1, /* implementation-defined */ const& a2, /* implementation-defined */ const& a3, /* implementation-defined */ const& a4, /* implementation-defined */ const& a5, /* implementation-defined */ const& a6); ---- [.small]#xref:absl/Substitute-0fe.adoc[_» more..._]# Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string xref:absl/Substitute-02.adoc[Substitute]( char const* format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1, /* implementation-defined */ const& a2, /* implementation-defined */ const& a3, /* implementation-defined */ const& a4, /* implementation-defined */ const& a5, /* implementation-defined */ const& a6); ---- [.small]#xref:absl/Substitute-02.adoc[_» more..._]# Substitutes variables into `format` and returns the result. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::string xref:absl/Substitute-081d.adoc[Substitute]( std::string_view format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1, /* implementation-defined */ const& a2, /* implementation-defined */ const& a3, /* implementation-defined */ const& a4, /* implementation-defined */ const& a5, /* implementation-defined */ const& a6, /* implementation-defined */ const& a7); ---- [.small]#xref:absl/Substitute-081d.adoc[_» more..._]# Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string xref:absl/Substitute-0a.adoc[Substitute]( char const* format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1, /* implementation-defined */ const& a2, /* implementation-defined */ const& a3, /* implementation-defined */ const& a4, /* implementation-defined */ const& a5, /* implementation-defined */ const& a6, /* implementation-defined */ const& a7); ---- [.small]#xref:absl/Substitute-0a.adoc[_» more..._]# Substitutes variables into `format` and returns the result. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::string xref:absl/Substitute-0ce.adoc[Substitute]( std::string_view format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1, /* implementation-defined */ const& a2, /* implementation-defined */ const& a3, /* implementation-defined */ const& a4, /* implementation-defined */ const& a5, /* implementation-defined */ const& a6, /* implementation-defined */ const& a7, /* implementation-defined */ const& a8); ---- [.small]#xref:absl/Substitute-0ce.adoc[_» more..._]# Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string xref:absl/Substitute-00d.adoc[Substitute]( char const* format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1, /* implementation-defined */ const& a2, /* implementation-defined */ const& a3, /* implementation-defined */ const& a4, /* implementation-defined */ const& a5, /* implementation-defined */ const& a6, /* implementation-defined */ const& a7, /* implementation-defined */ const& a8); ---- [.small]#xref:absl/Substitute-00d.adoc[_» more..._]# Substitutes variables into `format` and returns the result. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] std::string xref:absl/Substitute-07.adoc[Substitute]( std::string_view format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1, /* implementation-defined */ const& a2, /* implementation-defined */ const& a3, /* implementation-defined */ const& a4, /* implementation-defined */ const& a5, /* implementation-defined */ const& a6, /* implementation-defined */ const& a7, /* implementation-defined */ const& a8, /* implementation-defined */ const& a9); ---- [.small]#xref:absl/Substitute-07.adoc[_» more..._]# Overload of `Substitute()` that fails to compile when the number of placeholders does not match the number of arguments. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::string xref:absl/Substitute-084.adoc[Substitute]( char const* format, /* implementation-defined */ const& a0, /* implementation-defined */ const& a1, /* implementation-defined */ const& a2, /* implementation-defined */ const& a3, /* implementation-defined */ const& a4, /* implementation-defined */ const& a5, /* implementation-defined */ const& a6, /* implementation-defined */ const& a7, /* implementation-defined */ const& a8, /* implementation-defined */ const& a9); ---- [.small]#xref:absl/Substitute-084.adoc[_» more..._]# == Return Value The formatted string. == Parameters [cols="1,4"] |=== | Name| Description | *format* | The format string with `$0`‐`$9` placeholders. | *a0* | Substitution argument for `$0`. | *a1* | Substitution argument for `$1`. | *a2* | Substitution argument for `$2`. | *a3* | Substitution argument for `$3`. | *a4* | Substitution argument for `$4`. | *a5* | Substitution argument for `$5`. | *a6* | Substitution argument for `$6`. | *a7* | Substitution argument for `$7`. | *a8* | Substitution argument for `$8`. | *a9* | Substitution argument for `$9`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#