Skip to content

String Theory 2.0

Choose a tag to compare

@zrax zrax released this 08 Jan 18:21
· 264 commits to master since this release
2.0
  • Add support for reordering and reusing format parameters as "{&1}" in formatting functions.
  • Add support for std::string_view and friends.
  • Rename is_empty to empty and char_at to at for better compatibility with STL.
    Note that the old names are still available, but will show a deprecation warning unless ST_NO_2_0_DEPRECATION is defined.
  • Add STL-style iterator methods, including back, front, [c|r]begin, [c|r]end and necessary typedefs.
  • Add ST::writef for STL-style (std::ostream-derived) streams.
  • Add operator<< and operator>> overloads for using ST::string with STL-style streams.
  • Simplified the necessary overhead for creating new formatting functions.
  • Change buffer classes to be writable (but not resizable) for easier construction and manipulation as buffers.
    Note that create_writable_buffer is still available, but will show a deprecation warning unless ST_NO_2_0_DEPRECATION is defined.
  • Optimized several parts of string_theory for better performance, especially around string construction, character access, and encoding conversions.
  • Fix UTF-16 invalid surrogate pair replacements producing non-canonical results.
  • Moved documentation to the Github wiki and cleaned it up for easier maintenance and use.