1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-22 10:03:41 +02:00

rename namespace and header guards from eosio to antelope

This commit is contained in:
Henrik Hautakoski 2023-04-10 14:53:26 +02:00
parent 2679dc6ef4
commit 2b4ab78176
35 changed files with 126 additions and 127 deletions

View file

@ -29,7 +29,7 @@
#include <eoskeygen/core/dictionary.hpp>
#include <eoskeygen/core/file.hpp>
namespace eoskeygen {
namespace antelopekeygen {
struct StringContains {
StringContains(const std::string& str, std::vector<size_t>& pos) : m_str(str), m_pos(pos) {}
@ -126,4 +126,4 @@ Dictionary::search_result_t Dictionary::search(const std::string& subject) const
return res;
}
} // namespace eoskeygen
} // namespace antelopekeygen

View file

@ -25,7 +25,7 @@
#include <eoskeygen/core/string.hpp>
#include <eoskeygen/core/file.hpp>
namespace eoskeygen {
namespace antelopekeygen {
bool readLines(const std::string& filename, strlist_t& lines) {
@ -46,4 +46,4 @@ bool readLines(const std::string& filename, strlist_t& lines) {
return true;
}
} // namespace eoskeygen
} // namespace antelopekeygen

View file

@ -24,7 +24,7 @@
#include <algorithm>
#include <eoskeygen/core/leet.hpp>
namespace eoskeygen {
namespace antelopekeygen {
static bool is_l33t(char ch, char& r) {
@ -79,4 +79,4 @@ strlist_t l33twords(std::string str) {
return list;
}
} // namespace eoskeygen
} // namespace antelopekeygen

View file

@ -26,7 +26,7 @@
#include <algorithm>
#include <eoskeygen/core/string.hpp>
namespace eoskeygen {
namespace antelopekeygen {
std::string& strtolower(std::string& str) {
std::transform(str.begin(), str.end(), str.begin(), [](unsigned char c){ return std::tolower(c); });
@ -49,4 +49,4 @@ std::string& trim(std::string& str) {
return ltrim(rtrim(str));
}
} // namespace eoskeygen
} // namespace antelopekeygen

View file

@ -25,7 +25,7 @@
#include <eoskeygen/core/string.hpp>
#include <eoskeygen/core/strlist.hpp>
namespace eoskeygen {
namespace antelopekeygen {
strlist_t strlist::splitw(const std::string& str, const std::string& delim) {
@ -48,7 +48,7 @@ strlist_t strlist::split(const std::string& str, const std::string& delim) {
return r;
}
std::string strlist::join(const eoskeygen::strlist_t& list, const std::string& delim) {
std::string strlist::join(const strlist_t& list, const std::string& delim) {
std::string out;
@ -72,4 +72,4 @@ strlist_t& strlist::strip(strlist_t& list, strlist_stripfunc_t fn) {
return list;
}
} // namespace eoskeygen
} // namespace antelopekeygen

View file

@ -28,7 +28,7 @@
#include <eoskeygen/key_search_result.hpp>
#include <eoskeygen/key_search.hpp>
namespace eoskeygen {
namespace antelopekeygen {
KeySearch::KeySearch() :
m_prefix ("EOS"),
@ -128,4 +128,4 @@ bool KeySearch::_contains_word(const struct libantelope::ec_keypair* key, struct
return false;
}
} // namespace eoskeygen
} // namespace antelopekeygen

View file

@ -29,7 +29,7 @@
#include <eoskeygen/key_search_result.hpp>
#include <eoskeygen/key_search.hpp>
namespace eoskeygen {
namespace antelopekeygen {
// Mutex guard for m_count.
std::mutex g_count_mtx;
@ -98,4 +98,4 @@ void KeySearch::_search_mt()
}
}
} // namespace eoskeygen
} // namespace antelopekeygen