pystring

C++ library providing Python string methods interface

brewmacoslinux
Try with needOr install directly
Source

About

Collection of C++ functions for the interface of Python's string class methods

Commands

pystring

Examples

Include pystring header in C++ project for string manipulation$ #include <pystring/pystring.h>
Use Python-like string split method in C++$ std::vector<std::string> parts = pystring::split("hello,world", ",");
Use Python-like string strip method in C++$ std::string result = pystring::strip(" text ");