uLib  User mode C/C++ extended API library for Win32 programmers.

Module Description

Supplementary string types.

Groups

 Lower Case
 

Macros

#define TSTR   LPTSTR
 
#define CSTR   LPCTSTR
 
#define PCUCHAR   const unsigned char*
 
#define TCHAR_SIZE   sizeof(TCHAR)
 
#define WCHAR_SIZE   sizeof(WCHAR)
 
#define _TBYTES(cch)   (cch * TCHAR_SIZE)
 
#define _WBYTES(cch)   (cch * WCHAR_SIZE)
 
#define PTR_SIZE   sizeof(void*)
 

Typedefs

typedef const LPCTSTR CCSTR
 
typedef char * ASTR
 
typedef const char * ACSTR
 
typedef const ACSTR CCASTR
 
typedef UCHAR * MBSTR
 
typedef const UCHAR * MBCSTR
 
typedef const MBCSTR CCMBSTR
 
typedef wchar_t * WSTR
 
typedef const wchar_t * WCSTR
 
typedef const WCSTR CCWSTR
 

Macro Definition Documentation

◆ TSTR

#define TSTR   LPTSTR

Changable ptr to changable char.

Definition at line 328 of file Common.h.

◆ CSTR

#define CSTR   LPCTSTR

Changable ptr to const char.

Definition at line 329 of file Common.h.

◆ PCUCHAR

#define PCUCHAR   const unsigned char*

Some _mbcNN multibyte string function needs this (or MBCSTR).

Definition at line 339 of file Common.h.

◆ TCHAR_SIZE

#define TCHAR_SIZE   sizeof(TCHAR)

Size of transmutable characters

Definition at line 376 of file Common.h.

◆ WCHAR_SIZE

#define WCHAR_SIZE   sizeof(WCHAR)

Size of wide (unicode) characters

Definition at line 379 of file Common.h.

◆ _TBYTES

#define _TBYTES (   cch)    (cch * TCHAR_SIZE)

Definition at line 382 of file Common.h.

◆ _WBYTES

#define _WBYTES (   cch)    (cch * WCHAR_SIZE)

Definition at line 383 of file Common.h.

◆ PTR_SIZE

#define PTR_SIZE   sizeof(void*)

Size of a pointer

Definition at line 386 of file Common.h.

Typedef Documentation

◆ CCSTR

typedef const LPCTSTR CCSTR

Const ptr to const char (true constant string).
This type of string can only be assigned at compile time.

Definition at line 335 of file Common.h.

◆ ASTR

typedef char* ASTR

ANSI string (compatible w LPSTR).

Definition at line 344 of file Common.h.

◆ ACSTR

typedef const char* ACSTR

const ANSI string (compatible w LPCSTR).

Definition at line 345 of file Common.h.

◆ CCASTR

typedef const ACSTR CCASTR

True const ANSI/MB string.

Definition at line 350 of file Common.h.

◆ MBSTR

typedef UCHAR* MBSTR

MBCS string.

Definition at line 355 of file Common.h.

◆ MBCSTR

typedef const UCHAR* MBCSTR

const MBCS string.

Definition at line 356 of file Common.h.

◆ CCMBSTR

typedef const MBCSTR CCMBSTR

True const MBCS string.

Definition at line 361 of file Common.h.

◆ WSTR

typedef wchar_t* WSTR

WCHAR string (_UNICODE)(compatible with e.g. LPWSTR).

Definition at line 366 of file Common.h.

◆ WCSTR

typedef const wchar_t* WCSTR

Compatible w LPCWSTR, LPCOLESTR, etc..

Definition at line 367 of file Common.h.

◆ CCWSTR

typedef const WCSTR CCWSTR

True const WCHAR string

Definition at line 372 of file Common.h.