Class that represents bounded size rstring type. More...
#include <SPL/Runtime/Type/BString.h>

Public Types |
|
| enum | { bounded_size = msize } |
| enum | { npos = -1 } |
| using | size_type = typename TMP::SizeType< msize >::value |
| size type More... |
|
| using | iterator = char * |
| iterator type More... |
|
| using | const_iterator = const char * |
| const iterator type More... |
|
| using | reverse_iterator = std::reverse_iterator< iterator > |
| reverse iterator type More... |
|
| using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
| constant reverse iterator type More... |
|
Public Member Functions |
|
| bstring () | |
| bstring (const bstring< msize > &ot) | |
| template<int32_t osize> | |
| bstring (const bstring< osize > &ot) | |
| bstring (const std::string &ot) | |
| bstring (const rstring &ot) | |
| bstring (char const *ot) | |
| bstring (char const *ot, uint32_t len) | |
| bstring (const BString &ot) | |
| bstring (const ConstValueHandle &ot) | |
| ~bstring () | |
| BString * | clone () const |
| const bstring & | operator= (const bstring< msize > &ot) |
| template<int32_t osize> | |
| const bstring & | operator= (const bstring< osize > &ot) |
| const bstring & | operator= (const std::string &ot) |
| const bstring & | operator= (const rstring &ot) |
| const bstring & | operator= (char const *ot) |
| void | assignFrom (const char *ot, int32_t ousz) |
| void | assignFrom (const BString &ot) |
| void | swapWith (BString &ot) |
| bool | operator== (const bstring< msize > &ot) const |
| template<int32_t osize> | |
| bool | operator== (const bstring< osize > &ot) const |
| bool | operator== (char const *ot) const |
| bool | operator== (const std::string &ot) const |
| bool | operator== (const rstring &ot) const |
| bool | operator!= (const bstring< msize > &ot) const |
| template<int32_t osize> | |
| bool | operator!= (const bstring< osize > &ot) const |
| bool | operator!= (char const *ot) const |
| bool | operator!= (const std::string &ot) const |
| bool | operator!= (const rstring &ot) const |
| template<int32_t osize> | |
| bool | operator> (const bstring< osize > &ot) const |
| bool | operator> (char const *ot) const |
| bool | operator> (const std::string &ot) const |
| bool | operator> (const rstring &ot) const |
| template<int32_t osize> | |
| bool | operator<= (const bstring< osize > &ot) const |
| bool | operator<= (char const *ot) const |
| bool | operator<= (const std::string &ot) const |
| bool | operator<= (const rstring &ot) const |
| template<int32_t osize> | |
| bool | operator< (const bstring< osize > &ot) const |
| bool | operator< (char const *ot) const |
| bool | operator< (const std::string &ot) const |
| bool | operator< (const rstring &ot) const |
| template<int32_t osize> | |
| bool | operator>= (const bstring< osize > &ot) const |
| bool | operator>= (char const *ot) const |
| bool | operator>= (const std::string &ot) const |
| bool | operator>= (const rstring &ot) const |
| bstring< msize > | at (const size_type &idx) const |
| char const & | operator[] (const size_type &idx) const |
| char & | operator[] (const size_type &idx) |
| virtual uint32_t | getBoundedSize () const |
| size_type | max_size () const |
| virtual uint32_t | getUsedSize () const |
| size_type | size () const |
| void | resize (size_type s) const |
| void | clear () |
| Remove all characters. More... |
|
| bool | empty () const |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| reverse_iterator | rbegin () |
| const_reverse_iterator | rbegin () const |
| reverse_iterator | rend () |
| const_reverse_iterator | rend () const |
| template<int32_t osize> | |
| bstring< msize > & | operator+= (const bstring< osize > &ot) |
| bstring< msize > & | operator+= (const std::string &ot) |
| bstring< msize > & | operator+= (const rstring &ot) |
| bstring< msize > & | operator+= (const char *ot) |
| bstring< msize > & | operator+= (const char c) |
| template<int32_t osize> | |
| bstring< msize > & | append (const bstring< osize > &ot) |
| bstring< msize > & | append (const std::string &ot) |
| bstring< msize > & | append (const rstring &ot) |
| template<int32_t osize> | |
| bstring< msize > & | append (const bstring< osize > &ot, typename bstring< osize >::size_type pos, size_type n) |
| bstring< msize > & | append (const std::string &ot, int32_t pos, size_type n) |
| bstring< msize > & | append (const rstring &ot, int32_t pos, size_type n) |
| bstring< msize > & | append (const char *s) |
| bstring< msize > & | append (const char *s, int32_t n) |
| bstring< msize > & | append (char c) |
| bstring< msize > & | append (size_type n, char c) |
| template<class InputIterator > | |
| bstring< msize > & | append (InputIterator first, InputIterator last) |
| bstring< msize > & | push_back (char c) |
| template<int32_t osize> | |
| bstring< msize > & | assign (const bstring< osize > &ot) |
| bstring< msize > & | assign (const std::string &ot) |
| bstring< msize > & | assign (const rstring &ot) |
| template<int32_t osize> | |
| bstring< msize > & | assign (const bstring< osize > &ot, typename bstring< osize >::size_type pos, size_type n) |
| bstring< msize > & | assign (const std::string &ot, int32_t pos, size_type n) |
| bstring< msize > & | assign (const rstring &ot, int32_t pos, size_type n) |
| bstring< msize > & | assign (const char *s) |
| bstring< msize > & | assign (const char *s, size_type n) |
| bstring< msize > & | assign (size_type n, char c) |
| template<class InputIterator > | |
| bstring< msize > & | assign (InputIterator first, InputIterator last) |
| char const * | getCString () const |
| char const * | c_str () const |
| char const * | data () const |
| char const * | getData () const |
| template<int32_t osize> | |
| void | swap (bstring< osize > &ot) |
| void | serialize (VirtualByteBuffer &buf) const |
| void | deserialize (VirtualByteBuffer &buf) |
| template<class BufferType > | |
| void | serialize (ByteBuffer< BufferType > &buf) const |
| void | serialize (NativeByteBuffer &buf) const |
| void | serialize (NetworkByteBuffer &buf) const |
| template<class BufferType > | |
| void | deserialize (ByteBuffer< BufferType > &buf) |
| void | deserialize (NativeByteBuffer &buf) |
| void | deserialize (NetworkByteBuffer &buf) |
| void | serialize (std::ostream &ostr) const |
| void | deserialize (std::istream &istr) |
| size_t | hashCode () const |
| size_t | getSerializedSize () const |
Public Member Functions inherited from SPL::BString |
|
| virtual | ~BString ()=default |
| bool | operator== (const BString &ov) const |
| bool | operator!= (const BString &ov) const |
| const BString & | operator= (const BString &ov) |
| const BString & | operator= (const std::string &ov) |
| const BString & | operator= (const rstring &ov) |
| operator rstring () const | |
Additional Inherited Members |
Class that represents bounded size rstring type.
| using SPL::bstring< msize >::size_type = typename TMP::SizeType<msize>::value |
size type
| using SPL::bstring< msize >::iterator = char * |
iterator type
| using SPL::bstring< msize >::const_iterator = const char * |
const iterator type
| using SPL::bstring< msize >::reverse_iterator = std::reverse_iterator<iterator> |
reverse iterator type
| using SPL::bstring< msize >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
constant reverse iterator type
|
inline |
Empty constructor
|
inline |
Copy constructor
| ot | bounded size string to construct from |
|
inline |
Copy constructor
| ot | bounded size string to construct from |
|
inline |
Construct from an STL string
| ot | STL string to construct from |
|
inline |
|
inline |
Construct from a C string
| ot | C string to construct from |
|
inline |
Construct from a C string with a known length
| ot | C string to construct from |
| len | number of bytes in the string |
|
inline |
|
inline |
Construct from a value handle
| ot | value handle to construct from |
|
inline |
Destructor
|
inlinevirtual |
Make a copy of this bounded size string
Implements SPL::BString.
|
inline |
Assignment operator (from another bounded size string)
| ot | bounded size string to assign from |
|
inline |
Assignment operator (from another bounded size string)
| ot | bounded size string to assign from |
|
inline |
Assignment operator (from an STL string)
| ot | STL string to assign from |
|
inline |
|
inline |
Assignment operator (from a C string)
| ot | C string to assign from |
|
inlinevirtual |
Assign from a char buffer
| ot | char buffer |
| ousz | used size of the string |
Implements SPL::BString.
|
inlinevirtual |
Assign this string using another one
| ot | other string to assign from |
Implements SPL::BString.
|
inlinevirtual |
Swap this string with another one
| ot | other collection to swap with |
Implements SPL::BString.
|
inline |
Equality comparison
| ot | bounded size string to compare with |
|
inline |
Equality comparison
| ot | bounded size string to compare with |
|
inline |
Equality comparison
| ot | C string to compare with |
|
inline |
Equality comparison
| ot | STL string to compare with |
|
inline |
Equality comparison
| ot | SPL string to compare with |
|
inline |
Non-equality comparison
| ot | bounded size string to compare with |
|
inline |
Non-equality comparison
| ot | bounded size string to compare with |
|
inline |
Non-equality comparison
| ot | C string to compare with |
|
inline |
Non-equality comparison
| ot | STL string to compare with |
|
inline |
Non-equality comparison
| ot | SPL string to compare with |
|
inline |
Greater than comparison
| ot | bounded size string to compare with |
|
inline |
Greater than comparison
| ot | C string to compare with |
|
inline |
Greater than comparison
| ot | std::string to compare with |
|
inline |
Greater than comparison
| ot | rstring to compare with |
|
inline |
Less Than or Equal comparison
| ot | bounded size string to compare with |
|
inline |
Less Than or Equal comparison
| ot | C string to compare with |
|
inline |
Less Than or Equal comparison
| ot | std::string to compare with |
|
inline |
Less Than or Equal comparison
| ot | rstring to compare with |
|
inline |
Less than comparison
| ot | bounded size string to compare with |
|
inline |
Less than comparison
| ot | C string to compare with |
|
inline |
Less than comparison
| ot | std::string to compare with |
|
inline |
Less than comparison
| ot | rstring to compare with |
|
inline |
Greater Than or Equal comparison
| ot | bounded size string to compare with |
|
inline |
Greater Than or Equal comparison
| ot | C string to compare with |
|
inline |
Greater Than or Equal comparison
| ot | std::string to compare with |
|
inline |
Greater Than or Equal comparison
| ot | std::string to compare with |
|
inline |
Character subscript
| idx | element index |
| SPLRuntimeInvalidIndexException | exception if the index is out of range |
|
inline |
Character access (read-only)
| idx | element index |
|
inline |
Character access (read-write)
| idx | element index |
|
inlinevirtual |
|
inline |
Get the bounded size of the string
|
inlinevirtual |
|
inline |
Get the number of used characters
|
inline |
Resize the string
| s | new size |
|
inlinevirtual |
Remove all characters.
Implements SPL::BString.
|
inline |
Check if empty
|
inline |
Get a begin iterator
|
inline |
Get a begin const iterator
|
inline |
Get an end iterator
|
inline |
Get an end const iterator
|
inline |
Get a reverse begin iterator
|
inline |
Get a reverse begin const iterator
|
inline |
Get a reverse end iterator
|
inline |
Get a reverse end const iterator
|
inline |
Append bounded size string
| ot | string to append |
|
inline |
Append STL string
| ot | string to append |
|
inline |
|
inline |
Append C string
| ot | string to append |
|
inline |
Append character
| c | character to append |
|
inline |
Append bounded size string
| ot | string to append |
|
inline |
Append STL string
| ot | string to append |
|
inline |
|
inline |
Append bounded size string
| ot | string to append |
| pos | position to start from in ot |
| n | number of characters to use from ot |
|
inline |
Append STL string
| ot | string to append |
| pos | position to start from in ot |
| n | number of characters to use from ot |
|
inline |
Append SPL string
| ot | string to append |
| pos | position to start from in ot |
| n | number of characters to use from ot |
|
inline |
Append C string
| s | string to append |
|
inline |
Append C string
| s | string to append |
| n | number of characters to use from s |
|
inline |
Append character
| c | character to append |
|
inline |
Append character
| c | character to append |
| n | number of times to append |
|
inline |
Append a sequence of characters
| first | begin iterator for the sequence, inclusive |
| last | end iterator for the sequence, exclusive |
|
inline |
Append character
| c | character to append |
|
inline |
Assign from a bounded size string
| ot | string to assign from |
|
inline |
Assign from an STL string
| ot | string to assign from |
|
inline |
|
inline |
Assign from a bounded size string
| ot | string to assign from |
| pos | position to start from in ot |
| n | number of characters to use from ot |
|
inline |
Assign from an STL string
| ot | string to assign from |
| pos | position to start from in ot |
| n | number of characters to use from ot |
|
inline |
Assign from an SPL string
| ot | string to assign from |
| pos | position to start from in ot |
| n | number of characters to use from ot |
|
inline |
Assign from a C string
| s | string to assign from |
|
inline |
Assign from a C string
| s | string to assign from |
| n | number of characters to use from s |
|
inline |
Assign from a character
| c | character to use |
| n | number of characters |
|
inline |
Assign from a sequence of characters
| first | begin iterator for the sequence, inclusive |
| last | end iterator for the sequence, exclusive |
|
inlinevirtual |
|
inline |
Get the C string representation
|
inline |
Get the character array representation (not necessarily NULL-terminated)
|
inlinevirtual |
Get the character array representation (not necessarily NULL-terminated)
Implements SPL::BString.
|
inline |
Swap
| ot | bounded size string to swap with |
|
inline |
Serialize (binary)
| buf | serialization buffer to use |
|
inline |
Deserialize (binary)
| buf | serialization buffer to use |
|
inline |
Serialize (binary)
| buf | byte buffer to use |
|
inline |
Serialize (binary)
| buf | byte buffer to use |
|
inline |
Serialize (binary)
| buf | byte buffer to use |
|
inline |
Deserialize (binary)
| buf | byte buffer to use |
|
inline |
Deserialize (binary)
| buf | serialization buffer to use |
|
inline |
Deserialize (binary)
| buf | serialization buffer to use |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Get the size in bytes when serialized
Implements SPL::BString.