Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ getPropertyAsList()

StringSeq Ice::Properties::getPropertyAsList ( std::string_view key)

Gets a property as a list of strings.

The strings must be separated by whitespace or comma. The strings in the list can contain whitespace and commas if they are enclosed in single or double quotes. If quotes are mismatched, an empty list is returned. Within single quotes or double quotes, you can escape the quote in question with a backslash, e.g. O'Reilly can be written as O'Reilly, "O'Reilly" or 'O\'Reilly'.

Parameters
keyThe property key.
Returns
The property value interpreted as a list of strings, or an empty list if the property is not set.
See also
setProperty