(Work In Progress) The Better String Library: Fixed
Find a file
2024-07-03 17:15:19 +03:00
include bsafe.h: include missing bstrlib.h 2024-07-03 17:15:19 +03:00
src organize the project 2024-07-03 16:11:42 +03:00
tests organize the project 2024-07-03 16:11:42 +03:00
.editorconfig add .editorconfig 2024-06-07 20:26:26 +03:00
.gitignore add CMakeLists.txt 2024-07-03 16:00:00 +03:00
bstrlib.txt (pull request by JoeUX) Fixed several broken links 2024-07-03 16:42:19 +03:00
BUILDING add AI-generated BUILDING 2024-07-03 17:11:24 +03:00
CMakeLists.txt add CMakeLists.txt 2024-07-03 16:00:00 +03:00
gpl.txt - Initial checkin of bstrlib from where it left off on sourceforge. 2014-12-08 05:29:01 -08:00
LICENSE update LICENSE text 2024-06-04 08:05:14 +03:00
porting.txt - Initial checkin of bstrlib from where it left off on sourceforge. 2014-12-08 05:29:01 -08:00
README.md README.md: explain that the project is WIP 2024-07-03 16:18:21 +03:00
security.txt Remove disclaimer about 2s complement. Update other language. 2016-01-11 04:33:16 -08:00
test.sh add test.sh 2024-07-03 16:13:04 +03:00

The Better String Library

Caution: Work In Progress

Fixed by contributors according to the project issues. The open pull requests were merged into the master branch.

What is it?

The Better String Library (or Bstrlib) is an abstraction of a string data type which is superior to the C library char buffer string type, or C++'s std::string.

Features

Among the features achieved are:

  • Substantial mitigation of buffer overflow/overrun problems and other failures that result from erroneous usage of the common C string library functions

  • Significantly simplified string manipulation

  • High performance interoperability with other source/libraries which expect '\0' terminated char buffers

  • Improved overall performance of common string operations

  • Functional equivalency with other more modern languages

The library is totally stand alone, portable (known to work with gcc/g++, MSVC++, Intel C++, WATCOM C/C++, Turbo C, Borland C++, IBM's native CC compiler on Windows, Linux and Mac OS X), high performance, easy to use and is not part of some other collection of data structures. Even the file I/O functions are totally abstracted (so that other stream-like mechanisms, like sockets, can be used.) Nevertheless, it is adequate as a complete replacement of the C string library for string manipulation in any C program.

The library includes a robust C++ wrapper that uses overloaded operators, rich constructors, exceptions, stream I/O and STL to make the CBString struct a natural and powerful string abstraction with more functionality and higher performance than std::string.

The development stage

Bstrlib is stable, well tested and suitable for any software production environment.