Skip to content
This repository was archived by the owner on Dec 30, 2025. It is now read-only.

sixtyfouroftheclock/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReUtils

A C++ library in development for my projects and studies.

For naming convention, it uses snake_case, SCREAMING_SNAKE_CASE and PascalCase for variables and functions; constants; and namespaces, classes and structs.

Important

ReUtils uses nested namespaces and tries to enforce strong encapsulation. Avoiding the use of standard libraries in header files is somewhat difficult and may even be a bad design.

String

It's a simple string class like std::string.

using Recurring::Utils::String;
using Recurring::Console::Logger;
using Recurring::Error;
int
main()
{
    String my_string = "Hello, world!";
    Logger::print(my_string); // *Not implemented yet*
    return Error::SUCCESS;
}

ReConsole

Terminal utilities!

ReLogger

Wrapper for std::print but with "cards" - cards are tags for messages.

#include <recurring/console/logger.hpp>

using Log = Recurring::Console::Logger;

int
main ()
{
    Log::print (Log::INFO, "Hello, world!");
    return 0;
}

ReMath

A wrapper library for cmath with extras. Ugly, but it works.

#include <recurring/console/logger.hpp>
#include <recurring/math/trigonometry.hpp>

using namespace Recurring::Math;
using Log = Recurring::Console::Logger;

int
main ()
{
    float distance = 10.0f;
    float angle = degrees_to_radians (45.0f);
    float horizontal = distance * cosine (angle);

    Log::print (Log::INFO, "Horizontal -> {}", horizontal);

    return 0;
}

About

Untitled C++ library for my studies.

Resources

License

Stars

Watchers

Forks

Contributors