mirror of
https://github.com/boostorg/algorithm.git
synced 2025-07-30 12:37:15 +02:00
Fixed error in string docs
[SVN r78393]
This commit is contained in:
@ -135,12 +135,12 @@
|
|||||||
<< endl; // prints "command.com is an executable"
|
<< endl; // prints "command.com is an executable"
|
||||||
|
|
||||||
//..
|
//..
|
||||||
char text1[]="hello world!";
|
char text1[]="hello";
|
||||||
cout
|
cout
|
||||||
<< text1
|
<< text1
|
||||||
<< (all( text1, is_lower() )? "is": "is not")
|
<< (all( text1, is_lower() )? " is": " is not")
|
||||||
<< " written in the lower case"
|
<< " written in the lower case"
|
||||||
<< endl; // prints "hello world! is written in the lower case"
|
<< endl; // prints "hello is written in the lower case"
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<para>
|
<para>
|
||||||
The predicates determine whether if a substring is contained in the input string
|
The predicates determine whether if a substring is contained in the input string
|
||||||
@ -149,6 +149,11 @@
|
|||||||
simply contains the substring or if both strings are equal. See the reference for
|
simply contains the substring or if both strings are equal. See the reference for
|
||||||
<headername>boost/algorithm/string/predicate.hpp</headername> for more details.
|
<headername>boost/algorithm/string/predicate.hpp</headername> for more details.
|
||||||
</para>
|
</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>
|
<para>
|
||||||
In addition the algorithm <functionname>all()</functionname> checks
|
In addition the algorithm <functionname>all()</functionname> checks
|
||||||
all elements of a container to satisfy a condition specified by a predicate.
|
all elements of a container to satisfy a condition specified by a predicate.
|
||||||
|
Reference in New Issue
Block a user