00001 /* ///////////////////////////////////////////////////////////////////////// 00002 * File: stlsoft/string/slice_functions.hpp 00003 * 00004 * Purpose: String slice functions. 00005 * 00006 * Created: 25th April 2005 00007 * Updated: 10th August 2009 00008 * 00009 * Thanks: To Pablo Aguilar for inspiration for these functions, and 00010 * collaboration on their implementation. 00011 * 00012 * Home: http://stlsoft.org/ 00013 * 00014 * Copyright (c) 2005-2009, Matthew Wilson and Synesis Software 00015 * Copyright (c) 2005, Pablo Aguilar 00016 * All rights reserved. 00017 * 00018 * Redistribution and use in source and binary forms, with or without 00019 * modification, are permitted provided that the following conditions are met: 00020 * 00021 * - Redistributions of source code must retain the above copyright notice, this 00022 * list of conditions and the following disclaimer. 00023 * - Redistributions in binary form must reproduce the above copyright notice, 00024 * this list of conditions and the following disclaimer in the documentation 00025 * and/or other materials provided with the distribution. 00026 * - Neither the name(s) of Matthew Wilson and Synesis Software nor the names of 00027 * any contributors may be used to endorse or promote products derived from 00028 * this software without specific prior written permission. 00029 * 00030 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00031 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00032 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00033 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00034 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00035 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00036 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00037 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00038 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00039 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00040 * POSSIBILITY OF SUCH DAMAGE. 00041 * 00042 * ////////////////////////////////////////////////////////////////////// */ 00043 00044 00051 #ifndef STLSOFT_INCL_STLSOFT_STRING_HPP_SLICE_FUNCTIONS 00052 #define STLSOFT_INCL_STLSOFT_STRING_HPP_SLICE_FUNCTIONS 00053 00054 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION 00055 # define STLSOFT_VER_INCL_STLSOFT_STRING_HPP_SLICE_FUNCTIONS_MAJOR 2 00056 # define STLSOFT_VER_INCL_STLSOFT_STRING_HPP_SLICE_FUNCTIONS_MINOR 0 00057 # define STLSOFT_VER_INCL_STLSOFT_STRING_HPP_SLICE_FUNCTIONS_REVISION 1 00058 # define STLSOFT_VER_INCL_STLSOFT_STRING_HPP_SLICE_FUNCTIONS_EDIT 13 00059 #endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */ 00060 00061 /* ///////////////////////////////////////////////////////////////////////// 00062 * Compatibility 00063 */ 00064 00065 /* 00066 [Incompatibilies-start] 00067 STLSOFT_COMPILER_IS_MWERKS: __MWERKS__<0x3000 00068 STLSOFT_COMPILER_IS_WATCOM: 00069 [Incompatibilies-end] 00070 */ 00071 00072 /* ///////////////////////////////////////////////////////////////////////// 00073 * Includes 00074 */ 00075 00076 #ifndef STLSOFT_INCL_STLSOFT_H_STLSOFT 00077 # include <stlsoft/stlsoft.h> 00078 #endif /* !STLSOFT_INCL_STLSOFT_H_STLSOFT */ 00079 #if defined(STLSOFT_COMPILER_IS_MWERKS) && \ 00080 ((__MWERKS__ & 0xff00) < 0x3000) 00081 # error stlsoft/string/slice_functions.hpp not compatible with Metrowerks 7.x (v2.4) 00082 #endif /* compiler */ 00083 #ifndef STLSOFT_INCL_STLSOFT_STRING_HPP_VIEW_SLICE_FUNCTIONS 00084 # include <stlsoft/string/view_slice_functions.hpp> 00085 #endif /* !STLSOFT_INCL_STLSOFT_STRING_HPP_VIEW_SLICE_FUNCTIONS */ 00086 #ifndef STLSOFT_INCL_STLSOFT_STRING_HPP_CONTAINER_SLICE_FUNCTIONS 00087 # include <stlsoft/string/container_slice_functions.hpp> 00088 #endif /* !STLSOFT_INCL_STLSOFT_STRING_HPP_CONTAINER_SLICE_FUNCTIONS */ 00089 00090 /* ////////////////////////////////////////////////////////////////////// */ 00091 00092 #endif /* !STLSOFT_INCL_STLSOFT_STRING_HPP_SLICE_FUNCTIONS */ 00093 00094 /* ///////////////////////////// end of file //////////////////////////// */