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

◆ getPropertyAsListWithDefault()

StringSeq Ice::Properties::getPropertyAsListWithDefault ( std::string_view key,
const StringSeq & value )

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, the default 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.
valueThe default value to use if the property is not set.
Returns
The property value interpreted as list of strings, or the default value if the property is not set.
See also
setProperty