non_std_strings.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
  4. <title>Interfacing With Non-Standard String Types</title>
  5. <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
  6. <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
  7. <link rel="home" href="../../index.html" title="Boost.Regex 5.1.4">
  8. <link rel="up" href="../ref.html" title="Reference">
  9. <link rel="prev" href="regex_traits.html" title="regex_traits">
  10. <link rel="next" href="non_std_strings/icu.html" title="Working With Unicode and ICU String Types">
  11. </head>
  12. <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
  13. <table cellpadding="2" width="100%"><tr>
  14. <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
  15. <td align="center"><a href="../../../../../../index.html">Home</a></td>
  16. <td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
  17. <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
  18. <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
  19. <td align="center"><a href="../../../../../../more/index.htm">More</a></td>
  20. </tr></table>
  21. <hr>
  22. <div class="spirit-nav">
  23. <a accesskey="p" href="regex_traits.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../ref.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="non_std_strings/icu.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
  24. </div>
  25. <div class="section">
  26. <div class="titlepage"><div><div><h3 class="title">
  27. <a name="boost_regex.ref.non_std_strings"></a><a class="link" href="non_std_strings.html" title="Interfacing With Non-Standard String Types">Interfacing With Non-Standard
  28. String Types</a>
  29. </h3></div></div></div>
  30. <div class="toc"><dl class="toc">
  31. <dt><span class="section"><a href="non_std_strings/icu.html">Working With Unicode
  32. and ICU String Types</a></span></dt>
  33. <dd><dl>
  34. <dt><span class="section"><a href="non_std_strings/icu/intro.html">Introduction
  35. to using Regex with ICU</a></span></dt>
  36. <dt><span class="section"><a href="non_std_strings/icu/unicode_types.html">Unicode
  37. regular expression types</a></span></dt>
  38. <dt><span class="section"><a href="non_std_strings/icu/unicode_algo.html">Unicode
  39. Regular Expression Algorithms</a></span></dt>
  40. <dt><span class="section"><a href="non_std_strings/icu/unicode_iter.html">Unicode
  41. Aware Regex Iterators</a></span></dt>
  42. </dl></dd>
  43. <dt><span class="section"><a href="non_std_strings/mfc_strings.html">Using
  44. Boost Regex With MFC Strings</a></span></dt>
  45. <dd><dl>
  46. <dt><span class="section"><a href="non_std_strings/mfc_strings/mfc_intro.html">Introduction
  47. to Boost.Regex and MFC Strings</a></span></dt>
  48. <dt><span class="section"><a href="non_std_strings/mfc_strings/mfc_regex_types.html">Regex
  49. Types Used With MFC Strings</a></span></dt>
  50. <dt><span class="section"><a href="non_std_strings/mfc_strings/mfc_regex_create.html">Regular
  51. Expression Creation From an MFC String</a></span></dt>
  52. <dt><span class="section"><a href="non_std_strings/mfc_strings/mfc_algo.html">Overloaded
  53. Algorithms For MFC String Types</a></span></dt>
  54. <dt><span class="section"><a href="non_std_strings/mfc_strings/mfc_iter.html">Iterating
  55. Over the Matches Within An MFC String</a></span></dt>
  56. </dl></dd>
  57. </dl></div>
  58. <p>
  59. The Boost.Regex algorithms and iterators are all iterator-based, with convenience
  60. overloads of the algorithms provided that convert standard library string
  61. types to iterator pairs internally. If you want to search a non-standard
  62. string type then the trick is to convert that string into an iterator pair:
  63. so far I haven't come across any string types that can't be handled this
  64. way, even if they're not officially iterator based. Certainly any string
  65. type that provides access to it's internal buffer, along with it's length,
  66. can be converted into a pair of pointers (which can be used as iterators).
  67. </p>
  68. <p>
  69. Some non-standard string types are sufficiently common that wrappers have
  70. been provided for them already: currently this includes the ICU and MFC string
  71. class types.
  72. </p>
  73. </div>
  74. <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
  75. <td align="left"></td>
  76. <td align="right"><div class="copyright-footer">Copyright &#169; 1998-2013 John Maddock<p>
  77. Distributed under the Boost Software License, Version 1.0. (See accompanying
  78. file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
  79. </p>
  80. </div></td>
  81. </tr></table>
  82. <hr>
  83. <div class="spirit-nav">
  84. <a accesskey="p" href="regex_traits.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../ref.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="non_std_strings/icu.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
  85. </div>
  86. </body>
  87. </html>