Git Product home page Git Product logo

cppkit's Introduction

CPPKit - Simple C++ Functions for everyday use


Cross-platform C++ functions

**NOTE:** This is not finished yet, there is a lot to be implemented on Windows and Unix yet.

Typedef

  • byte
  • int8
  • int16
  • int32
  • int64
  • memory_info
  • cpu_info

Typedef: memory_info

struct memory_info {
    int64 virtual_memory_total;`
    int64 virtual_memory_usage;
    int64 virtual_memory_process;
    int64 physical_memory_total;
    int64 physical_memory_usage;
    int64 physical_memory_process;
};

Typedef: cpu_info

struct cpu_info {
    double cpu_usage;
    double cpu_usage_process;
};

Functions

  • void print_error(const std::string& message)
  • std::vector<std::string> explode(const std::string& string, const char& delimiter)
  • std::string implode(const std::vector<std::string>& strings, const char& delimiter)
  • std::string strtolower(std::string str
  • std::string strtoupper(std::string str)
  • std::string str_replace(std::string subject, const std::string& search, const std::string& replace)
  • std::string str_ireplace(std::string subject, const std::string& search, const std::string& replace)
  • std::vector<std::string> glob(const std::string& path)
  • int32 str_word_count() - NOT IMPLEMENTED YET
  • int64 bits_to_bytes(int64 bits)
  • int64 bytes_to_kilobytes(int64 bytes)
  • int64 bytes_to_megabytes(int64 bytes)
  • int64 bytes_to_gigabytes(int64 bytes)
  • int64 kilobytes_to_megabytes(int64 kilobytes)
  • int64 kilobytes_to_gigabytes(int64 kilobytes)
  • int64 megabytes_to_bytes(int64 megas)
  • int64 megabytes_to_kilobytes(int64 megas)
  • int64 megabytes_to_gigabytes(int64 megabytes)
  • int64 gigabytes_to_bytes(int64 gigas)
  • int64 gigabytes_to_kilobytes(int64 gigas)
  • int64 gigabytes_to_megabytes(int64 gigas)
  • int64 uniqid()
  • void print_r() - NOT IMPLEMENTED YET
  • int32 count_chars(const std::string& str, const char& ch) - NOT IMPLEMENTED YET
  • memory_info get_memory_info() - PARTIALLY IMPLEMENTED (OSX)
  • cpu_info get_cpu_info() - PARTIALLY IMPLEMENTED (OSX)

cppkit's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.