-
class
PortableString
: public PortableFlattenable
(Return to index)
-
Character String class, similar to Java's java.lang.String
Type:
Superclasses:
Include file:
../../string/PortableString.h
Synopsis:
- Public:
- char
CharAt
(uint32 index) const
;
-
- int
CompareTo
(const PortableString &anotherString) const
;
-
- const PortableString&
Concat
(const PortableString &str)
;
-
- const char*
Cstr
() const
;
-
- int
EndsWith
(const PortableString &suffix) const
;
-
- int
Equals
(const PortableString &anObject) const
;
-
- int
EqualsIgnoreCase
(const PortableString &anotherString) const
;
-
- virtual void
Flatten
(uint8 *buffer) const
;
-
- virtual size_t
FlattenedSize
() const
;
-
- void
Format
(const char* fmt, ...)
;
-
- int
IndexOf
(char ch) const
;
-
- int
IndexOf
(char ch, uint32 fromIndex) const
;
-
- int
IndexOf
(const PortableString &str) const
;
-
- int
IndexOf
(const PortableString &str, uint32 fromIndex) const
;
-
- virtual bool
IsFixedSize
() const
;
-
- int
LastIndexOf
(char ch) const
;
-
- int
LastIndexOf
(char ch, uint32 fromIndex) const
;
-
- int
LastIndexOf
(const PortableString &str) const
;
-
- int
LastIndexOf
(const PortableString &str, uint32 fromIndex) const
;
-
- const uint32
Length
() const
;
-
-
PortableString
(const PortableString &Value)
;
-
-
PortableString
(const PortableString &Value)
;
-
- void
Replace
(char oldChar, char newChar)
;
-
- void
Replace
(const PortableString& match, const PortableString& replace)
;
-
- int
StartsWith
(const PortableString &prefix) const
;
-
- int
StartsWith
(const PortableString &prefix, uint32 toffset) const
;
-
- PortableString
Substring
(uint32 beginIndex) const
;
-
- PortableString
Substring
(uint32 beginIndex, uint32 endIndex) const
;
-
- PortableString
ToLowerCase
() const
;
-
- PortableString
ToUpperCase
() const
;
-
- PortableString
Trim
() const
;
-
- virtual type_code
TypeCode
() const
;
-
- virtual status_t
Unflatten
(const uint8 *buf, size_t size)
;
-
- int
operator !=
(const PortableString &Rhs) const
;
-
- const PortableString &
operator +=
(const char)
;
-
- const PortableString &
operator +=
(const char)
;
-
- int
operator <
(const PortableString &Rhs) const
;
-
- int
operator <=
(const PortableString &Rhs) const
;
-
- const PortableString &
operator =
(const PortableString &Rhs)
;
-
- int
operator ==
(const PortableString &Rhs) const
;
-
- int
operator >
(const PortableString &Rhs) const
;
-
- int
operator >=
(const PortableString &Rhs) const
;
-
- char&
operator []
(uint32 Index)
;
-
- char
operator []
(uint32 Index) const
;
-
- virtual
~PortableString
()
;
-
- Protected:
- void
Double
()
;
-
- void
GetBuffer
(uint32 MaxStrLen)
;
-
- char *
_buffer
;
-
- uint32
_bufferLen
;
-
- uint32
_length
;
-
- void
verifyIndex
(uint32 number) const
;
-
Public methods:
- public char
CharAt (uint32 index) const
Methods
-------
INSPECTORS
==========
- public int
CompareTo (const PortableString &anotherString) const
- public const PortableString&
Concat (const PortableString &str)
Methods
-------
MODIFIERS
=========
- public const char*
Cstr () const
- public int
EndsWith (const PortableString &suffix) const
- public int
Equals (const PortableString &anObject) const
- public int
EqualsIgnoreCase (const PortableString &anotherString) const
- public virtual void
Flatten (uint8 *buffer) const
- public virtual size_t
FlattenedSize () const
- public void
Format (const char* fmt, ...)
- public int
IndexOf (char ch) const
- public int
IndexOf (char ch, uint32 fromIndex) const
- public int
IndexOf (const PortableString &str) const
- public int
IndexOf (const PortableString &str, uint32 fromIndex) const
- public virtual bool
IsFixedSize () const
- public int
LastIndexOf (char ch) const
- public int
LastIndexOf (char ch, uint32 fromIndex) const
- public int
LastIndexOf (const PortableString &str) const
- public int
LastIndexOf (const PortableString &str, uint32 fromIndex) const
- public const uint32
Length () const
- public
PortableString (const PortableString &Value)
Constructor(s) / Destructors
-----------------------------
- public
PortableString (const PortableString &Value)
Constructor(s) / Destructors
-----------------------------
- public void
Replace (char oldChar, char newChar)
- public void
Replace (const PortableString& match, const PortableString& replace)
- public int
StartsWith (const PortableString &prefix) const
- public int
StartsWith (const PortableString &prefix, uint32 toffset) const
- public PortableString
Substring (uint32 beginIndex) const
- public PortableString
Substring (uint32 beginIndex, uint32 endIndex) const
- public PortableString
ToLowerCase () const
- public PortableString
ToUpperCase () const
- public PortableString
Trim () const
- public virtual type_code
TypeCode () const
- public virtual status_t
Unflatten (const uint8 *buf, size_t size)
- public int
operator != (const PortableString &Rhs) const
- public const PortableString &
operator += (const char)
- public const PortableString &
operator += (const char)
- public int
operator < (const PortableString &Rhs) const
- public int
operator <= (const PortableString &Rhs) const
- public const PortableString &
operator = (const PortableString &Rhs)
- public int
operator == (const PortableString &Rhs) const
- public int
operator > (const PortableString &Rhs) const
- public int
operator >= (const PortableString &Rhs) const
- public char&
operator [] (uint32 Index)
- public char
operator [] (uint32 Index) const
- public virtual
~PortableString ()
Protected methods: