HomeManualTopicsTypesSymbols

std::indented

increases the indent of the specified (multi-line) string

Parameters

indent
text

Results

None

Description

The text is indented via tabs and spaces. Existing indents are treated correctly.

The line feed character after the last line is optional.

Example

$str " a b c d $indented_str indented(5 str) print! indented_str

Output

a b c d

Topic

Strings

See also

std::wrap_words wraps a string consisting of words onto multiple lines