mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Using new basetoolkit function for unique naming
applied to source and snapshot names
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef BASETOOLKIT_H
|
||||
#define BASETOOLKIT_H
|
||||
|
||||
#include <list>
|
||||
#include <string>
|
||||
|
||||
namespace BaseToolkit
|
||||
@@ -9,6 +10,9 @@ namespace BaseToolkit
|
||||
// get integer with unique id
|
||||
uint64_t uniqueId();
|
||||
|
||||
// proposes a name that is not already in the list
|
||||
std::string uniqueName(const std::string &basename, std::list<std::string> existingnames);
|
||||
|
||||
// get a transliteration to Latin of any string
|
||||
std::string transliterate(std::string input);
|
||||
|
||||
@@ -18,6 +22,7 @@ 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);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user