version 1.75, 2003/07/14 13:55:35
|
version 1.76, 2003/08/12 18:16:42
|
|
|
#include <Pegasus/Common/Char16.h> | #include <Pegasus/Common/Char16.h> |
#include <Pegasus/Common/Linkage.h> | #include <Pegasus/Common/Linkage.h> |
| |
|
const char STRING_FLAG_ASCII[] = "ASCII"; |
|
const char STRING_FLAG_UTF8[] = "UTF8"; |
|
|
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
class String; | class String; |
|
|
String(const Char16* str, Uint32 n); | String(const Char16* str, Uint32 n); |
| |
/// Initialize from a plain old C-String: | /// Initialize from a plain old C-String: |
|
String(const char* str, const char*); |
String(const char* str); | String(const char* str); |
| |
/// Initialize from the first n characters of a plain old C-String: | /// Initialize from the first n characters of a plain old C-String: |
|
|
*/ | */ |
static Boolean equalNoCase(const String& str1, const String& str2); | static Boolean equalNoCase(const String& str1, const String& str2); |
| |
|
// UTF8 specific code: |
|
String& assignUTF8(const char* str); |
|
CString getCStringUTF8() const; |
|
static Boolean isUTF8(const char*); |
|
|
|
|
private: | private: |
| |
StringRep* _rep; | StringRep* _rep; |