-
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:
- PortableString
Append
(const PortableString & str) const
;
-
- char
CharAt
(uint32 index) const
;
-
- int
CompareTo
(const PortableString &anotherString) const
;
-
- 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
;
-
- uint32
HashCode
() const
;
-
- 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 & str)
;
-
-
PortableString
(const PortableString & str)
;
-
- PortableString
Prepend
(const PortableString & str) const
;
-
- 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)
;
-
- 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:
- status_t
EnsureBufferSize
(uint32 newBufLen, bool retainValue)
;
-
- char *
_buffer
;
-
- uint32
_bufferLen
;
-
- uint32
_length
;
-
- void
verifyIndex
(uint32 number) const
;
-
Public methods:
Protected methods: