mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Creating a base toolkit for functions independent from other toolkits
This commit is contained in:
24
BaseToolkit.h
Normal file
24
BaseToolkit.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef BASETOOLKIT_H
|
||||
#define BASETOOLKIT_H
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace BaseToolkit
|
||||
{
|
||||
|
||||
// get integer with unique id
|
||||
uint64_t uniqueId();
|
||||
|
||||
// get a transliteration to Latin of any string
|
||||
std::string transliterate(std::string input);
|
||||
|
||||
// get a string to display memory size with unit KB, MB, GB, TB
|
||||
std::string byte_to_string(long b);
|
||||
|
||||
// get a string to display bit size with unit Kbit, MBit, Gbit, Tbit
|
||||
std::string bits_to_string(long b);
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif // BASETOOLKIT_H
|
||||
Reference in New Issue
Block a user