OSRTFastString Class Reference
C++ fast string class definition. More...
#include <OSRTFastString.h>
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. |
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
OSRTFastString::OSRTFastString | ( | const char * | strval | ) |
This constructor initializes the string to contain the given standard ASCII string value.
- Parameters:
-
strval - Null-terminated C string value
OSRTFastString::OSRTFastString | ( | const OSUTF8CHAR * | strval | ) |
This constructor initializes the string to contain the given UTF-8 string value.
- Parameters:
-
strval - Null-terminated C string value
OSRTFastString::OSRTFastString | ( | const OSRTFastString & | str | ) |
Copy constructor.
String data is not copied; the pointer is simply assigned to the target class member variable.
- Parameters:
-
str - C++ string object to be copied.
Member Function Documentation
virtual void OSRTFastString::print | ( | const char * | name | ) | [inline, virtual] |
This method prints the string value to standard output.
- Parameters:
-
name - Name of generated string variable.
Implements OSRTStringIF.
Definition at line 109 of file OSRTFastString.h.
virtual void OSRTFastString::setValue | ( | const OSUTF8CHAR * | str | ) | [virtual] |
This method sets the string value to the given UTF-8 string value.
- Parameters:
-
str - C null-terminated UTF-8 string.
Implements OSRTStringIF.
virtual void OSRTFastString::setValue | ( | const char * | str | ) | [virtual] |
This method sets the string value to the given string.
- Parameters:
-
str - C null-terminated string.
Implements OSRTStringIF.
The documentation for this class was generated from the following file: