/Toolbox

General-purpose repository, intended as a submodule for others

Primary LanguageC++Mozilla Public License 2.0MPL-2.0

Toolbox

General-purpose repository, intended as a submodule for others.

Unit Tests and Examples

  • To see usage examples, look at the Test folder.
  • To run the tests, run make test from the Test folder.

Cpp Folder

  • Calculator.cpp
  • Dictionary.cpp
  • FileWrapper.cpp
    • Abstraction for reading and writing files, as well as obtaining and modifying the various time-stamps.
  • General.cpp
    • Provides OS-independence and includes often-used standard headers.
    • Defines kiB (210) and MiB (220) constants.
    • Defines macros for standard ANSI escape sequences related to changing the console text colour.
    • Defines debug, info, warning, error and assert macros. These are syntactically identical to printf, but automatically adds colours and more information relating to the current file, line number and function name.
  • JSON.cpp
    • Abstraction for reading, manipulating and generating JSON strings. It supports parsing of JSON-5 strings, but stringifies to normal JSON.
  • LLRBTree.cpp
  • UTF_Converter.cpp
    • Utility used to convert between UTF-8 (std::string), UTF-16 (std::u16string) and UTF-32 (std::u32string).
  • XML.cpp
    • Abstraction for reading and writing XML files.