version 1.89, 2005/05/06 19:49:09
|
version 1.89.6.3, 2005/10/12 00:16:08
|
|
|
// lower case language; underscore; Uppercase Country | // lower case language; underscore; Uppercase Country |
const char ENGLISH_US[] = "en_US"; | const char ENGLISH_US[] = "en_US"; |
| |
|
|
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
class String; | class String; |
class StringRep; |
struct StringRep; |
| |
/** The CString class provides access to an 8-bit String representation. | /** The CString class provides access to an 8-bit String representation. |
*/ | */ |
|
|
| |
friend class String; | friend class String; |
| |
void* _rep; |
char* _rep; |
}; | }; |
| |
/** | /** |
|
|
| |
/** Initialize with first <TT>n</TT> characters from <TT>str</TT>. | /** Initialize with first <TT>n</TT> characters from <TT>str</TT>. |
@param str Specifies the name of the String instance. | @param str Specifies the name of the String instance. |
@param n Specifies the Uint32 size to use for the length of the string object. |
@param n Specifies Uint32 size to use for the length of the string object. |
@exception bad_alloc Thrown if there is insufficient memory. | @exception bad_alloc Thrown if there is insufficient memory. |
*/ | */ |
String(const String& str, Uint32 n); | String(const String& str, Uint32 n); |
|
|
*/ | */ |
static Boolean equalNoCase(const String& str1, const String& str2); | static Boolean equalNoCase(const String& str1, const String& str2); |
| |
|
#ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES |
|
|
|
enum ASCII7Tag { ASCII7 }; |
|
|
|
String(const String& s1, const String& s2); |
|
|
|
String(const String& s1, const char* s2); |
|
|
|
String(const char* s1, const String& s2); |
|
|
|
String(const char* str, ASCII7Tag tag); |
|
|
|
String(const char* str, size_t n, ASCII7Tag tag); |
|
|
|
String& operator=(const char* str); |
|
|
|
String& assignASCII7(const char* str); |
|
|
|
String& assignASCII7(const char* str, Uint32 n); |
|
|
|
Uint32 find(const char* s) const; |
|
|
|
static Boolean equal(const String& s1, const char* s2); |
|
|
|
static int compare(const String& s1, const char* s2); |
|
|
|
String& append(const char* str); |
|
|
|
String& append(const char* str, Uint32 size); |
|
|
|
static Boolean equalNoCase(const String& s1, const char* s2); |
|
|
|
#endif /* PEGASUS_USE_EXPERIMENTAL_INTERFACES */ |
|
|
private: | private: |
| |
StringRep* _rep; | StringRep* _rep; |
|
|
const String& str1, | const String& str1, |
const String& str2); | const String& str2); |
| |
|
#ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator==(const String& s1, const String& s2); |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator==(const String& s1, const char* s2); |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator==(const char* s1, const String& s2); |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator!=(const String& s1, const String& s2); |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator!=(const String& s1, const char* s2); |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator!=(const char* s1, const String& s2); |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator<(const String& s1, const String& s2); |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator<(const String& s1, const char* s2); |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator<(const char* s1, const String& s2); |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator>(const String& s1, const String& s2); |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator>(const String& s1, const char* s2); |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator>(const char* s1, const String& s2); |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator<=(const String& s1, const String& s2); |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator<=(const String& s1, const char* s2); |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator<=(const char* s1, const String& s2); |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator>=(const String& s1, const String& s2); |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator>=(const String& s1, const char* s2); |
|
|
|
PEGASUS_COMMON_LINKAGE Boolean operator>=(const char* s1, const String& s2); |
|
|
|
PEGASUS_COMMON_LINKAGE String operator+(const String& s1, const String& s2); |
|
|
|
PEGASUS_COMMON_LINKAGE String operator+(const String& s1, const char* s2); |
|
|
|
PEGASUS_COMMON_LINKAGE String operator+(const char* s1, const String& s2); |
|
|
|
#endif /* PEGASUS_USE_EXPERIMENTAL_INTERFACES */ |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |
|
#if defined(PEGASUS_INTERNALONLY) && defined(PEGASUS_HAVE_INTERNAL_INLINES) |
|
# include "StringInline.h" |
|
#endif |
|
|
#endif /* Pegasus_String_h */ | #endif /* Pegasus_String_h */ |