Source code of Windows XP (NT5)
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.
|
|
// CaseMap.h -- Header for the unicode case mapping routines for locale 0x0409
#ifndef __CASEMAP_H__
#define __CASEMAP_H__
/*
These routines implement the case mapping defined for Unicode in the US English locale. The implementation does not rely on operating system facilities and is therefore portable. We use these interfaces to do case insensitive comparisons in our file-system B-Trees.
*/
WCHAR WC_To_0x0409_Upper(WCHAR wc); // Maps one Unicode code point to upper case.
WCHAR WC_To_0x0409_Lower(WCHAR wc); // Maps one Unicode code point to lower case.
inline BOOL Is_WC_Letter(WCHAR wc) { return (wc != WC_To_0x0409_Upper(wc) || wc != WC_To_0x0409_Lower(wc)); }
// wcsicmp_0x0409 is a case insensitive Unicode string comparison routine.
INT wcsicmp_0x0409(const WCHAR * pwcLeft, const WCHAR *pwcRight);
#endif // __CASEMAP_H__
|