Function libCZI::StringToOpenOptions#
Defined in File libCZI.h
Function Documentation#
-
ICZIReader::OpenOptions libCZI::StringToOpenOptions(const char *options)#
Parses reader open options from semicolon-separated key=value pairs using the keys and values documented by OpenOptionsToString. Empty input returns default options; omitted keys retain their defaults. Whitespace around pairs, keys, and values is ignored. Unknown keys throw std::invalid_argument. Keys and values are case-sensitive. Duplicate keys, empty pairs, malformed pairs, and invalid values also throw std::invalid_argument. Values cannot contain ‘=’ or ‘;’; escaping is unsupported.
- Parameters:
options – Null-terminated string containing the key=value pairs; must not be null.
- Throws:
std::invalid_argument – If the input is null or contains an unknown key, invalid syntax, or invalid value.
- Returns:
The parsed options.