00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00047 #ifndef FASTFORMAT_INCL_FASTFORMAT_HPP_FASTFORMAT
00048 #define FASTFORMAT_INCL_FASTFORMAT_HPP_FASTFORMAT
00049
00050
00051
00052
00053
00054 #ifndef FASTFORMAT_DOCUMENTATION_SKIP_SECTION
00055 # define FASTFORMAT_VER_FASTFORMAT_HPP_FASTFORMAT_MAJOR 2
00056 # define FASTFORMAT_VER_FASTFORMAT_HPP_FASTFORMAT_MINOR 1
00057 # define FASTFORMAT_VER_FASTFORMAT_HPP_FASTFORMAT_REVISION 1
00058 # define FASTFORMAT_VER_FASTFORMAT_HPP_FASTFORMAT_EDIT 33
00059 #endif
00060
00061
00062
00063
00064
00065 #ifndef __cplusplus
00066 # error This file can only be included in C++ compilation units
00067 #endif
00068
00069
00070
00071
00072
00073 #include <fastformat/fastformat.h>
00074 #include <fastformat/exceptions.hpp>
00075 #include <fastformat/format/standard_flags.hpp>
00076 #ifdef FASTFORMAT_NO_USE_JIT_CACHE
00077 # include <fastformat/internal/format_element.h>
00078 #endif
00079 #include <fastformat/internal/stlsoft.h>
00080 #include <fastformat/quality/contract.h>
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092 #if ( defined(STLSOFT_COMPILER_IS_BORLAND) && \
00093 __BORLANDC__ < 0x0600) || \
00094 defined(STLSOFT_COMPILER_IS_DMC) || \
00095 defined(STLSOFT_COMPILER_IS_WATCOM)
00096 # define FASTFORMAT_NO_FILTER_TYPE_CONVERSION_SHIM_SUPPORT
00097 #endif
00098
00099
00100
00101
00102
00103
00104
00105 #ifndef FASTFORMAT_NO_FILTER_TYPE_CONVERSION_SHIM_SUPPORT
00106 # if defined(STLSOFT_COMPILER_IS_MWERKS) || \
00107 ( defined(STLSOFT_COMPILER_IS_GCC) && \
00108 ( __GNUC__ >= 4 || \
00109 ( __GNUC__ == 3 && \
00110 __GNUC_MINOR__ >= 4))) || \
00111 ( defined(STLSOFT_COMPILER_IS_MSVC) && \
00112 _MSC_VER >= 1310)
00113
00114
00115
00116
00117
00118 # include <stlsoft/string/shim_string.hpp>
00119 # if _STLSOFT_VER >= 0x010a0000 || \
00120 ( defined(_STLSOFT_1_10_VER) && \
00121 _STLSOFT_1_10_VER >= 0x010a0105)
00122 # define FASTFORMAT_SUPPORT_IMPLICIT_SHIM_STRING_ACTION_SHIM
00123 # else
00124 # ifdef STLSOFT_PPF_pragma_message_SUPPORT
00125 # pragma message(__FILE__ "(" STLSOFT_STRINGIZE(__LINE__) "): " "NOTE: Implicit support for shim_string sinks is not enabled. To enable this, download STLSoft 1.10 alpha 5+ and add -I$STLSOFT_1_10/include to your command-line/project include directories _before_ -$STLSOFT/include")
00126 # endif
00127 # endif
00128 # endif
00129 #endif
00130
00131
00132
00133
00134
00135 #include <stlsoft/memory/auto_buffer.hpp>
00136 #include <stlsoft/shims/access/string.hpp>
00137 #ifdef FASTFORMAT_SUPPORT_IMPLICIT_SHIM_STRING_ACTION_SHIM
00138 # include <stlsoft/string/shim_string.hpp>
00139 #endif
00140 #include <stlsoft/string/string_traits.hpp>
00141 #include <stlsoft/string/string_view.hpp>
00142
00143
00144
00145
00146
00147 #if !defined(FASTFORMAT_NO_NAMESPACE)
00148 namespace fastformat
00149 {
00150 #endif
00151
00152
00153
00154
00155
00156 #ifndef FASTFORMAT_DOCUMENTATION_SKIP_SECTION
00157
00160 struct defs
00161 {
00162 #ifdef FASTFORMAT_NO_USE_JIT_CACHE
00163 typedef stlsoft::auto_buffer<ff_format_element_t> format_elements_t;
00164 #endif
00165 typedef stlsoft::auto_buffer<ff_string_slice_t> slices_buffer_t;
00166 };
00167
00168 #endif
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178 #if !defined(FASTFORMAT_NO_NAMESPACE)
00179 }
00180 #endif
00181
00182 #if !defined(FASTFORMAT_NO_IMPLICIT_ACTION_SHIMS)
00183
00184 # if !defined(FASTFORMAT_NO_IMPLICIT_GENERIC_STRING_ACTION_SHIM)
00185 # include <fastformat/shims/action/fmt_slices/generic_string.hpp>
00186 # endif
00187
00188 # if !defined(FASTFORMAT_NO_IMPLICIT_SHIM_STRING_ACTION_SHIM)
00189 # if defined(FASTFORMAT_SUPPORT_IMPLICIT_SHIM_STRING_ACTION_SHIM)
00190 # include <fastformat/sinks/shim_string.hpp>
00191 # endif
00192 # endif
00193
00194 #endif
00195
00196 #if !defined(FASTFORMAT_NO_NAMESPACE)
00197 namespace fastformat
00198 {
00199 #endif
00200
00201
00202
00203
00204
00205 #if !defined(FASTFORMAT_NO_NAMESPACE)
00206 namespace internal
00207 {
00208 namespace helpers
00209 {
00210 #endif
00211
00212 #ifndef FASTFORMAT_DOCUMENTATION_SKIP_SECTION
00213 # define FASTFORMAT_INCLUDING_HELPER_FUNCTIONS
00214 # include <fastformat/internal/generated/helper_functions.hpp>
00215 # undef FASTFORMAT_INCLUDING_HELPER_FUNCTIONS
00216 #endif
00217
00218 #if !defined(FASTFORMAT_NO_NAMESPACE)
00219 }
00220 }
00221 #endif
00222
00223
00224
00225
00226
00227 #if !defined(FASTFORMAT_NO_NAMESPACE)
00228 namespace filters
00229 {
00230 #endif
00231
00233 template< typename T
00234 , typename C
00235 >
00236 inline T const& filter_type(T const& t, T const*, C const volatile*)
00237 {
00238 return t;
00239 }
00240
00241 #if !defined(FASTFORMAT_NO_NAMESPACE)
00242 }
00243 #endif
00244
00245
00246
00247
00248
00249
00250 #if !defined(FASTFORMAT_NO_NAMESPACE)
00251 }
00252 #endif
00253
00254 #if !defined(FASTFORMAT_NO_DEFAULT_CONVERSION_SHIMS)
00255
00256
00257
00258
00259 # if defined(FASTFORMAT_USE_L7D_INTEGER_CONVERSION_SHIMS)
00260 # error Feature not yet implemented. Please complain via sourceforge.net/forum/forum.php?forum_id=612781 and your wish will be granted
00261
00262 # elif !defined(FASTFORMAT_NO_DEFAULT_INTEGER_CONVERSION_SHIMS)
00263 # include <fastformat/shims/conversion/filter_type/fast_integers.hpp>
00264 # endif
00265
00266 # if defined(FASTFORMAT_USE_L7D_REAL_CONVERSION_SHIMS)
00267 # error Feature not yet implemented. Please complain via sourceforge.net/forum/forum.php?forum_id=612781 and your wish will be granted
00268
00269 # endif
00270
00271 # if defined(FASTFORMAT_USE_VOID_POINTERS_CONVERSION_SHIMS)
00272 # include <fastformat/shims/conversion/filter_type/void_pointers.hpp>
00273 # endif
00274
00275 # if defined(FASTFORMAT_USE_CHAR_CONVERSION_SHIMS)
00276 # error Feature not yet implemented. Please complain via sourceforge.net/forum/forum.php?forum_id=612781 and your wish will be granted
00277
00278 # endif
00279
00280 # if defined(FASTFORMAT_USE_BOOLEAN_CONVERSION_SHIMS)
00281 # error Feature not yet implemented. Please complain via sourceforge.net/forum/forum.php?forum_id=612781 and your wish will be granted
00282
00283 # endif
00284
00285 #endif
00286
00287 #if !defined(FASTFORMAT_NO_NAMESPACE)
00288 namespace fastformat
00289 {
00290 #endif
00291
00292
00293
00294
00295
00372 #define FASTFORMAT_INCLUDING_API_FUNCTIONS
00373 #include <fastformat/internal/generated/api_functions.hpp>
00374 #undef FASTFORMAT_INCLUDING_API_FUNCTIONS
00375
00376
00377
00378
00379
00380
00381
00382
00383
00384
00385 #if defined(__DLL__) || \
00386 defined(_WINDLL) || \
00387 defined(_USRDLL)
00388 # define FASTFORMAT_NO_AUTO_INIT
00389 #endif
00390
00391 #if defined(FASTFORMAT_FORCE_AUTO_INIT) || \
00392 !defined(FASTFORMAT_NO_AUTO_INIT)
00393 # include <fastformat/internal/initialiser.hpp>
00394 #endif
00395
00396
00397
00398
00399
00400 #if !defined(FASTFORMAT_NO_NAMESPACE)
00401 }
00402 #endif
00403
00404
00405
00406
00407
00408 #ifdef STLSOFT_CF_PRAGMA_ONCE_SUPPORT
00409 # pragma once
00410 #endif
00411
00412
00413
00414 #endif
00415
00416