00001 /* ///////////////////////////////////////////////////////////////////////// 00002 * File: stlsoft/shims/access/string/fwd.h 00003 * 00004 * Purpose: Forward declarations for (C-string) string access shims c_str_ptr, 00005 * c_str_ptr_null, c_str_data, c_str_len, c_str_size. 00006 * 00007 * Created: 11th April 2005 00008 * Updated: 10th August 2009 00009 * 00010 * Home: http://stlsoft.org/ 00011 * 00012 * Copyright (c) 2005-2009, Matthew Wilson and Synesis Software 00013 * All rights reserved. 00014 * 00015 * Redistribution and use in source and binary forms, with or without 00016 * modification, are permitted provided that the following conditions are met: 00017 * 00018 * - Redistributions of source code must retain the above copyright notice, this 00019 * list of conditions and the following disclaimer. 00020 * - Redistributions in binary form must reproduce the above copyright notice, 00021 * this list of conditions and the following disclaimer in the documentation 00022 * and/or other materials provided with the distribution. 00023 * - Neither the name(s) of Matthew Wilson and Synesis Software nor the names of 00024 * any contributors may be used to endorse or promote products derived from 00025 * this software without specific prior written permission. 00026 * 00027 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00028 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00029 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00030 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00031 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00032 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00033 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00034 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00035 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00036 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00037 * POSSIBILITY OF SUCH DAMAGE. 00038 * 00039 * ////////////////////////////////////////////////////////////////////// */ 00040 00041 00048 #ifndef STLSOFT_INCL_STLSOFT_SHIMS_ACCESS_STRING_H_FWD 00049 #define STLSOFT_INCL_STLSOFT_SHIMS_ACCESS_STRING_H_FWD 00050 00051 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION 00052 # define STLSOFT_VER_STLSOFT_SHIMS_ACCESS_STRING_H_FWD_MAJOR 2 00053 # define STLSOFT_VER_STLSOFT_SHIMS_ACCESS_STRING_H_FWD_MINOR 0 00054 # define STLSOFT_VER_STLSOFT_SHIMS_ACCESS_STRING_H_FWD_REVISION 3 00055 # define STLSOFT_VER_STLSOFT_SHIMS_ACCESS_STRING_H_FWD_EDIT 18 00056 #endif /* !STLSOFT_DOCUMENTATION_SKIP_SECTION */ 00057 00058 /* ///////////////////////////////////////////////////////////////////////// 00059 * Includes 00060 */ 00061 00062 #ifndef STLSOFT_INCL_STLSOFT_H_STLSOFT 00063 # include <stlsoft/stlsoft.h> 00064 #endif /* !STLSOFT_INCL_STLSOFT_H_STLSOFT */ 00065 00066 /* ///////////////////////////////////////////////////////////////////////// 00067 * Namespace 00068 */ 00069 00070 #ifndef _STLSOFT_NO_NAMESPACE 00071 namespace stlsoft 00072 { 00073 #endif /* _STLSOFT_NO_NAMESPACE */ 00074 00075 /* ///////////////////////////////////////////////////////////////////////// 00076 * Forward declarations 00077 */ 00078 00079 STLSOFT_INLINE ss_char_a_t const* c_str_ptr_a(ss_char_a_t const* s); 00080 STLSOFT_INLINE ss_char_w_t const* c_str_ptr_w(ss_char_w_t const* s); 00081 #ifdef __cplusplus 00082 inline ss_char_a_t const* c_str_ptr(ss_char_a_t const* s); 00083 inline ss_char_w_t const* c_str_ptr(ss_char_w_t const* s); 00084 #endif /* __cplusplus */ 00085 00086 STLSOFT_INLINE ss_char_a_t const* c_str_ptr_null_a(ss_char_a_t const* s); 00087 STLSOFT_INLINE ss_char_w_t const* c_str_ptr_null_w(ss_char_w_t const* s); 00088 #ifdef __cplusplus 00089 inline ss_char_a_t const* c_str_ptr_null(ss_char_a_t const* s); 00090 inline ss_char_w_t const* c_str_ptr_null(ss_char_w_t const* s); 00091 #endif /* __cplusplus */ 00092 00093 STLSOFT_INLINE ss_char_a_t const* c_str_data_a(ss_char_a_t const* s); 00094 STLSOFT_INLINE ss_char_w_t const* c_str_data_w(ss_char_w_t const* s); 00095 #ifdef __cplusplus 00096 inline ss_char_a_t const* c_str_data(ss_char_a_t const* s); 00097 inline ss_char_w_t const* c_str_data(ss_char_w_t const* s); 00098 #endif /* __cplusplus */ 00099 00100 STLSOFT_INLINE ss_size_t c_str_len_a(ss_char_a_t const* s); 00101 STLSOFT_INLINE ss_size_t c_str_len_w(ss_char_w_t const* s); 00102 #ifdef __cplusplus 00103 inline ss_size_t c_str_len(ss_char_a_t const* s); 00104 inline ss_size_t c_str_len(ss_char_w_t const* s); 00105 #endif /* __cplusplus */ 00106 00107 STLSOFT_INLINE ss_size_t c_str_size_a(ss_char_a_t const* s); 00108 STLSOFT_INLINE ss_size_t c_str_size_w(ss_char_w_t const* s); 00109 #ifdef __cplusplus 00110 inline ss_size_t c_str_size(ss_char_a_t const* s); 00111 inline ss_size_t c_str_size(ss_char_w_t const* s); 00112 #endif /* __cplusplus */ 00113 00114 #ifdef __cplusplus 00115 template <ss_typename_param_k S> 00116 inline ss_size_t c_str_size(S const& s); 00117 #endif /* __cplusplus */ 00118 00119 /* ////////////////////////////////////////////////////////////////////// */ 00120 00121 #ifndef _STLSOFT_NO_NAMESPACE 00122 } /* namespace stlsoft */ 00123 #endif /* _STLSOFT_NO_NAMESPACE */ 00124 00125 /* ////////////////////////////////////////////////////////////////////// */ 00126 00127 #endif /* !STLSOFT_INCL_STLSOFT_SHIMS_ACCESS_STRING_H_FWD */ 00128 00129 /* ///////////////////////////// end of file //////////////////////////// */