1 #if !defined(H_LISPSTRING)
8 class String
: public LispObj
11 void make(const CharType
*value
)
15 object
.setType(eStringObj
);
18 while (*value
!= '\0')
24 // insert the pigs (string manipulation will not be this things forte)
25 object
.values
.resize(i
);
30 object
.values
.push_back( LispValue( *value
) );
36 std::size_t length() const
38 return object
.values
.size();
41 bool operator==(const String
& str
)
43 if (str
.length() == length())
48 while ((i
< length()) && result
)
51 CharType(str
.object
.values
[i
]) ==
52 CharType(object
.values
[i
]) );