![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cKernel.h>
Public Member Functions | |
| void | UpcaseString () |
| void | InitStr () |
| void | InitStatic (const WCHAR *pStr, USHORT wLength) |
| void | InitStatic (const WCHAR *pStr) |
| void | InitBuffer (PWSTR pBuffer, USHORT uMaximumLength) |
| void | InitBufferZ (PWSTR pBuffer, USHORT uMaximumLength) |
| bool | IsValidStr () const |
| operator PCWSTR () const | |
| operator PWSTR () | |
| PWSTR | DetachStr () |
| COMPARE_t | CompareStr (const UNICODE_STRING &rString2, BOOLEAN bCaseInSensitive=false) const |
| NTSTATUS | FromInteger (IN ULONG uValue, IN ULONG uBase=10) |
| NTSTATUS | ToInteger (ULONG &uValue, ULONG nBase=10) const |
| NTSTATUS | FromInt64 (IN ULONGLONG Value, IN ULONG nBase=10) |
| NTSTATUS | FromAnsi (PANSI_STRING pStr, bool bAlloc=false) |
| NTSTATUS | AppendStr (const UNICODE_STRING &str) |
| NTSTATUS | AppendStr (PCWSTR pwSource) |
| void | AppendStr (NTSTATUS &lStatus, PCWSTR pwSource) |
| NTSTATUS | AppendInteger (ULONG uValue, ULONG uBase=10) |
| void | FreeSys () |
static string. (has no constructor/destructor) MaximumLength = length in bytes. (includes space for '\0')
|
inline |
|
inline |
Append the string for as much room as we have. then fail STATUS_BUFFER_TOO_SMALL
|
inline |
Append the string for as much room as we have. then fail STATUS_BUFFER_TOO_SMALL
|
inline |
Append the string for as much room as we have. then fail STATUS_BUFFER_TOO_SMALL
|
inline |
|
inline |
Detach from the string. could leak.
|
inline |
|
inline |
Set this from a ANSI string.
|
inline |
|
inline |
|
inline |
uMaximumLength = bytes = sizeof(*pBuffer); // includes space for trailing null
|
inline |
zero the buffer first.
|
inline |
Detaches any existing Buffer! could leak in CKeStringU case.
|
inline |
wLength = string length not including the null.
|
inline |
Detaches any existing Buffer! could leak in CKeStringU case.
|
inline |
|
inline |
|
inline |
|
inline |
Get a ULONG from this string.
|
inline |