
functions
files
intro
|
|
yast2 |
modules/Map.ycp |
Map manipulation routines |
|
|
|
global Keys (map m) -> list
|
|
Return all keys from the map
- Parameters:
- Return value:
|
a list of all keys from the map |
global Values (map m) -> list
|
|
Return all values from the map
- Parameters:
- Return value:
|
a list of all values from the map |
global KeysToLower (map<string, any> m) -> map
|
|
Switch map keys to lower case
- Parameters:
- Return value:
|
with keys converted to lower case |
global KeysToUpper (map<string, any> m) -> map
|
|
Switch map keys to upper case
- Parameters:
- Return value:
|
with keys converted to lower case |
global CheckKeys (map m, list keys) -> boolean
|
|
Check if a map contains all needed keys
- Parameters:
m |
map to be checked |
keys |
needed keys |
- Return value:
|
true if map kontains all keys |
global ToString (map m) -> string
|
|
Convert options map $[var:val, ...] to string "var=val ..."
- Parameters:
- Return value:
global FromString (string s) -> map
|
|
Convert string "var=val ..." to map $[val:var, ...]
- Parameters:
- Return value:
|