Good C++ string manipulation library

后端 未结 7 1044
梦谈多话
梦谈多话 2021-01-30 01:05

I\'m sorry for flaming std::string and std::wstring. They are quite limited and far from being thread safe. Performance wise, they are not that good too. I miss simple features

7条回答
  •  忘掉有多难
    2021-01-30 01:35

    The C++ String Toolkit (StrTk) Library is a free library that consists of robust, optimized and portable generic string processing algorithms and procedures for the C++ language. The library is designed to be easy to use and integrate within existing code.

    The library has the following capabilities:

    • Generic string tokenizer and token iterators
    • Split routines
    • User specified delimiter and splitter policies (simple and regex based etc.)
    • Conversions between data and hex and base-64
    • In-place removal and replace routines
    • Wild-card matching and globing
    • Fast 2D token grid processing
    • Extensible string processing templates

    and plenty more...

    Compatible C++ Compilers:

    • GCC 4.0+
    • Intel C++ Compiler 9.0+
    • Microsoft Visual C++ 8.0+
    • Comeau C/C++ 4.1+

    Source:

    • Download: http://www.partow.net/programming/strtk/index.html
    • SVN: http://code.google.com/p/strtk/

提交回复
热议问题