summaryrefslogtreecommitdiff
path: root/libs/algorithm/string/doc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/algorithm/string/doc')
-rw-r--r--libs/algorithm/string/doc/concept.xml2
-rw-r--r--libs/algorithm/string/doc/credits.xml2
-rw-r--r--libs/algorithm/string/doc/design.xml2
-rw-r--r--libs/algorithm/string/doc/environment.xml2
-rw-r--r--libs/algorithm/string/doc/intro.xml2
-rw-r--r--libs/algorithm/string/doc/quickref.xml2
-rw-r--r--libs/algorithm/string/doc/rationale.xml2
-rw-r--r--libs/algorithm/string/doc/release_notes.xml2
-rw-r--r--libs/algorithm/string/doc/string_algo.xml2
-rw-r--r--libs/algorithm/string/doc/usage.xml17
10 files changed, 20 insertions, 15 deletions
diff --git a/libs/algorithm/string/doc/concept.xml b/libs/algorithm/string/doc/concept.xml
index 267ad79288..b567975351 100644
--- a/libs/algorithm/string/doc/concept.xml
+++ b/libs/algorithm/string/doc/concept.xml
@@ -7,7 +7,7 @@
(See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
-->
-<section id="string_algo.concept" last-revision="$Date: 2008-06-19 08:07:24 -0400 (Thu, 19 Jun 2008) $">
+<section id="string_algo.concept" last-revision="$Date: 2008-06-19 05:07:24 -0700 (Thu, 19 Jun 2008) $">
<title>Concepts</title>
<using-namespace name="boost"/>
diff --git a/libs/algorithm/string/doc/credits.xml b/libs/algorithm/string/doc/credits.xml
index 87e60d8191..c8959e9ab2 100644
--- a/libs/algorithm/string/doc/credits.xml
+++ b/libs/algorithm/string/doc/credits.xml
@@ -7,7 +7,7 @@
(See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
-->
-<section id="string_algo.credits" last-revision="$Date: 2008-02-27 15:00:24 -0500 (Wed, 27 Feb 2008) $">
+<section id="string_algo.credits" last-revision="$Date: 2008-02-27 12:00:24 -0800 (Wed, 27 Feb 2008) $">
<title>Credits</title>
<section id="string_algo.ack">
<title>Acknowledgments</title>
diff --git a/libs/algorithm/string/doc/design.xml b/libs/algorithm/string/doc/design.xml
index a5dcd625ac..2d614a563b 100644
--- a/libs/algorithm/string/doc/design.xml
+++ b/libs/algorithm/string/doc/design.xml
@@ -8,7 +8,7 @@
(See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
-->
-<section id="string_algo.design" last-revision="$Date: 2010-04-21 19:00:35 -0400 (Wed, 21 Apr 2010) $">
+<section id="string_algo.design" last-revision="$Date: 2010-04-21 16:00:35 -0700 (Wed, 21 Apr 2010) $">
<title>Design Topics</title>
<using-namespace name="boost"/>
diff --git a/libs/algorithm/string/doc/environment.xml b/libs/algorithm/string/doc/environment.xml
index 300fbfb69b..3b65ce99d3 100644
--- a/libs/algorithm/string/doc/environment.xml
+++ b/libs/algorithm/string/doc/environment.xml
@@ -7,7 +7,7 @@
(See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
-->
-<section id="string_algo.env" last-revision="$Date: 2008-02-27 15:00:24 -0500 (Wed, 27 Feb 2008) $">
+<section id="string_algo.env" last-revision="$Date: 2008-02-27 12:00:24 -0800 (Wed, 27 Feb 2008) $">
<title>Environment</title>
<section>
<title>Build</title>
diff --git a/libs/algorithm/string/doc/intro.xml b/libs/algorithm/string/doc/intro.xml
index 9b853dcb79..b2afe661c6 100644
--- a/libs/algorithm/string/doc/intro.xml
+++ b/libs/algorithm/string/doc/intro.xml
@@ -8,7 +8,7 @@
(See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
-->
-<section id="string_algo.intro" last-revision="$Date: 2008-02-27 15:00:24 -0500 (Wed, 27 Feb 2008) $">
+<section id="string_algo.intro" last-revision="$Date: 2008-02-27 12:00:24 -0800 (Wed, 27 Feb 2008) $">
<title>Introduction</title>
<para>
diff --git a/libs/algorithm/string/doc/quickref.xml b/libs/algorithm/string/doc/quickref.xml
index c34b78257c..8f495bc015 100644
--- a/libs/algorithm/string/doc/quickref.xml
+++ b/libs/algorithm/string/doc/quickref.xml
@@ -7,7 +7,7 @@
(See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
-->
-<section id="string_algo.quickref" last-revision="$Date: 2012-01-15 11:49:25 -0500 (Sun, 15 Jan 2012) $">
+<section id="string_algo.quickref" last-revision="$Date: 2012-01-15 08:49:25 -0800 (Sun, 15 Jan 2012) $">
<title>Quick Reference</title>
<using-namespace name="boost"/>
diff --git a/libs/algorithm/string/doc/rationale.xml b/libs/algorithm/string/doc/rationale.xml
index cfa158bc87..fe4e8f1c36 100644
--- a/libs/algorithm/string/doc/rationale.xml
+++ b/libs/algorithm/string/doc/rationale.xml
@@ -7,7 +7,7 @@
(See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
-->
-<section id="string_algo.rationale" last-revision="$Date: 2008-02-27 15:00:24 -0500 (Wed, 27 Feb 2008) $">
+<section id="string_algo.rationale" last-revision="$Date: 2008-02-27 12:00:24 -0800 (Wed, 27 Feb 2008) $">
<title>Rationale</title>
<using-namespace name="boost"/>
diff --git a/libs/algorithm/string/doc/release_notes.xml b/libs/algorithm/string/doc/release_notes.xml
index 9ac0b4d288..b4109a10ed 100644
--- a/libs/algorithm/string/doc/release_notes.xml
+++ b/libs/algorithm/string/doc/release_notes.xml
@@ -7,7 +7,7 @@
(See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
-->
-<section id="string_algo.release_notes" last-revision="$Date: 2008-02-27 15:00:24 -0500 (Wed, 27 Feb 2008) $">
+<section id="string_algo.release_notes" last-revision="$Date: 2008-02-27 12:00:24 -0800 (Wed, 27 Feb 2008) $">
<using-namespace name="boost"/>
<using-namespace name="boost::algorithm"/>
diff --git a/libs/algorithm/string/doc/string_algo.xml b/libs/algorithm/string/doc/string_algo.xml
index e5687f395d..1eb4a2c8d6 100644
--- a/libs/algorithm/string/doc/string_algo.xml
+++ b/libs/algorithm/string/doc/string_algo.xml
@@ -8,7 +8,7 @@
-->
<library name="String Algorithms" dirname="algorithm/string" xmlns:xi="http://www.w3.org/2001/XInclude"
- id="string_algo" last-revision="$Date: 2010-07-10 16:29:03 -0400 (Sat, 10 Jul 2010) $">
+ id="string_algo" last-revision="$Date: 2010-07-10 13:29:03 -0700 (Sat, 10 Jul 2010) $">
<libraryinfo>
<author>
<firstname>Pavol</firstname>
diff --git a/libs/algorithm/string/doc/usage.xml b/libs/algorithm/string/doc/usage.xml
index b5e2bf139c..8202f8c2bb 100644
--- a/libs/algorithm/string/doc/usage.xml
+++ b/libs/algorithm/string/doc/usage.xml
@@ -9,7 +9,7 @@
-->
-<section id="string_algo.usage" last-revision="$Date: 2010-10-30 13:34:45 -0400 (Sat, 30 Oct 2010) $">
+<section id="string_algo.usage" last-revision="$Date: 2012-08-15 22:16:42 -0700 (Wed, 15 Aug 2012) $">
<title>Usage</title>
<using-namespace name="boost"/>
@@ -130,17 +130,17 @@
string str1("command.com");
cout
&lt;&lt; str1
- &lt;&lt; (is_executable("command.com")? "is": "is not")
+ &lt;&lt; (is_executable(str1)? "is": "is not")
&lt;&lt; "an executable"
&lt;&lt; endl; // prints "command.com is an executable"
//..
- char text1[]="hello world!";
+ char text1[]="hello";
cout
&lt;&lt; text1
- &lt;&lt; (all( text1, is_lower() )? "is": "is not")
+ &lt;&lt; (all( text1, is_lower() )? " is": " is not")
&lt;&lt; " written in the lower case"
- &lt;&lt; endl; // prints "hello world! is written in the lower case"
+ &lt;&lt; endl; // prints "hello is written in the lower case"
</programlisting>
<para>
The predicates determine whether if a substring is contained in the input string
@@ -150,6 +150,11 @@
<headername>boost/algorithm/string/predicate.hpp</headername> for more details.
</para>
<para>
+ Note that if we had used "hello world" as the input to the test, it would have
+ output "hello world is not written in the lower case" because the space in the
+ input string is not a lower case letter.
+ </para>
+ <para>
In addition the algorithm <functionname>all()</functionname> checks
all elements of a container to satisfy a condition specified by a predicate.
This predicate can be any unary predicate, but the library provides a bunch of
@@ -163,7 +168,7 @@
<title>Trimming</title>
<para>
- When parsing the input from a user, strings usually have unwanted leading or trailing
+ When parsing the input from a user, strings often have unwanted leading or trailing
characters. To get rid of them, we need trim functions:
</para>
<programlisting>