Skip to content
/ Mutils Public

A set of utilities which I use in my C++ projects

License

Notifications You must be signed in to change notification settings

KronsyC/Mutils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mutils

A simple cross-platform C++ utility library for all the things

Dependencies

Requires C++17 or greater

Usage

To use the library, add the header files in include/ to your include path, and link your program with the static library generated by the previous step.

Components

This library consists of many components, each of which help tackle a different problem

  • ansi
    Provides a builder for constructing nicely formatted text in the terminal
    Also provides a builder for generating terminal control sequences.

  • result
    Exposes the Result<T,E> class which is heavily inspired by Rust's solution of the same name

  • stringify Attempt to cast any value to a string using a variety of common methods

  • panic
    Provides a simple function to exit the program with an error message.

  • polyvec
    A polymorphic vector. A simple wrapper around the c++ STL vector which retains RTTI

  • env
    An interface for interacting with the local environment variables

  • progbar
    Utility for building terminal-based progress bars

  • trie
    Simple prefix-tree implementation

  • file
    Tool for reading text files

  • highlighter
    Tool for printing out highlighted sections of files in the terminal

About

A set of utilities which I use in my C++ projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published