Ticket #6541: 20120210_fixed_typos_part_2.patch
File 20120210_fixed_typos_part_2.patch, 9.0 KB (added by , 11 years ago) |
---|
-
libs/iostreams/doc/guide/modes.html
29 29 <DL class="page-index"> 30 30 <DT><A href="#overview">Overview</A></DT> 31 31 <DT><A href="#definitions">Definitions of the Modes</A></DT> 32 <DT><A href="#mode_hier chy_diagrams">Mode Hierchy Diagrams</A></DT>32 <DT><A href="#mode_hierarchy_diagrams">Mode Hierarchy Diagrams</A></DT> 33 33 <DT><A href="#mode_tags">Mode Tags</A></DT> 34 34 <DT><A href="#the_metafunction_mode">The metafunction <CODE>mode_of</CODE></A></DT> 35 35 </DL> … … 48 48 </P> 49 49 50 50 <P> 51 The Iostreams library supports eight modes, described in the next section (<I>see also</I> <A CLASS="caption_ref" HREF="#mode_hier chy_diagrams">Figure 2</A>). Of these, four are most import (<I>see </I> <A CLASS="caption_ref" HREF="#mode_hierchy_diagrams">Figure 1</A>). The two modes <A HREF="#input">input</A> and <A HREF="#output">output</A> are by far the most common. Readers new to the Iostreams library should feel free to concentrate primarily on these two modes.51 The Iostreams library supports eight modes, described in the next section (<I>see also</I> <A CLASS="caption_ref" HREF="#mode_hierarchy_diagrams">Figure 2</A>). Of these, four are most import (<I>see </I> <A CLASS="caption_ref" HREF="#mode_hierarchy_diagrams">Figure 1</A>). The two modes <A HREF="#input">input</A> and <A HREF="#output">output</A> are by far the most common. Readers new to the Iostreams library should feel free to concentrate primarily on these two modes. 52 52 </P> 53 53 54 54 <A NAME="definitions"></A> … … 168 168 For more on the selection of modes, see the <A href="../rationale.html">Rationale</A>. 169 169 </P> 170 170 171 <A NAME="mode_hier chy_diagrams"></A>172 <H2>Mode Hier chy Diagrams</H2>171 <A NAME="mode_hierarchy_diagrams"></A> 172 <H2>Mode Hierarchy Diagrams</H2> 173 173 174 174 <P>The following diagrams display the refinement hierarchies among modes.</P> 175 175 -
libs/iostreams/doc/classes/device.html
26 26 <H2>Description</H2> 27 27 28 28 <P> 29 The class template <CODE>device</CODE>, its subcass <CODE>wdevice</CODE> and their specializations <CODE>source</CODE>, <CODE>sink</CODE>, <CODE>wsource</CODE> and <CODE>wsink</CODE> are provided by the Iostreams library to ease the definitions of new models of the various <A HREF="../guide/concepts.html#device_concepts">Device Concepts</A>. These templates and <CODE>typedef</CODE>s are inte ded to be used as base classes for user-defined Devices. They supply the member types <CODE>char_type</CODE> and <CODE>category</CODE> used by the Iostreams library.29 The class template <CODE>device</CODE>, its subcass <CODE>wdevice</CODE> and their specializations <CODE>source</CODE>, <CODE>sink</CODE>, <CODE>wsource</CODE> and <CODE>wsink</CODE> are provided by the Iostreams library to ease the definitions of new models of the various <A HREF="../guide/concepts.html#device_concepts">Device Concepts</A>. These templates and <CODE>typedef</CODE>s are intended to be used as base classes for user-defined Devices. They supply the member types <CODE>char_type</CODE> and <CODE>category</CODE> used by the Iostreams library. 30 30 </P> 31 31 <P> 32 32 The supplied <CODE>category</CODE> member is convertible to <A HREF="../guide/traits.html#category_tags"><CODE>closable_tag</CODE></A> and to <A HREF="../guide/traits.html#category_tags"><CODE>localizable_tag</CODE></A>. This allows users to define models of the concepts <A HREF="../concepts/closable.html">Closable</A> and <A HREF="../concepts/closable.html">Localizable</A> simply by providing definitions of member functions <CODE>close</CODE> and <CODE>imbue</CODE>. -
libs/iostreams/doc/tutorial/container_source.html
53 53 54 54 <P>Here the member type <A HREF="../guide/traits.html#char_type"><CODE>char_type</CODE></A> indicates the type of characters handled by my_source, which will almost always be <CODE>char</CODE> or <CODE>wchar_t</CODE>. The member type <A HREF="../guide/traits.html#char_type">category</A> indicates which of the fundamental i/o operations are supported by the device. The category tag <A HREF="../guide/traits.html#category_tags"><CODE>source_tag</CODE></A> indicates that only <A HREF="../functions/read.html"><CODE>read</CODE></A> is supported.</P> 55 55 56 <P>The member function <CODE>read</CODE> reads up to <CODE>n</CODE> character into the buffer <CODE>s</CODE> and returns the number of characterread, unless that number is <CODE>0</CODE> and end-of-stream has been reached, in which case the special value <CODE>-1</CODE> is returned. In general, a Source's member function <CODE>read</CODE> may return fewer characters than requested even though end-of-stream has not been reached; such Sources are called <I>non-blocking</I>. Non-blocking Devices do not interact well with standard streams and stream buffers, however, so most devices should be <A HREF="../concepts/blocking.html">Blocking</A>. <I>See</I> <A HREF="../guide/asynchronous.html">Asynchronous and Non-Blocking I/O</A>.</P>56 <P>The member function <CODE>read</CODE> reads up to <CODE>n</CODE> characters into the buffer <CODE>s</CODE> and returns the number of characters read, unless that number is <CODE>0</CODE> and end-of-stream has been reached, in which case the special value <CODE>-1</CODE> is returned. In general, a Source's member function <CODE>read</CODE> may return fewer characters than requested even though end-of-stream has not been reached; such Sources are called <I>non-blocking</I>. Non-blocking Devices do not interact well with standard streams and stream buffers, however, so most devices should be <A HREF="../concepts/blocking.html">Blocking</A>. <I>See</I> <A HREF="../guide/asynchronous.html">Asynchronous and Non-Blocking I/O</A>.</P> 57 57 58 58 <P>You could also write the above example as follows:</P> 59 59 -
libs/iostreams/doc/tutorial/writing_filters.html
27 27 <A NAME="filter_overview"></A> 28 28 <H2>2.2.1. Overview: InputFilters, OutputFilters and Filter Helpers</H2> 29 29 30 <P>Filters are used to modify character sequences. For example, you might use a filter to replace all instances of one word with another, to convert all alphabetic characters to lower case or to encrypt a document. Sometimes the filter is a mere observer; in this case the filtered character sequence if the same as the unfiltered sequence. For example, you might use a filter to count the number of occur ences of a given word.</P>30 <P>Filters are used to modify character sequences. For example, you might use a filter to replace all instances of one word with another, to convert all alphabetic characters to lower case or to encrypt a document. Sometimes the filter is a mere observer; in this case the filtered character sequence if the same as the unfiltered sequence. For example, you might use a filter to count the number of occurrences of a given word.</P> 31 31 32 32 33 33 <A NAME="input_filters_and_output_filters"></A> -
libs/iostreams/doc/concepts/multi_character.html
1 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2 2 <HTML> 3 3 <HEAD> 4 <TITLE>Mu tli-Character Filter</TITLE>4 <TITLE>Multi-Character Filter</TITLE> 5 5 <LINK REL="stylesheet" HREF="../../../../boost.css"> 6 6 <LINK REL="stylesheet" HREF="../theme/iostreams.css"> 7 7 </HEAD> … … 9 9 10 10 <!-- Begin Banner --> 11 11 12 <H1 CLASS="title">Mu tli-Character Filter</H1>12 <H1 CLASS="title">Multi-Character Filter</H1> 13 13 <HR CLASS="banner"> 14 14 15 15 <!-- End Banner --> 16 16 17 17 <H2>Description</H2> 18 18 19 <P><A HREF="filter.html">Filter</A> which provides access to its controlled sequence or sequences several characters at a time. The difference between a Filter which is Mu tli-Character and one which is not is reflected in the specifications of the various Filter refinements. <I>See</I>, <I>e.g.</I>, <A HREF="input_filter.html">InputFilter</A> and <A HREF="output_filter.html">OutputFilter</A>.</P>19 <P><A HREF="filter.html">Filter</A> which provides access to its controlled sequence or sequences several characters at a time. The difference between a Filter which is Multi-Character and one which is not is reflected in the specifications of the various Filter refinements. <I>See</I>, <I>e.g.</I>, <A HREF="input_filter.html">InputFilter</A> and <A HREF="output_filter.html">OutputFilter</A>.</P> 20 20 21 21 <H2>Refinement of</H2> 22 22