ASN1C C/C++ Common Runtime
ASN1C v7.2.x
|
#include <OSRTFastString.h>
Public Member Functions | |
OSRTFastString () | |
OSRTFastString (const char *strval) | |
OSRTFastString (const OSUTF8CHAR *strval) | |
OSRTFastString (const OSRTFastString &str) | |
virtual | ~OSRTFastString () |
virtual OSRTStringIF * | clone () |
virtual const char * | getValue () const |
virtual const OSUTF8CHAR * | getUTF8Value () const |
virtual void | print (const char *name) |
virtual void | setValue (const char *str) |
virtual void | setValue (const OSUTF8CHAR *str) |
OSRTFastString & | operator= (const OSRTFastString &original) |
Protected Attributes | |
const OSUTF8CHAR * | mValue |
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.
OSRTFastString::OSRTFastString | ( | ) |
The default constructor sets the internal string member variable pointer to null.
OSRTFastString::OSRTFastString | ( | const char * | strval | ) |
This constructor initializes the string to contain the given standard ASCII string value.
strval | - Null-terminated C string value |
OSRTFastString::OSRTFastString | ( | const OSUTF8CHAR * | strval | ) |
This constructor initializes the string to contain the given UTF-8 string value.
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.
str | - C++ string object to be copied. |
|
virtual |
The destructor does nothing.
|
inlinevirtual |
This method creates a copy of the given string object.
|
inlinevirtual |
This method returns the pointer to UTF-8 null terminated string as a UTF-8 string.
|
inlinevirtual |
This method returns the pointer to UTF-8 null terminated string as a standard ASCII string.
OSRTFastString& OSRTFastString::operator= | ( | const OSRTFastString & | original | ) |
Assignment operator.
|
inlinevirtual |
This method prints the string value to standard output.
name | - Name of generated string variable. |
References rtxPrintCharStr().
|
virtual |
This method sets the string value to the given string.
str | - C null-terminated string. |
|
virtual |
This method sets the string value to the given UTF-8 string value.
str | - C null-terminated UTF-8 string. |