Pystring是一组C的函数通过 std::string 来匹配Python的String类的方法。它不需要或使用 Python 解析器,提供了方便和符合 C 使用习惯的通用字符串操作方法,而这些方法时不包括在标准C库的。这在同时使用 C 和 Python 在处理字符串的时候是非常有用的。
Pystring is a collection of C functions which match the interface and behavior of python’s string class methods using std::string. Implemented in C, it does not require or make use of a python interpreter. It provides convenience and familiarity for common string operations not included in the standard C library. It’s also useful in environments where both C and python are used.with std::string.