version 1.27, 2001/07/10 22:31:15
|
version 1.28, 2001/07/16 01:35:16
|
|
|
#include "String.h" | #include "String.h" |
#include <iostream> | #include <iostream> |
| |
|
PEGASUS_USING_STD; |
|
|
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
#define PEGASUS_ARRAY_T String | #define PEGASUS_ARRAY_T String |
|
|
_rep.append('\0'); | _rep.append('\0'); |
} | } |
| |
|
void String::print() const |
|
{ |
|
cout << *this << endl; |
|
} |
|
|
void String::reserve(Uint32 capacity) | void String::reserve(Uint32 capacity) |
{ | { |
_rep.reserve(capacity + 1); | _rep.reserve(capacity + 1); |
|
|
return tmp; | return tmp; |
} | } |
| |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |