Giter VIP home page Giter VIP logo

elip's Introduction

A c++ 20 utils headers

Class

  • Elip::String
  • Elip::Vector
  • Elip::Map
  • Elip::File

Functions

Strings

  • Str
  • Split
  • And more

Format and Print

  • Format -> wiht Color(Windows,Linux,MacOS)
  • Printf ->with Format
  • PrinfWithoutColor ->Prinf without color
  • FormatfWithoutColor -> Format without color
  • And more

Terminal utils

  • ChangeTerminalTitle -> (Windows,Linux,MacOS)
  • ChangeTerminalCursorPosition -> (Windows,Linux,MacOS)
  • ActivateTerminal
  • And more

Filesystem

  • ExistsFS
  • IsFileFS
  • IsDirectoryFS
  • IsSymLinkFS
  • DeleteFS
  • CreateDirectoryFS
  • CreateSymLinkFS
  • CreateFileFS
  • And more

Vector

  • Join
  • PrintVector
  • ToVect
  • ToVectStr
  • And more

How to include ?

#include "Elip.hpp"

Examples:

  • Filesystem:
#include "Elip.hpp"
int main()
{
    if (!Elip::ExistsFS("test.txt"))
    {
        Elip::Printf("{}\n", "No existe el archivo text.txt,creando el archivo");
        Elip::CreateFileFS("test.txt");
    }
    Elip::File data("test.txt");
    data.Write("Hola mundo en c++");
    Elip::Printf("Datos del archivo: {}\n", data.ReadAsString());
}
  • Format and Printf:
#include "Elip.hpp"
using namespace Elip;
int main()
{
    //  RED    RED   GREEN
    // hello Joaquin!!!
    ActivateTerminal();
    Printf("{FG_RED}hello {}{FG_GREEN}!!!{FG_RESET}\n", "Joaquin");
    auto result = Format("hellooooo {} {}", "C++", 17);
    Printf("{}", result);
}
  • Strings:
Elip::String myString("hello python hello");
myString.Replace("python", "amo");
myString.TrimLeft("hello");
Elip::Printf("{}\n",myString);
  • More examples in examples folder License: MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.