OSRTFastString Class Reference
C++ fast string class definition. More...
#include <OSRTFastString.h>
Inheritance diagram for OSRTFastString:

Public Member Functions | |
| OSRTFastString () | |
| The default constructor sets the internal string member variable pointer to null. | |
| OSRTFastString (const char *strval) | |
| This constructor initializes the string to contain the given standard ASCII string value. | |
| OSRTFastString (const OSUTF8CHAR *strval) | |
| This constructor initializes the string to contain the given UTF-8 string value. | |
| OSRTFastString (const OSRTFastString &str) | |
| Copy constructor. | |
| virtual | ~OSRTFastString () |
| The destructor does nothing. | |
| virtual OSRTStringIF * | clone () |
| This method creates a copy of the given string object. | |
| virtual const char * | getValue () const |
| This method returns the pointer to UTF-8 null terminated string as a standard ASCII string. | |
| virtual const OSUTF8CHAR * | getUTF8Value () const |
| This method returns the pointer to UTF-8 null terminated string as a UTF-8 string. | |
| virtual void | print (const char *name) |
| This method prints the string value to standard output. | |
| virtual void | setValue (const char *str) |
| This method sets the string value to the given string. | |
| virtual void | setValue (const OSUTF8CHAR *str) |
| This method sets the string value to the given UTF-8 string value. | |
| OSRTFastString & | operator= (const OSRTFastString &original) |
| Assignment operator. | |
Protected Attributes | |
| const OSUTF8CHAR * | mValue |
Detailed Description
C++ fast string class definition.This can be used to hold standard ASCII or UTF-8 strings. This string class implementations directly assigns any assigned pointers to internal member variables. It does no memory management.
Definition at line 43 of file OSRTFastString.h.
Constructor & Destructor Documentation
|
|
This constructor initializes the string to contain the given standard ASCII string value.
|
|
|
This constructor initializes the string to contain the given UTF-8 string value.
|
|
|
Copy constructor. String data is not copied; the pointer is simply assigned to the target class member variable.
|
Member Function Documentation
|
|
This method prints the string value to standard output.
Implements OSRTStringIF. Definition at line 109 of file OSRTFastString.h. |
|
|
This method sets the string value to the given UTF-8 string value.
Implements OSRTStringIF. |
|
|
This method sets the string value to the given string.
Implements OSRTStringIF. |
The documentation for this class was generated from the following file:
