YCPBuiltinPath.cc File Reference

#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)
 Returns the number of path elements.
static YCPValue p_add (const YCPPath &path, const YCPString &s)
 Add a path element to existing path.
static YCPValue p_plus (const YCPPath &path1, const YCPPath &path2)
static YCPValue p_topath (const YCPValue &v)
 Converts a value to a path. If the value can't be converted to a path, nilpath is returned.

Variables

StaticDeclaration static_declarations

Function Documentation

static YCPValue p_add const YCPPath path,
const YCPString s
[static]
 

Add a path element to existing path.

add

Returns PATH with added path element created from string STR.

Parameters:
path PATH
string or path STR
Returns:
path
add (.aaa, "anypath...\n\"") -> .aaa."anypath...
\"" add (.sysconfig, .safety) -> .sysconfig.safety

static YCPValue p_plus const YCPPath path1,
const YCPPath path2
[static]
 

path p1 + path p2 -> path Returns p1 with added p2 element created from string s.

Example:

 .aaa + "anypath...\n\"" -> .aaa."anypath...
\""

static YCPValue p_size const YCPPath path  )  [static]
 

Returns the number of path elements.

size

Returns the number of path elements of the path PATH, i.e. the length of PATH.

Parameters:
path PATH
Returns:
integer Number of elements in the path
size (.hello.world) -> 2 size (.) -> 0

static YCPValue p_topath const YCPValue v  )  [static]
 

Converts a value to a path. If the value can't be converted to a path, nilpath is returned.

topath

Parameters:
string STR
Returns:
path
topath ("path") -> .path topath (".some.path") -> .some.path


Variable Documentation

StaticDeclaration static_declarations
 


Generated on Fri Jun 16 18:07:45 2006 for yast2-core by  doxygen 1.4.6