version 1.119.2.3, 2007/02/07 21:06:04
|
version 1.120, 2006/05/10 19:40:38
|
|
|
| |
String& String::append(const String& str) | String& String::append(const String& str) |
{ | { |
return append((Char16*)(&(str._rep->data[0])), str._rep->size); |
return append((Char16*)str._rep->data, str._rep->size); |
} | } |
| |
String& String::append(const char* str, Uint32 size) | String& String::append(const char* str, Uint32 size) |
|
|
if (n == PEG_NOT_FOUND || n > _rep->size - index) | if (n == PEG_NOT_FOUND || n > _rep->size - index) |
n = _rep->size - index; | n = _rep->size - index; |
| |
return String((Char16*)(_rep->data + index), n); |
return String((Char16*)_rep->data + index, n); |
} | } |
| |
return String(); | return String(); |
|
|
if (InitializeICU::initICUSuccessful()) | if (InitializeICU::initICUSuccessful()) |
{ | { |
return u_strcasecmp( | return u_strcasecmp( |
(const UChar*)str1._rep->data, |
str1._rep->data, str2._rep->data, U_FOLD_CASE_DEFAULT); |
(const UChar*)str2._rep->data, |
|
U_FOLD_CASE_DEFAULT |
|
); |
|
} | } |
| |
#endif /* PEGASUS_HAS_ICU */ | #endif /* PEGASUS_HAS_ICU */ |