#include "ycp/YCPBuiltinPath.h"#include "ycp/YCPPath.h"#include "ycp/YCPString.h"#include "ycp/YCPInteger.h"#include "ycp/StaticDeclaration.h"Functions | |
| static YCPValue | p_size (const YCPPath &path) |
| static YCPValue | p_add (const YCPPath &path, const YCPString &s) |
| static YCPValue | p_plus (const YCPPath &path1, const YCPPath &path2) |
| static YCPValue | p_topath (const YCPValue &v) |
Variables | |
| StaticDeclaration | static_declarations |
add Add a path element to existing path
Returns PATH with added path element created from string STR.
| path | PATH | |
| string | or path STR |
path p1 + path p2 -> path Returns p1 with added p2 element created from string s.
Example:
.aaa + "anypath...\n\"" -> .aaa."anypath...
\""
size Returns the number of path elements
Returns the number of path elements of the path PATH, i.e. the length of PATH.
| path | PATH |
topath Converts a value to a path. If the value can't be converted to a path, nilpath is returned.
| string | STR |
1.5.3