⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.hpp

📁 CGAL is a collaborative effort of several sites in Europe and Israel. The goal is to make the most i
💻 HPP
📖 第 1 页 / 共 2 页
字号:
/* * * Copyright (c) 1998-2002 * Dr John Maddock * * Use, modification and distribution are subject to the * Boost Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) * */ /*  *   LOCATION:    see http://www.boost.org for most recent version.  *   FILE         config.hpp  *   VERSION      see <boost/version.hpp>  *   DESCRIPTION: regex extended config setup.  */#ifndef BOOST_REGEX_CONFIG_HPP#define BOOST_REGEX_CONFIG_HPP/* Borland C++ Fix/error check this has to go *before* we include any std lib headers:*/#if defined(__BORLANDC__)#  include <boost/regex/config/borland.hpp>#endif/***************************************************************************** * *  Include all the headers we need here: * ****************************************************************************/#ifdef __cplusplus#  ifndef BOOST_REGEX_USER_CONFIG#     define BOOST_REGEX_USER_CONFIG <boost/regex/user.hpp>#  endif#  include BOOST_REGEX_USER_CONFIG#  include <cstdlib>#  include <cstddef>#  include <cstdio>#  include <clocale>#  include <cassert>#  include <string>#  include <stdexcept>#  include <iterator>#  include <iosfwd>#  include <vector>#  include <boost/config.hpp>#  include <boost/cstdint.hpp>#  include <boost/regex/config/allocator.hpp>#  include <boost/regex/config/cstring.hpp>#  include <boost/throw_exception.hpp>#  include <boost/scoped_ptr.hpp>#  ifndef BOOST_NO_STD_LOCALE#     include <locale>#  endif#else   /*   * C build,   * don't include <boost/config.hpp> because that may   * do C++ specific things in future...   */#  include <stdlib.h>#  include <stddef.h>#  ifdef _MSC_VER#     define BOOST_MSVC _MSC_VER#  endif#endif/***************************************************************************** * *  Boilerplate regex config options: * ****************************************************************************//* Obsolete macro, use BOOST_VERSION instead: */#define BOOST_RE_VERSION 320/* fix: */#if defined(_UNICODE) && !defined(UNICODE)#define UNICODE#endif/** If there isn't good enough wide character support then there will* be no wide character regular expressions:*/#if (defined(BOOST_NO_CWCHAR) || defined(BOOST_NO_CWCTYPE) || defined(BOOST_NO_STD_WSTRING))#  if !defined(BOOST_NO_WREGEX)#     define BOOST_NO_WREGEX#  endif#else#  if defined(__sgi) && (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION))      /* STLPort on IRIX is misconfigured: <cwctype> does not compile      * as a temporary fix include <wctype.h> instead and prevent inclusion      * of STLPort version of <cwctype> */#     include <wctype.h>#     define __STLPORT_CWCTYPE#     define _STLP_CWCTYPE#  endif#ifdef __cplusplus#  include <boost/regex/config/cwchar.hpp>#endif#endif/** If Win32 support has been disabled for boost in general, then* it is for regex in particular:*/#if defined(BOOST_DISABLE_WIN32) && !defined(BOOST_REGEX_NO_W32)#  define BOOST_REGEX_NO_W32#endif/* some versions of gcc can't merge template instances: */#if defined(__CYGWIN__)#  define BOOST_REGEX_NO_TEMPLATE_SWITCH_MERGE#endif/* fix problems with bool as a macro,* this probably doesn't affect any current compilers: */#if defined(bool) || defined(true) || defined(false)#  define BOOST_REGEX_NO_BOOL#endif/* We don't make our templates external if the compiler can't handle it: */#if (defined(BOOST_NO_MEMBER_FUNCTION_SPECIALIZATIONS) || defined(__HP_aCC) || defined(__MWERKS__) || defined(__COMO__) || defined(BOOST_INTEL))\   && !defined(BOOST_MSVC) && !defined(__BORLANDC__)#  define BOOST_REGEX_NO_EXTERNAL_TEMPLATES#endif/* disable our own file-iterators and mapfiles if we can't support them: */#if !defined(BOOST_HAS_DIRENT_H) && !(defined(_WIN32) && !defined(BOOST_REGEX_NO_W32))#  define BOOST_REGEX_NO_FILEITER#endif#ifdef __cplusplus#ifndef MB_CUR_MAX// yuk!// better make a conservative guess!#define MB_CUR_MAX 10#endifnamespace boost{ namespace re_detail{#ifdef BOOST_NO_STD_DISTANCEtemplate <class T>std::ptrdiff_t distance(const T& x, const T& y){ return y - x; }#elseusing std::distance;#endif}}#ifdef BOOST_REGEX_NO_BOOL#  define BOOST_REGEX_MAKE_BOOL(x) static_cast<bool>((x) ? true : false)#else#  ifdef BOOST_MSVC      // warning suppression with VC6:#     pragma warning(disable: 4800)#  endif#  define BOOST_REGEX_MAKE_BOOL(x) static_cast<bool>(x)#endif#endif /* __cplusplus *//* backwards compatibitity: */#if defined(BOOST_RE_NO_LIB)#  define BOOST_REGEX_NO_LIB#endif#if defined(__GNUC__) && (defined(_WIN32) || defined(__CYGWIN__))// gcc on win32 has problems merging switch statements in templates:#  define BOOST_REGEX_NO_TEMPLATE_SWITCH_MERGE// gcc on win32 has problems if you include <windows.h>// (sporadically generates bad code).#  define BOOST_REGEX_USE_C_LOCALE#  define BOOST_REGEX_NO_W32#endif#if defined(__COMO__) && !defined(BOOST_REGEX_NO_W32) && !defined(_MSC_EXTENSIONS)#  define BOOST_REGEX_NO_W32#endif/***************************************************************************** * *  Wide character workarounds: * ****************************************************************************/#ifdef __cplusplus#if defined(BOOST_MSVC) && (BOOST_MSVC >= 1300) && !defined(BOOST_REGEX_V3) && !(defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION))#  define BOOST_REGEX_HAS_SHORT_WCHAR_Tnamespace boost{ typedef __wchar_t regex_wchar_type; }#elsenamespace boost{ typedef wchar_t regex_wchar_type; }#endif#endif/***************************************************************************** * *  Set up dll import/export options: * ****************************************************************************/#if defined(BOOST_HAS_DECLSPEC) && (defined(BOOST_REGEX_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)) && !defined(BOOST_REGEX_STATIC_LINK)#  if defined(BOOST_REGEX_SOURCE)#     define BOOST_REGEX_DECL __declspec(dllexport)#     define BOOST_REGEX_BUILD_DLL#  else#     define BOOST_REGEX_DECL __declspec(dllimport)#  endif#endif#ifndef BOOST_REGEX_DECL#  define BOOST_REGEX_DECL#endif#if !defined(BOOST_REGEX_NO_LIB) && !defined(BOOST_REGEX_SOURCE) && !defined(BOOST_ALL_NO_LIB) && defined(__cplusplus)#  define BOOST_LIB_NAME boost_regex#  if defined(BOOST_REGEX_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)#     define BOOST_DYN_LINK#  endif#ifdef BOOST_REGEX_DIAG#  define BOOST_LIB_DIAGNOSTIC#endif#  include <boost/config/auto_link.hpp>#endif/***************************************************************************** * *  Set up function call type: * ****************************************************************************/#if defined(BOOST_MSVC) && (BOOST_MSVC >= 1200) && defined(_MSC_EXTENSIONS)#if defined(_DEBUG) || defined(__MSVC_RUNTIME_CHECKS)#  define BOOST_REGEX_CALL __cdecl#else#  define BOOST_REGEX_CALL __fastcall#endif#  define BOOST_REGEX_CCALL __cdecl#endif#if defined(__BORLANDC__) && !defined(BOOST_DISABLE_WIN32)#  define BOOST_REGEX_CALL __fastcall#  define BOOST_REGEX_CCALL __stdcall#endif#ifndef BOOST_REGEX_CALL#  define BOOST_REGEX_CALL#endif#ifndef BOOST_REGEX_CCALL#define BOOST_REGEX_CCALL#endif/***************************************************************************** * *  Set up localisation model: * ****************************************************************************//* backwards compatibility: */#ifdef BOOST_RE_LOCALE_C#  define BOOST_REGEX_USE_C_LOCALE#endif#ifdef BOOST_RE_LOCALE_CPP#  define BOOST_REGEX_USE_CPP_LOCALE#endif/* Win32 defaults to native Win32 locale: */#if defined(_WIN32) && !defined(BOOST_REGEX_USE_WIN32_LOCALE) && !defined(BOOST_REGEX_USE_C_LOCALE) && !defined(BOOST_REGEX_USE_CPP_LOCALE) && !defined(BOOST_REGEX_NO_W32)#  define BOOST_REGEX_USE_WIN32_LOCALE#endif/* otherwise use C locale: */#if !defined(BOOST_REGEX_USE_WIN32_LOCALE) && !defined(BOOST_REGEX_USE_C_LOCALE) && !defined(BOOST_REGEX_USE_CPP_LOCALE)#  define BOOST_REGEX_USE_C_LOCALE#endif#if defined(_WIN32) && !defined(BOOST_REGEX_NO_W32)#  include <windows.h>#endif#ifdef MAXPATH#  define BOOST_REGEX_MAX_PATH MAXPATH#elif defined(MAX_PATH)#  define BOOST_REGEX_MAX_PATH MAX_PATH#elif defined(FILENAME_MAX)#  define BOOST_REGEX_MAX_PATH FILENAME_MAX#else#  define BOOST_REGEX_MAX_PATH 200#endif#ifndef BOOST_REGEX_MAX_STATE_COUNT#  define BOOST_REGEX_MAX_STATE_COUNT 100000000#endif/***************************************************************************** * *  Error Handling for exception free compilers: * ****************************************************************************/#ifdef BOOST_NO_EXCEPTIONS/*

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -