mirror of
https://github.com/boostorg/regex.git
synced 2025-07-19 07:12:07 +02:00
Typo fix
[SVN r36465]
This commit is contained in:
@ -70,7 +70,7 @@
|
|||||||
that you need to reuse.</P>
|
that you need to reuse.</P>
|
||||||
<P>Now let's take that expression and place it in some C++ code to validate the
|
<P>Now let's take that expression and place it in some C++ code to validate the
|
||||||
format of a credit card number:</P>
|
format of a credit card number:</P>
|
||||||
<PRE><B>bool</B> validate_card_format(<B>const</B> std::string s)
|
<PRE><B>bool</B> validate_card_format(<B>const</B> std::string& s)
|
||||||
{
|
{
|
||||||
<B>static</B> <B>const</B> <A href="basic_regex.html">boost::regex</A> e("(\\d{4}[- ]){3}\\d{4}");
|
<B>static</B> <B>const</B> <A href="basic_regex.html">boost::regex</A> e("(\\d{4}[- ]){3}\\d{4}");
|
||||||
<B>return</B> <A href="regex_match.html">regex_match</A>(s, e);
|
<B>return</B> <A href="regex_match.html">regex_match</A>(s, e);
|
||||||
@ -178,3 +178,4 @@ std::string human_readable_card_number(<B>const</B> std::string s)
|
|||||||
or copy at <A href="http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</A>)</I></P>
|
or copy at <A href="http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</A>)</I></P>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@
|
|||||||
that you need to reuse.</P>
|
that you need to reuse.</P>
|
||||||
<P>Now let's take that expression and place it in some C++ code to validate the
|
<P>Now let's take that expression and place it in some C++ code to validate the
|
||||||
format of a credit card number:</P>
|
format of a credit card number:</P>
|
||||||
<PRE><B>bool</B> validate_card_format(<B>const</B> std::string s)
|
<PRE><B>bool</B> validate_card_format(<B>const</B> std::string& s)
|
||||||
{
|
{
|
||||||
<B>static</B> <B>const</B> <A href="basic_regex.html">boost::regex</A> e("(\\d{4}[- ]){3}\\d{4}");
|
<B>static</B> <B>const</B> <A href="basic_regex.html">boost::regex</A> e("(\\d{4}[- ]){3}\\d{4}");
|
||||||
<B>return</B> <A href="regex_match.html">regex_match</A>(s, e);
|
<B>return</B> <A href="regex_match.html">regex_match</A>(s, e);
|
||||||
@ -178,3 +178,4 @@ std::string human_readable_card_number(<B>const</B> std::string s)
|
|||||||
or copy at <A href="http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</A>)</I></P>
|
or copy at <A href="http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</A>)</I></P>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user