non_std_strings.qbk 1.1 KB

123456789101112131415161718192021222324252627282930
  1. [/
  2. Copyright 2006-2007 John Maddock.
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE_1_0.txt or copy at
  5. http://www.boost.org/LICENSE_1_0.txt).
  6. ]
  7. [section:non_std_strings Interfacing With Non-Standard String Types]
  8. The Boost.Regex algorithms and iterators are all iterator-based,
  9. with convenience overloads of the algorithms provided that convert
  10. standard library string types to iterator pairs internally. If you want
  11. to search a non-standard string type then the trick is to convert that string
  12. into an iterator pair: so far I haven't come across any string types that
  13. can't be handled this way, even if they're not officially iterator based.
  14. Certainly any string type that provides access to it's internal buffer, along
  15. with it's length, can be converted into a pair of pointers (which can be
  16. used as iterators).
  17. Some non-standard string types are sufficiently common that wrappers have been
  18. provided for them already: currently this includes the ICU and MFC string class
  19. types.
  20. [include icu_strings.qbk]
  21. [include mfc_strings.qbk]
  22. [endsect]