Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Locale and traits class selection

The following macros (see user.hpp) control how Boost.Regex interacts with the user's locale:

macro

description

BOOST_REGEX_USE_C_LOCALE

Forces Boost.Regex to use the global C locale in its traits class support: this is now deprecated in favour of the C++ locale.

BOOST_REGEX_USE_CPP_LOCALE

Forces Boost.Regex to use std::locale in it's default traits class, regular expressions can then be imbued with an instance specific locale. This is the default behaviour on non-Windows platforms.

BOOST_REGEX_NO_W32

Tells Boost.Regex not to use any Win32 API's even when available (implies BOOST_REGEX_USE_CPP_LOCALE unless BOOST_REGEX_USE_C_LOCALE is set).


PrevUpHomeNext