Skip to content

Rose::StringUtility::listToString

Generate a string from a list of integers.

Synopsis

Declared in <src/Rose/StringUtility/SplitJoin.h>

[[visibility]]
std::string
listToString(
    std::list<int> const&,
    bool separateStrings = false);

Description

The return value is the concatenation of substrings. Each substring is formed by converting the corresponding integer from the list into a string via numberToString and then adding a single space character and an optional line feed. The line feeds are added only if separateStrings is true.

Return Value

Joined string.

Parameters

Name

Description

separateStrings

Whether to include line breaks.

Created with MrDocs