version 1.11, 2006/11/10 18:14:58
|
version 1.12, 2007/01/11 16:21:54
|
|
|
| |
PEGASUS_STRING_INLINE Uint32 String::size() const | PEGASUS_STRING_INLINE Uint32 String::size() const |
{ | { |
return _rep->size; |
return (Uint32)_rep->size; |
} | } |
| |
PEGASUS_STRING_INLINE const Char16* String::getChar16Data() const | PEGASUS_STRING_INLINE const Char16* String::getChar16Data() const |
|
|
| |
PEGASUS_STRING_INLINE String& String::assign(const char* str) | PEGASUS_STRING_INLINE String& String::assign(const char* str) |
{ | { |
return assign(str, strlen(str)); |
return assign(str, (Uint32)strlen(str)); |
} | } |
| |
PEGASUS_STRING_INLINE Uint32 String::find(const String& s) const | PEGASUS_STRING_INLINE Uint32 String::find(const String& s) const |
{ | { |
return StringFindAux(_rep, (Char16*)&(s._rep->data[0]), s._rep->size); |
return StringFindAux(_rep, (Char16*)&(s._rep->data[0]), |
|
(Uint32)s._rep->size); |
} | } |
| |
PEGASUS_STRING_INLINE String& String::append(const Char16& c) | PEGASUS_STRING_INLINE String& String::append(const Char16& c) |
|
|
#ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES | #ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES |
PEGASUS_STRING_INLINE String& String::append(const char* str) | PEGASUS_STRING_INLINE String& String::append(const char* str) |
{ | { |
append(str, strlen(str)); |
append(str, (Uint32)strlen(str)); |
return *this; | return *this; |
} | } |
#endif /* PEGASUS_USE_EXPERIMENTAL_INTERFACES */ | #endif /* PEGASUS_USE_EXPERIMENTAL_INTERFACES */ |