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.

69 lines
1.7 KiB

  1. //******************************************************************************
  2. //
  3. // Microsoft Confidential. Copyright (c) Microsoft Corporation 1999. All rights reserved
  4. //
  5. // File: RsopUtil.h
  6. //
  7. // Description:
  8. //
  9. // History: 8-20-99 leonardm Created
  10. //
  11. //******************************************************************************
  12. #ifndef RSOPUTIL_H__A7BD2656_0F51_4bf7_847E_92C36CD23D59__INCLUDED_
  13. #define RSOPUTIL_H__A7BD2656_0F51_4bf7_847E_92C36CD23D59__INCLUDED_
  14. //******************************************************************************
  15. //
  16. // Class:
  17. //
  18. // Description:
  19. //
  20. // History: 8/20/99 leonardm Created.
  21. //
  22. //******************************************************************************
  23. class CWString
  24. {
  25. private:
  26. WCHAR* _pW;
  27. int _len;
  28. bool _bState;
  29. void Reset();
  30. public:
  31. CWString();
  32. CWString(const WCHAR* s);
  33. CWString(const CWString& s);
  34. ~CWString();
  35. CWString& operator = (const CWString& s);
  36. CWString& operator = (const WCHAR* s);
  37. operator const WCHAR* () const;
  38. operator WCHAR* () const;
  39. CWString& operator += (const CWString& s);
  40. CWString operator + (const CWString& s) const;
  41. friend CWString operator + (const WCHAR* s1, const CWString& s2);
  42. bool operator == (const CWString& s) const;
  43. bool operator == (const WCHAR* s) const;
  44. bool operator != (const CWString& s) const;
  45. bool operator != (const WCHAR* s) const;
  46. bool CaseSensitiveCompare(const CWString& s) const;
  47. int length() const;
  48. bool ValidString() const;
  49. };
  50. CWString operator + (const WCHAR* s1, const CWString& s2);
  51. #endif // #ifndef RSOPUTIL_H__A7BD2656_0F51_4bf7_847E_92C36CD23D59__INCLUDED_