Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

44 lines
1.6 KiB

//+-----------------------------------------------------------------------
//
// Wide Character Routines
// Copyright (C) Microsoft Corporation, 1996, 1997
//
// File: wch.h
//
// Contents: Declaration of wide characters routines.
// These routines are being used to avoid dragging in
// the initialisation chunk of the C run-time library
// that would be required by library routines such as
// wcsicmp() etc.
//
//------------------------------------------------------------------------
extern int wch_icmp(LPWCH pwch1, LPWCH pwch2);
extern int wch_incmp(LPWCH pwch1, LPWCH pwch2, DWORD dwMaxCmp);
extern int wch_cmp(LPWCH pwch1, LPWCH pwch2);
extern int wch_ncmp(LPWCH pwch1, LPWCH pwch2, DWORD dwMaxCmp);
extern int wch_len(LPWCH pwch);
extern void wch_cpy(LPWCH pwch1, LPWCH pwch2);
extern LPWCH wch_chr(LPWCH pwch, WCHAR wch);
extern boolean wch_wildcardMatch(LPWCH pwchText, LPWCH pwchPattern,
boolean fCaseSensitive);
//------------------------------------------------------------------------
//
// Function: wch_ncpy()
//
// Synopsis: Perform an n-character wide-string copy.
// Copies 'dwSize' characters from 'pwchSrc' to 'pwchDest'.
//
// Arguments: pwchDesc Destination buffer.
// pwchSrc Source string.
// dwSize Number of characters to copy.
//
// Returns: Nothing.
//
//------------------------------------------------------------------------
inline void wch_ncpy(LPWCH pwchDest, LPWCH pwchSrc, DWORD dwSize)
{
memcpy(pwchDest, pwchSrc, dwSize * sizeof(WCHAR));
}