<< get_tkblattnr Utilities plotWorldmap >>

scilib_geo >> Utilities > pars_paramstr

pars_paramstr

Splits a parameterstring of type "-param1=value1 -param2=value2 ..." in a List.

Calling Sequence

[paraml, err] = pars_paramstr(parameterstrng [, seperator])

Parameters

parameterstring

Parameterstring "-param1=value1 -param2=value2 ..."

seperator

Characters which should be used to seperate the parameters [default=' ' (space)]

paraml

List of all parameter-value vectors.

err

Errorstring, or empty when no error occured.

Description

The given parameterstring is seperated in his parameter-value-vectors and returned as list. paraml(1)(1) ist the name of the first parameters, paraml(1)(2) the coresponding value.

Parameternames must not contain characters defined as seperator. Seperators are only allowed in values if the complete value is quoted (single or double).

Quotes are not allowed in the values, there ist no mechanic of escaping implemented.

Examples

pars_paramstr(" -path=~ -name=""""mein Name"""" ");
parameterstring="-para1=Test -para2=irgendwas -para3=45";
pars_paramstr(parameterstring, ' ');

Authors


Report an issue
<< get_tkblattnr Utilities plotWorldmap >>