uLib
User mode C/C++ extended API library for Win32 programmers.
|
#include <uLib/StrFunc.h>
UString is a UNICODE_STRING class with automatic Ansi conversion.
Programmers can rely on Buffer being NUL terminated, since it is either initialized with a PCWSTR,
or converted/copied into a buffer overallocated to hold a NUL character past the Length specification.
Public Functions | |
UString () | |
UString (WCSTR Src) | |
UString (ACSTR Src) | |
UString (const UNICODE_STRING &Src) | |
UString (size_t Len) | |
void | Clear () |
virtual | ~UString () |
UString & | operator= (WCSTR Src) |
UString & | operator= (ACSTR Src) |
UString & | operator= (const UNICODE_STRING &Src) |
void | Set (WCSTR Src) |
bool | Set (ACSTR Src) |
bool | Set (const UNICODE_STRING &Src) |
operator PWSTR () | |
operator PCWSTR () | |
operator UNICODE_STRING () | |
operator PUNICODE_STRING () | |
Protected Attributes | |
WORD | Flags |
UString::UString | ( | ) |
Definition at line 1405 of file StrFunc.cpp.
UString::UString | ( | WCSTR | Src | ) |
Definition at line 1410 of file StrFunc.cpp.
UString::UString | ( | ACSTR | Src | ) |
Convert from Ansi string.
Definition at line 1417 of file StrFunc.cpp.
UString::UString | ( | const UNICODE_STRING & | Src | ) |
Ensure NUL termination.
Definition at line 1424 of file StrFunc.cpp.
UString::UString | ( | size_t | Len | ) |
Alloc a zero filled Buffer of Len + 1(NUL) WCHARs.
Definition at line 1431 of file StrFunc.cpp.
|
virtual |
Definition at line 1438 of file StrFunc.cpp.
Definition at line 1501 of file StrFunc.cpp.
Convert from Ansi string.
Definition at line 1507 of file StrFunc.cpp.
UString & UString::operator= | ( | const UNICODE_STRING & | Src | ) |
Ensure NUL termination.
Definition at line 1513 of file StrFunc.cpp.
void UString::Set | ( | WCSTR | Src | ) |
Definition at line 1443 of file StrFunc.cpp.
bool UString::Set | ( | ACSTR | Src | ) |
Convert from Ansi string.
Definition at line 1449 of file StrFunc.cpp.
bool UString::Set | ( | const UNICODE_STRING & | Src | ) |
Ensure NUL termination.
Definition at line 1462 of file StrFunc.cpp.
|
inline |
|
inline |