
functions
files
intro
|
|
YaST2 base package |
modules/ValueBrowser.ycp |
| Useful tool for viewing any variable contents. |
|
|
|
Global Functions
Local Functions
|
|
|
- Example:
-
map a = $[
"first" : 35,
"second" : [ 1, 2, 3, 4, 5],
"third" : $[ "a" : 15, `b: `VBox () ]
];
ValueBrowser::Tree (a); |
|
global escapestring (string s) -> string
|
|
Helper function that replaces all ocurences of "\n" with "\\n", so items are not multiline :-)
- Parameters:
- Return value:
|
local FormatSimpleType (any variable, string indent) -> string
|
|
Shows tree with contents of variable. This function does the job. Heavy recursion...
- Parameters:
|
variable |
variable to show. |
|
indent |
string that is printed before each output. |
|
global BrowseTreeHelper (any variable, string indent) -> term
|
|
Shows tree with contents of variable. This function does the job. Heavy recursion...
- Parameters:
|
variable |
variable to show. |
|
indent |
string that is printed before each output. |
|
global BrowseTree (any variable) -> void
|
|
Shows tree with contents of variable.
- Parameters:
|
variable |
variable to show. |
|
global DebugBrowseHelper (any variable, string indent) -> void
|
|
Write contents of variable to log file. This function does the job.
Heavy recursion...
- Parameters:
|
variable |
variable to show. |
|
indent |
string that is printed before each output. |
|
global DebugBrowse (any variable) -> void
|
|
Write contents of variable to log file.
- Parameters:
|
variable |
variable to show. |
|