Substitutes variables into format and returns the result.

Synopsis

Declared in <absl/strings/substitute.h>

[[nodiscard]]
std::string
Substitute(
    std::string_view format,
    /* implementation-defined */ const& a0);

Return Value

The formatted string.

Note

The return value should not be discarded.

Parameters

Name

Description

format

The format string with $0‐`$9` placeholders.

a0

Substitution argument for $0.

Created with MrDocs