[#absl-FormatSink-PutPaddedString]
= xref:absl.adoc[absl]::xref:absl/FormatSink.adoc[FormatSink]::PutPaddedString
:relfileprefix: ../../
:mrdocs:

Appends `precision` number of bytes of `v` to the format sink&period;

== Synopsis

Declared in `&lt;absl&sol;strings&sol;str&lowbar;format&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
PutPaddedString(
    std::string&lowbar;view v,
    int width,
    int precision,
    bool left);
----

== Description

If this is less than `width`, spaces will be appended first (if `left` is false), or after (if `left` is true) to ensure the total amount appended is at least `width`&period;

== Return Value

`true` on success&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *v*
| The characters to append&period;
| *width*
| The minimum number of bytes to append&period;
| *precision*
| The number of bytes of `v` to append&period;
| *left*
| Whether padding is added after (`true`) or before (`false`)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
