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.

50 lines
1.4 KiB

  1. //+-------------------------------------------------------------------------
  2. // Microsoft Windows
  3. //
  4. // Copyright (C) Microsoft Corporation, 1996 - 1999
  5. //
  6. // File: pkistr.h
  7. //
  8. // Contents: PKI String Functions
  9. //
  10. // APIs: Pki_wcsicmp
  11. // Pki_wcsnicmp
  12. // Pki_stricmp
  13. // Pki_strnicmp
  14. //
  15. // History: 21-May-99 philh created
  16. //--------------------------------------------------------------------------
  17. #ifndef __PKISTR_H__
  18. #define __PKISTR_H__
  19. #include <string.h>
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. //+-------------------------------------------------------------------------
  24. // CompareString is called with the following locale:
  25. // MAKELCID(MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US), SORT_DEFAULT)
  26. //--------------------------------------------------------------------------
  27. int __cdecl Pki_wcsicmp(const wchar_t *pwsz1, const wchar_t *pwsz2);
  28. int __cdecl Pki_wcsnicmp(const wchar_t *pwsz1, const wchar_t *pwsz2,
  29. size_t cch);
  30. int __cdecl Pki_stricmp(const char *psz1, const char *psz2);
  31. int __cdecl Pki_strnicmp(const char *psz1, const char *psz2,
  32. size_t cch);
  33. #define _wcsicmp(s1,s2) Pki_wcsicmp(s1,s2)
  34. #define _wcsnicmp(s1,s2,cch) Pki_wcsnicmp(s1,s2,cch)
  35. #define _stricmp(s1,s2) Pki_stricmp(s1,s2)
  36. #define _strnicmp(s1,s2,cch) Pki_strnicmp(s1,s2,cch)
  37. #ifdef __cplusplus
  38. } // Balance extern "C" above
  39. #endif
  40. #endif