1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
---|
2 | <html> |
---|
3 | <head> |
---|
4 | <title>Boost.Regex: Working With Non-Standard String Types</title> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
6 | <link rel="stylesheet" type="text/css" href="../../../boost.css"> |
---|
7 | </head> |
---|
8 | <body> |
---|
9 | <P> |
---|
10 | <TABLE id="Table1" cellSpacing="1" cellPadding="1" width="100%" border="0"> |
---|
11 | <TR> |
---|
12 | <td valign="top" width="300"> |
---|
13 | <h3><a href="../../../index.htm"><img height="86" width="277" alt="C++ Boost" src="../../../boost.png" border="0"></a></h3> |
---|
14 | </td> |
---|
15 | <TD width="353"> |
---|
16 | <H1 align="center">Boost.Regex</H1> |
---|
17 | <H2 align="center">Working With Non-Standard String Types.</H2> |
---|
18 | </TD> |
---|
19 | <td width="50"> |
---|
20 | <h3><a href="index.html"><img height="45" width="43" alt="Boost.Regex Index" src="uarrow.gif" border="0"></a></h3> |
---|
21 | </td> |
---|
22 | </TR> |
---|
23 | </TABLE> |
---|
24 | </P> |
---|
25 | <HR> |
---|
26 | <p></p> |
---|
27 | <P>The Boost.Regex algorithms and iterators are all iterator-based, with |
---|
28 | convenience overloads of the algorithms provided that convert standard library |
---|
29 | string types to iterator pairs internally. If you want to search a |
---|
30 | non-standard string type then the trick is to convert that string into an |
---|
31 | iterator pair: so far I haven't come across any string types that can't be |
---|
32 | handled this way, even if they're not officially iterator based. |
---|
33 | Certainly any string type that provides access to it's internal buffer, along |
---|
34 | with it's length, can be converted into a pair of pointers (which can be used |
---|
35 | as iterators).</P> |
---|
36 | <P>Some non-standard string types are sufficiently common that wappers have been |
---|
37 | provided for them:</P> |
---|
38 | <P><A href="mfc_strings.html">MFC/ATL Strings.</A><BR> |
---|
39 | <A href="icu_strings.html">ICU Strings.</A></P> |
---|
40 | <P> |
---|
41 | <HR> |
---|
42 | <P></P> |
---|
43 | <p>Revised |
---|
44 | <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan --> |
---|
45 | 24 Nov 2004 |
---|
46 | <!--webbot bot="Timestamp" endspan i-checksum="39359" --></p> |
---|
47 | <p><i>© Copyright John Maddock 1998- |
---|
48 | <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%Y" startspan --> 2004<!--webbot bot="Timestamp" endspan i-checksum="39359" --></i></p> |
---|
49 | <P><I>Use, modification and distribution are subject to the Boost Software License, |
---|
50 | Version 1.0. (See accompanying file <A href="../../../LICENSE_1_0.txt">LICENSE_1_0.txt</A> |
---|
51 | or copy at <A href="http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</A>)</I></P> |
---|
52 | </body> |
---|
53 | </html> |
---|