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.

94 lines
3.9 KiB

  1. /* /////////////////////////////////////////////////////////////////////////
  2. * File: stlsoft/string/slice_functions.hpp
  3. *
  4. * Purpose: String slice functions.
  5. *
  6. * Created: 25th April 2005
  7. * Updated: 10th August 2009
  8. *
  9. * Thanks: To Pablo Aguilar for inspiration for these functions, and
  10. * collaboration on their implementation.
  11. *
  12. * Home: http://stlsoft.org/
  13. *
  14. * Copyright (c) 2005-2009, Matthew Wilson and Synesis Software
  15. * Copyright (c) 2005, Pablo Aguilar
  16. * All rights reserved.
  17. *
  18. * Redistribution and use in source and binary forms, with or without
  19. * modification, are permitted provided that the following conditions are met:
  20. *
  21. * - Redistributions of source code must retain the above copyright notice, this
  22. * list of conditions and the following disclaimer.
  23. * - Redistributions in binary form must reproduce the above copyright notice,
  24. * this list of conditions and the following disclaimer in the documentation
  25. * and/or other materials provided with the distribution.
  26. * - Neither the name(s) of Matthew Wilson and Synesis Software nor the names of
  27. * any contributors may be used to endorse or promote products derived from
  28. * this software without specific prior written permission.
  29. *
  30. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  31. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  32. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  33. * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  34. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  35. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  36. * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  37. * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  38. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  39. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  40. * POSSIBILITY OF SUCH DAMAGE.
  41. *
  42. * ////////////////////////////////////////////////////////////////////// */
  43. /** \file stlsoft/string/slice_functions.hpp
  44. *
  45. * \brief [C++ only] String slice functions
  46. * (\ref group__library__string "String" Library).
  47. */
  48. #ifndef STLSOFT_INCL_STLSOFT_STRING_HPP_SLICE_FUNCTIONS
  49. #define STLSOFT_INCL_STLSOFT_STRING_HPP_SLICE_FUNCTIONS
  50. #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
  51. # define STLSOFT_VER_INCL_STLSOFT_STRING_HPP_SLICE_FUNCTIONS_MAJOR 2
  52. # define STLSOFT_VER_INCL_STLSOFT_STRING_HPP_SLICE_FUNCTIONS_MINOR 0
  53. # define STLSOFT_VER_INCL_STLSOFT_STRING_HPP_SLICE_FUNCTIONS_REVISION 1
  54. # define STLSOFT_VER_INCL_STLSOFT_STRING_HPP_SLICE_FUNCTIONS_EDIT 13
  55. #endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */
  56. /* /////////////////////////////////////////////////////////////////////////
  57. * Compatibility
  58. */
  59. /*
  60. [Incompatibilies-start]
  61. STLSOFT_COMPILER_IS_MWERKS: __MWERKS__<0x3000
  62. STLSOFT_COMPILER_IS_WATCOM:
  63. [Incompatibilies-end]
  64. */
  65. /* /////////////////////////////////////////////////////////////////////////
  66. * Includes
  67. */
  68. #ifndef STLSOFT_INCL_STLSOFT_H_STLSOFT
  69. # include <stlsoft/stlsoft.h>
  70. #endif /* !STLSOFT_INCL_STLSOFT_H_STLSOFT */
  71. #if defined(STLSOFT_COMPILER_IS_MWERKS) && \
  72. ((__MWERKS__ & 0xff00) < 0x3000)
  73. # error stlsoft/string/slice_functions.hpp not compatible with Metrowerks 7.x (v2.4)
  74. #endif /* compiler */
  75. #ifndef STLSOFT_INCL_STLSOFT_STRING_HPP_VIEW_SLICE_FUNCTIONS
  76. # include <stlsoft/string/view_slice_functions.hpp>
  77. #endif /* !STLSOFT_INCL_STLSOFT_STRING_HPP_VIEW_SLICE_FUNCTIONS */
  78. #ifndef STLSOFT_INCL_STLSOFT_STRING_HPP_CONTAINER_SLICE_FUNCTIONS
  79. # include <stlsoft/string/container_slice_functions.hpp>
  80. #endif /* !STLSOFT_INCL_STLSOFT_STRING_HPP_CONTAINER_SLICE_FUNCTIONS */
  81. /* ////////////////////////////////////////////////////////////////////// */
  82. #endif /* !STLSOFT_INCL_STLSOFT_STRING_HPP_SLICE_FUNCTIONS */
  83. /* ///////////////////////////// end of file //////////////////////////// */