1 #ifndef __IUTF8String_h__ 2 #define __IUTF8String_h__ 1 132 virtual void APICALL resize(
sizet n ) = 0 ;
180 virtual sizet APICALL copy(
char * buf,
sizet len,
sizet pos = 0 )
const = 0;
195 return find( buf, pos,
npos );
211 virtual sizet APICALL find(
const char * buf,
sizet pos,
sizet count )
const = 0;
244 return rfind( buf, pos,
npos );
246 virtual sizet APICALL rfind(
const char * buf,
sizet pos,
sizet count )
const = 0;
284 return compare( 0, size(), buf,
npos );
306 return compare( pos, len, buf,
npos );
348 return compare( 0, size(), str, 0, str->size() );
391 virtual bool APICALL empty()
const = 0;
397 virtual const char * APICALL c_str()
const __NOTHROW__ = 0;
402 virtual void APICALL clear() __NOTHROW__ = 0;
408 virtual sizet APICALL size()
const __NOTHROW__ = 0;
416 virtual pIUTF8String APICALL GetActualIUTF8String() __NOTHROW__ = 0;
418 return const_cast< IUTF8String_v1 *
>( this )->GetActualIUTF8String();
431 return MakeShared( const_cast< pIUTF8String_base >( ptr ) );
496 #ifdef FRIEND_CLASS_DECLARATION 497 FRIEND_CLASS_DECLARATION();
504 #endif // __IUTF8String_h__
int32 compare(sizet pos, sizet len, const char *buf) const
Compare strings.
const sizet npos(kMaxSize)
virtual ~IUTF8String_v1() __NOTHROW__
shared_ptr< const IUTF8String > spcIUTF8String
sizet find(const char *buf, sizet pos=0) const
Find content in string.
IUTF8String * pIUTF8String
const IUTF8String * pcIUTF8String
Version1 of the interface that represents an error/warning encountered during processing.
sizet rfind(const char *buf, sizet pos=npos) const
Find last occurrence of content in string.
Interface that serves as the base interface of all the externally exposed interfaces.
int32 compare(const spcIUTF8String &str) const
Compare strings.
IObjectFactory * pIObjectFactory
#define REQ_FRIEND_CLASS_DECLARATION()
int32 compare(const char *buf) const
Compare strings.
Interface that serves as the base interface for all the externally exposed interfaces which needs to ...
Version1 of the interface that represents an UTF8String.
shared_ptr< IUTF8String > spIUTF8String
static const uint64 kIUTF8StringID(0x6e55544638537472)