Skip to content
BOTTOMFRAGGER523Public

About

A simple & minimal String QoL (Quality of Life) single header library designed to be memory safe while abstracting all the unsafe and tedious string work commonly found in C and freestanding C++ environments

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

Repository files navigation

StringQOL

A simple & minimal String QoL (Quality of Life) single header library designed to be memory safe while abstracting all the unsafe and tedious string work commonly found in C while being licensed under the super permissive Unlicense License.

Contributions are welcome!

Goals

  • ✅ All memory owned by the library
  • ✅ Memory safe
  • ✅ C Support and freestanding C++ support
  • ✅ Portable
  • ✅ Single header
  • ✅ Lightweight
  • ✅ Somewhat Fast

Building

Installing

  • Run make install (sudo might be needed), it will install to /usr/local/include/stringqol

Packaging

This option might be useful if lets say you want a script to fetch this as a dependency or you're vendoring this project. This option runs make clean, removes unnecessary directories (eg. bench test_suite and .vscode) and files (eg. bench.py), and renames stringqol to include. Be careful though as it forcefully deletes said folders and said files.

To run this option simply run make package.

Running tests

  • Run make test and you have your test results.

Running benchmarks

  • Run python bench.py (No dependencies required) and you have your benchmarks.
  • Read from Median to get the average result, Min to get the fastest and Max to get the slowest.

Q&A

Why did you make this?
I wanted something lightweight, fast, portable and a single header library that also supported C++.
Will you maintain it?
Only if there's optimization to do, security fixes, bug fixes, or if I want to add another feature.

About

A simple & minimal String QoL (Quality of Life) single header library designed to be memory safe while abstracting all the unsafe and tedious string work commonly found in C and freestanding C++ environments

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages