Hide menu
Loading...
Searching...
No Matches
cadex.UTF16String Class Reference

Defines a Unicode (UTF-16) string wrapping a standard string. More...

Inherits global.SystemIDisposable.

Public Member Functions

 UTF16String (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
 UTF16String (string theOther)
 Constructor.
 
string Data ()
 Returns an internal string buffer.
 
void Clear ()
 Clears the contents.
 
uint Length ()
 Returns a string length in UTF16 characters.
 
bool IsEmpty ()
 Returns true if the string is empty.
 
bool IsEqual (cadex.UTF16String theOther)
 
bool IsNotEqual (cadex.UTF16String theOther)
 
override int GetHashCode ()
 
string ToWString ()
 Converts to standard wstring.
 
override string ToString ()
 
override bool Equals (System.Object o)
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Detailed Description

Constructor & Destructor Documentation

◆ UTF16String()

cadex.UTF16String.UTF16String ( string theOther)
inline

Constructor.

Copies contents from another string.

Note
in C# accepts a native string type, in Java - a native String type.
See also
ToWString().

Copies contents from another string.

Member Function Documentation

◆ Clear()

void cadex.UTF16String.Clear ( )
inline

Clears the contents.

IsEmpty() will return true after calling this method.

◆ IsEmpty()

◆ ToWString()

string cadex.UTF16String.ToWString ( )
inline

Converts to standard wstring.

Note
in C# converts to native string type, in Java - to native String type.