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)
 Copies contents from another string.
 
string Data ()
 Returns an internal string buffer.
 
void Clear ()
 IsEmpty() will return true after calling this method.
 
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

Copies contents from another string.

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

Copies contents from another string.

Member Function Documentation

◆ Clear()

void cadex.UTF16String.Clear ( )
inline

IsEmpty() will return true after calling this method.

Clears the contents.

◆ Data()

string cadex.UTF16String.Data ( )
inline

Returns an internal string buffer.

◆ IsEmpty()

◆ Length()

uint cadex.UTF16String.Length ( )
inline

Returns a string length in UTF16 characters.

Examples
exploring/bom/Program.cs.

◆ ToWString()

string cadex.UTF16String.ToWString ( )
inline

Converts to standard wstring.

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