Team Fortress 2 Source Code as on 22/4/2020
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.

61 lines
1.6 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. /*
  9. *
  10. * Copyright (c) 1998-9
  11. * Dr John Maddock
  12. *
  13. * Permission to use, copy, modify, distribute and sell this software
  14. * and its documentation for any purpose is hereby granted without fee,
  15. * provided that the above copyright notice appear in all copies and
  16. * that both that copyright notice and this permission notice appear
  17. * in supporting documentation. Dr John Maddock makes no representations
  18. * about the suitability of this software for any purpose.
  19. * It is provided "as is" without express or implied warranty.
  20. *
  21. */
  22. /*
  23. * FILE re_coll.h
  24. * VERSION 2.12
  25. * This is an internal header file, do not include directly
  26. */
  27. #ifndef RE_COLL_H
  28. #define RE_COLL_H
  29. #ifndef JM_CFG_H
  30. #include <jm/jm_cfg.h>
  31. #endif
  32. #ifndef RE_STR_H
  33. #include <re_str.h>
  34. #endif
  35. JM_NAMESPACE(__JM)
  36. JM_IX_DECL bool RE_CALL re_lookup_def_collate_name(re_str<char>& buf, const char* name);
  37. void RE_CALL re_init_collate();
  38. void RE_CALL re_free_collate();
  39. void RE_CALL re_update_collate();
  40. JM_IX_DECL bool RE_CALL __re_lookup_collate(re_str<char>& buf, const char* p);
  41. inline bool RE_CALL re_lookup_collate(re_str<char>& buf, const char* first, const char* last)
  42. {
  43. re_str<char> s(first, last);
  44. return __re_lookup_collate(buf, s.c_str());
  45. }
  46. #ifndef JM_NO_WCSTRING
  47. JM_IX_DECL bool RE_CALL re_lookup_collate(re_str<wchar_t>& out, const wchar_t* first, const wchar_t* last);
  48. #endif
  49. JM_END_NAMESPACE
  50. #endif