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.

64 lines
2.6 KiB

  1. //*******************************************************************************************
  2. //
  3. // Filename : Strings.h
  4. //
  5. // Common defines for Strings stuff
  6. //
  7. // Copyright (c) 1994 - 1996 Microsoft Corporation. All rights reserved
  8. //
  9. //*******************************************************************************************
  10. LPSTR StrChrA(LPCSTR lpStart, WORD wMatch);
  11. LPWSTR StrChrW(LPCWSTR lpStart, WORD wMatch);
  12. LPSTR StrRChrA(LPCSTR lpStart, LPCSTR lpEnd, WORD wMatch);
  13. LPWSTR StrRChrW(LPCWSTR lpStart, LPCWSTR lpEnd, WORD wMatch);
  14. LPSTR StrChrIA(LPCSTR lpStart, WORD wMatch);
  15. LPWSTR StrChrIW(LPCWSTR lpStart, WORD wMatch);
  16. LPSTR StrRChrIA(LPCSTR lpStart, LPCSTR lpEnd, WORD wMatch);
  17. LPWSTR StrRChrIW(LPCWSTR lpStart, LPCWSTR lpEnd, WORD wMatch);
  18. int StrCmpNA(LPCSTR lpStr1, LPCSTR lpStr2, int nChar);
  19. int StrCmpNW(LPCWSTR lpStr1, LPCWSTR lpStr2, int nChar);
  20. int StrCmpNIA(LPCSTR lpStr1, LPCSTR lpStr2, int nChar);
  21. int StrCmpNIW(LPCWSTR lpStr1, LPCWSTR lpStr2, int nChar);
  22. LPSTR StrStrA(LPCSTR lpFirst, LPCSTR lpSrch);
  23. LPWSTR StrStrW(LPCWSTR lpFirst, LPCWSTR lpSrch);
  24. LPSTR StrRStr(LPCSTR lpSource, LPCSTR lpLast, LPCSTR lpSrch);
  25. LPSTR StrStrIA(LPCSTR lpFirst, LPCSTR lpSrch);
  26. LPWSTR StrStrIW(LPCWSTR lpFirst, LPCWSTR lpSrch);
  27. LPSTR StrRStrIA(LPCSTR lpSource, LPCSTR lpLast, LPCSTR lpSrch);
  28. LPWSTR StrRStrIW(LPCWSTR lpSource, LPCWSTR lpLast, LPCWSTR lpSrch);
  29. int StrCSpnA(LPCSTR lpStr, LPCSTR lpSet);
  30. int StrCSpnW(LPCWSTR lpStr, LPCWSTR lpSet);
  31. int StrCSpnIA(LPCSTR lpStr, LPCSTR lpSet);
  32. int StrCSpnIW(LPCWSTR lpStr, LPCWSTR lpSet);
  33. int StrToIntA(LPCSTR lpSrc);
  34. int StrToIntW(LPCWSTR lpSrc);
  35. #ifdef UNICODE
  36. #define StrToInt StrToIntW
  37. #define StrChr StrChrW
  38. #define StrRChr StrRChrW
  39. #define StrChrI StrChrIW
  40. #define StrRChrI StrRChrIW
  41. #define StrCSpn StrCSpnW
  42. #define StrCSpnI StrCSpnIW
  43. #define StrCmpN StrCmpNW
  44. #define StrCmpNI StrCmpNIW
  45. #define StrStr StrStrW
  46. #define StrStrI StrStrIW
  47. #define StrRStrI StrRStrIW
  48. #else
  49. #define StrToInt StrToIntA
  50. #define StrChr StrChrA
  51. #define StrRChr StrRChrA
  52. #define StrChrI StrChrIA
  53. #define StrRChrI StrRChrIA
  54. #define StrCSpn StrCSpnA
  55. #define StrCSpnI StrCSpnIA
  56. #define StrCmpN StrCmpNA
  57. #define StrCmpNI StrCmpNIA
  58. #define StrStr StrStrA
  59. #define StrStrI StrStrIA
  60. #define StrRStrI StrRStrIA
  61. #endif