strtol_converter.qbk 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [/
  2. Copyright (c) Vladimir Batov 2009-2016
  3. Distributed under the Boost Software License, Version 1.0.
  4. See copy at http://www.boost.org/LICENSE_1_0.txt.
  5. ]
  6. [section:strtol_converter ['boost::cnv::strtol] Converter]
  7. The converter started as a deployment example (with the `std::strtol` family of functions as its conversion engine) and a part of the performance-test set. Surprisingly, the converter showed fairly decent all-around performance (see [link boost_convert.performance.converters_compared Converters Compared]) and, consequently, has been rewritten and extended to provide additional conversion support and formatting. At the moment it seems to be a good choice with moderate formatting facilities and adequate performance.
  8. It should be noted though that the converter is nowhere as mature as `boost::cnv::lexical_cast` or `boost::cnv::stream` and, therefore, bugs are to be expected.
  9. [section Basic Deployment]
  10. [strtol_basic_deployment_header]
  11. [strtol_basic_deployment]
  12. [endsect]
  13. [section Formatting Support]
  14. [section Numeric Base (bin, oct, dec, hex)]
  15. [strtol_numeric_base_header]
  16. [strtol_numeric_base]
  17. [wide_strtol_numeric_base]
  18. [endsect]
  19. [section Field Width, Fill Character and Adjustment]
  20. [strtol_width]
  21. [endsect]
  22. [section Leading Whitespace Characters]
  23. [strtol_skipws]
  24. [wide_strtol_skipws]
  25. [endsect]
  26. [section Floating-Point Precision]
  27. [strtol_precision]
  28. [endsect]
  29. [endsect]
  30. [section Supported String Types]
  31. [section Wide String]
  32. [wide_strtol_numeric_base]
  33. [wide_strtol_skipws]
  34. [endsect]
  35. [section Custom String Types]
  36. [my_string_declaration]
  37. [strtol_user_string]
  38. [endsect]
  39. [endsect]
  40. [endsect]