InternalStringNoCaseComparer.h 861 B

12345678910111213141516171819202122
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. #pragma once
  6. namespace JsUtil
  7. {
  8. template <typename T>
  9. class NoCaseComparer;
  10. template <>
  11. class NoCaseComparer<JsUtil::CharacterBuffer<WCHAR>>
  12. {
  13. public:
  14. static bool Equals(JsUtil::CharacterBuffer<WCHAR> const& x, JsUtil::CharacterBuffer<WCHAR> const& y);
  15. static uint GetHashCode(JsUtil::CharacterBuffer<WCHAR> const& i);
  16. private:
  17. static int Compare(JsUtil::CharacterBuffer<WCHAR> const& x, JsUtil::CharacterBuffer<WCHAR> const& y);
  18. };
  19. }