libnumerixpp  0.1.3
A Powerful C++ Library for High-Performance Numerical Computing
core.hpp
Go to the documentation of this file.
1 
6 #ifndef LIBNUMERIXPP_COMPUTERSCIENCE_CORE_HPP
7 #define LIBNUMERIXPP_COMPUTERSCIENCE_CORE_HPP
8 
9 #pragma once
10 
11 #include <string>
12 
17 namespace computerscience {
18 
26  auto convert_decimal_to_binary(int decimal) -> std::string;
27 
35  auto convert_binary_to_decimal(std::string &binary) -> int;
36 
44  auto convert_decimal_to_hexadecimal(int decimal) -> std::string;
45 
53  auto convert_hexadecimal_to_decimal(std::string &hexadecimal) -> int;
54 
62  auto convert_binary_to_hexadecimal(std::string &binary) -> std::string;
63 
71  auto convert_hexadecimal_to_binary(std::string hexadecimal) -> std::string;
72 
81  auto humanize_bytes_size(long long bytes, const std::string &suffix = "B") -> std::string;
82 } // namespace computerscience
83 
84 #endif // LIBNUMERIXPP_COMPUTERSCIENCE_CORE_HPP
Basic Computer science utils.
Definition: core.cpp:13
auto humanize_bytes_size(long long bytes, const std::string &suffix="B") -> std::string
Scale bytes to its proper format.
Definition: core.cpp:76
auto convert_binary_to_hexadecimal(std::string &binary) -> std::string
convert binary to hexadecimal
Definition: core.cpp:62
auto convert_hexadecimal_to_decimal(std::string &hexadecimal) -> int
convert hexadecimal to decimal
Definition: core.cpp:51
auto convert_decimal_to_hexadecimal(int decimal) -> std::string
convert decimal to hexadecimal
Definition: core.cpp:39
auto convert_decimal_to_binary(int decimal) -> std::string
convert decimal to binary
Definition: core.cpp:14
auto convert_binary_to_decimal(std::string &binary) -> int
convert binary to decimal
Definition: core.cpp:29