nn::nex::String Class

Syntax

class String : public nn::nex::RootObject

Description

Core string type used by NEX.

This class defines the basic string functionality.

CTR-NEX supports UTF-16 LE. However, surrogate pairs are not supported.

Member Functions

String Constructor.
V ~String Destructor.
operator= An assignment operator.
operator+= A compound assignment operator. Concatenates strings.
operator== A comparison operator.
operator!= A comparison operator.
operator< A comparison operator.
operator<= A comparison operator.
operator> A comparison operator.
operator>= A comparison operator.
Truncate Creates a String object that discards everything beyond the specified string length.
CStr Returns a string as a C-format pointer.
GetBufferPtr Returns the string buffer inside the object.
Reserve Allocates memory of the specified string length in advance.
CreateCopy Creates a copy of a string.
GetLength Returns the string length.
ToUpper Converts the string to all uppercase.
ToLower Converts the string to all lowercase.
FindSubstringCase Searches for strings. Case sensitive.
FindSubstringNoCase Searches for strings. Not case sensitive.
ContainsCase Returns whether the argument string is included. Case sensitive.
ContainsNoCase Returns whether the argument string is included. Not case sensitive.
S ReleaseCopy Releases the string.
S ByteArrayToBase64 Converts the entered binary data into a base64 format type qChar string.
S Base64ToByteArray Converts a base-64 format into binary data.

Class Hierarchy

nn::nex::RootObject
  nn::nex::String

Revision History

2011/06/06
Noted the character encoding supported by NEX.
2011/01/27
Initial version.

CONFIDENTIAL