| 1 | <?xml version="1.0" encoding="utf-8"?> |
|---|
| 2 | <!DOCTYPE library PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" |
|---|
| 3 | "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd"> |
|---|
| 4 | <section id="string_algo.env" last-revision="$Date: 2004/07/15 21:47:21 $"> |
|---|
| 5 | <title>Environment</title> |
|---|
| 6 | <section> |
|---|
| 7 | <title>Build</title> |
|---|
| 8 | <para> |
|---|
| 9 | The whole library is provided in headers. Regex variants of some algorithms, |
|---|
| 10 | however, are dependent on the <libraryname>Boost.Regex</libraryname> library. All such algorithms are |
|---|
| 11 | separated in <headername>boost/algorithm/string_regex.hpp</headername>. |
|---|
| 12 | If this header is used, the application must be linked with the <libraryname>Boost.Regex</libraryname> |
|---|
| 13 | library. |
|---|
| 14 | </para> |
|---|
| 15 | </section> |
|---|
| 16 | |
|---|
| 17 | <section> |
|---|
| 18 | <title>Examples</title> |
|---|
| 19 | <para> |
|---|
| 20 | Examples showing the basic usage of the library can be found in the libs/algorithm/string/example |
|---|
| 21 | directory. There is a separate file for the each part of the library. Please follow the boost |
|---|
| 22 | build guidelines to build examples using the bjam. To successfully build regex examples |
|---|
| 23 | the <libraryname>Boost.Regex</libraryname> library is required. |
|---|
| 24 | </para> |
|---|
| 25 | </section> |
|---|
| 26 | |
|---|
| 27 | <section> |
|---|
| 28 | <title>Tests</title> |
|---|
| 29 | <para> |
|---|
| 30 | A full set of test cases for the library is located in the libs/algorithm/string/test directory. |
|---|
| 31 | The test cases can be executed using the boost build system. For the tests of regular |
|---|
| 32 | expression variants of algorithms, the <libraryname>Boost.Regex</libraryname> library is required. |
|---|
| 33 | </para> |
|---|
| 34 | </section> |
|---|
| 35 | |
|---|
| 36 | <section> |
|---|
| 37 | <title>Portability</title> |
|---|
| 38 | <para> |
|---|
| 39 | The library has been successfully compiled and tested with the following compilers: |
|---|
| 40 | |
|---|
| 41 | <itemizedlist> |
|---|
| 42 | <listitem>Microsoft Visual C++ 7.0</listitem> |
|---|
| 43 | <listitem>Microsoft Visual C++ 7.1</listitem> |
|---|
| 44 | <listitem>GCC 3.2</listitem> |
|---|
| 45 | <listitem>GCC 3.3.1</listitem> |
|---|
| 46 | </itemizedlist> |
|---|
| 47 | |
|---|
| 48 | See <ulink url="http://boost.sourceforge.net/regression-logs/">Boost regression tables</ulink> |
|---|
| 49 | for additional info for a particular compiler. |
|---|
| 50 | </para> |
|---|
| 51 | <para> |
|---|
| 52 | There are known limitation on platforms not supporting partial template specialization. |
|---|
| 53 | Library depends on correctly implemented <code>std::iterator_traits</code> class. |
|---|
| 54 | If a standard library provided with compiler is broken, the String Algorithm Library |
|---|
| 55 | cannot function properly. Usually it implies that primitive pointer iterators are not |
|---|
| 56 | working with the library functions. |
|---|
| 57 | </para> |
|---|
| 58 | </section> |
|---|
| 59 | </section> |
|---|