#include <YCPString.h>
Inheritance diagram for YCPStringRep:

Public Member Functions | |
| string | value () const |
| YCPOrder | compare (const YCPString &v, bool rl=false) const |
| const char * | value_cstr () const |
| string | toString () const |
| std::ostream & | toStream (std::ostream &str) const |
| YCPValueType | valuetype () const |
Protected Member Functions | |
| YCPStringRep (string s) | |
Private Attributes | |
| string | v |
Friends | |
| class | YCPString |
YCP Syntax: Doublequoted ASCII string.
"This is a string", "", "08712345"
| YCPStringRep::YCPStringRep | ( | string | s | ) | [protected] |
Creates a new YCPStringRep from a C++ string.
| s | A string that is taken literally as value of the newly create YCPStringRep object. Not expansion of backslashes is done, s is not considered to be enclosed with quotes. If there are quotes, they are considered to be part of the string. |
| string YCPStringRep::value | ( | ) | const |
Returns the value of this object in form of a C++ string value.
Compares two YCPStrings for equality, greaterness or smallerness.
| v | value to compare against | |
| rl | respect locale |
| const char * YCPStringRep::value_cstr | ( | ) | const |
Returns the value in form of a C const char * string.
| string YCPStringRep::toString | ( | ) | const [virtual] |
Returns a string representation of the value of this object. It contains enclosing quotes. Newlines and quotes contained in the string itself are quoted with backslashes.
Implements YCPElementRep.
| std::ostream & YCPStringRep::toStream | ( | std::ostream & | str | ) | const [virtual] |
Output value as bytecode to stream
Implements YCPElementRep.
| YCPValueType YCPStringRep::valuetype | ( | ) | const [virtual] |
Returns YT_STRING. See YCPValueRep::valuetype.
Implements YCPValueRep.
friend class YCPString [friend] |
string YCPStringRep::v [private] |
1.5.0