This is a better String Library which is superior to the existing C String library i.e. char string type, or C++’s std::string. It is safer with regard to buffer overflows, simpler than C string manipulation, works ok for ‘\0’ terminated strings and generally faster for common string operations.
This library is fully a standalone C and C++ library, and also portable. It can work with gcc/g++, Microsoft Visual C++, Intel C++, WATCOM C/C++, Turbo C, Borland C++, IBM’s native CC compiler on Windows, Linux and Mac OS X. It is a very high performing library which is very easy to use and is not part of some other collection of data structures.
The library also includes a C++ wrapper that uses overloaded operators, stream I/O and Standard Template Library to make the CBString struct a natural and powerful string abstraction with more functionality and higher performance than std::string.
Download: C/C++ String Library