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.

34 lines
726 B

  1. #ifndef __INCLUDE_UNICODE
  2. #define __INCLUDE_UNICODE
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef long SYV;
  7. typedef ALC RECMASK;
  8. typedef WORD SYM;
  9. typedef SYM * LPSYM;
  10. extern const RECMASK rgrecmaskUnicode[94];
  11. #define RecmaskFromUnicode(w) \
  12. (((w) < 0x0021) ? ALC_OTHER : \
  13. ((w) > 0x007E) ? ALC_OTHER : \
  14. rgrecmaskUnicode[w-0x0021])
  15. wchar_t MapFromCompZone(wchar_t wch);
  16. BOOL IsSupportedCode(DWORD cp, wchar_t wch);
  17. BOOL IsHan(DWORD cp, wchar_t wch);
  18. BOOL IsPunc(wchar_t wch);
  19. BOOL IsDigit(wchar_t wch);
  20. BOOL IsAlpha(wchar_t wch);
  21. BOOL IsHiragana(wchar_t wch);
  22. BOOL IsKatakana(wchar_t wch);
  23. BOOL IsBoPoMoFo(wchar_t wch);
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif //__INCLUDE_UNICODE