mirror of
https://github.com/boostorg/iostreams.git
synced 2026-02-22 03:22:24 +00:00
94 lines
2.7 KiB
HTML
Executable File
94 lines
2.7 KiB
HTML
Executable File
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<LINK REL='stylesheet' HREF='../../../../boost.css'>
|
|
<LINK REL='stylesheet' HREF='../theme/iostreams.css'>
|
|
<STYLE>
|
|
PRE { background-color: white; border:0; font-size: 10pt }
|
|
</STYLE>
|
|
<TITLE>Regex OutputFilter Example Output</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<PRE>
|
|
**** Code unfiltered ****
|
|
|
|
/*
|
|
*
|
|
* Copyright (c) 1998-2002
|
|
* Dr John Maddock
|
|
*
|
|
* Permission to use, copy, modify, distribute and sell this software
|
|
* and its documentation for any purpose is hereby granted without fee,
|
|
* provided that the above copyright notice appear in all copies and
|
|
* that both that copyright notice and this permission notice appear
|
|
* in supporting documentation. Dr John Maddock makes no representations
|
|
* about the suitability of this software for any purpose.
|
|
* It is provided "as is" without express or implied warranty.
|
|
*
|
|
*/
|
|
|
|
/*
|
|
* LOCATION: see http://www.boost.org for most recent version.
|
|
* FILE regex_format.hpp
|
|
* VERSION see <boost/version.hpp>
|
|
* DESCRIPTION: Provides formatting output routines for search and replace
|
|
* operations. Note this is an internal header file included
|
|
* by regex.hpp, do not include on its own.
|
|
*/
|
|
|
|
#ifndef BOOST_REGEX_FORMAT_HPP
|
|
#define BOOST_REGEX_FORMAT_HPP
|
|
|
|
|
|
namespace boost{
|
|
|
|
enum format_flags_t{
|
|
format_all = 0, // enable all extentions to sytax
|
|
format_sed = match_max << 1, // sed style replacement.
|
|
format_perl = format_sed << 1, // perl style replacement.
|
|
format_no_copy = format_perl << 1, // don't copy non-matching segments.
|
|
format_first_only = format_no_copy << 1, // Only replace first occurance.
|
|
format_is_if = format_first_only << 1 // internal use only.
|
|
};
|
|
|
|
|
|
**** Code with comments removed ****
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef BOOST_REGEX_FORMAT_HPP
|
|
#define BOOST_REGEX_FORMAT_HPP
|
|
|
|
|
|
namespace boost{
|
|
|
|
enum format_flags_t{
|
|
format_all = 0,
|
|
format_sed = match_max << 1,
|
|
format_perl = format_sed << 1,
|
|
format_no_copy = format_perl << 1,
|
|
format_first_only = format_no_copy << 1,
|
|
format_is_if = format_first_only << 1
|
|
};
|
|
|
|
</PRE>
|
|
|
|
<!-- Begin Footer -->
|
|
|
|
<HR>
|
|
<P CLASS='copyright'>Revised
|
|
<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->
|
|
20 May, 2004
|
|
<!--webbot bot="Timestamp" endspan i-checksum="38504" -->
|
|
</P>
|
|
|
|
<P CLASS='copyright'>© Copyright Jonathan Turkanis, 2004</P>
|
|
<P CLASS='copyright'>
|
|
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <A HREF='http://www.boost.org/LICENSE_1_0.txt'>http://www.boost.org/LICENSE_1_0.txt</A>)
|
|
</P>
|
|
|
|
<!-- End Footer -->
|
|
</BODY>
|