mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-03 11:53:41 +02:00
main.cpp: use strsplitwords() instead of strsplit()
This commit is contained in:
parent
9354154ddd
commit
372bb3c81e
1 changed files with 2 additions and 4 deletions
|
|
@ -29,7 +29,7 @@
|
||||||
#include "WIF.h"
|
#include "WIF.h"
|
||||||
#include "ec.h"
|
#include "ec.h"
|
||||||
|
|
||||||
static void search(const char *words, size_t n) {
|
static void search(std::string words, size_t n) {
|
||||||
|
|
||||||
size_t count = 0;
|
size_t count = 0;
|
||||||
struct ec_keypair pair;
|
struct ec_keypair pair;
|
||||||
|
|
@ -37,9 +37,7 @@ static void search(const char *words, size_t n) {
|
||||||
|
|
||||||
std::cout << "Searching for " << n << " keys containing: " << words << std::endl;
|
std::cout << "Searching for " << n << " keys containing: " << words << std::endl;
|
||||||
|
|
||||||
word_list = strsplit(words, ",");
|
word_list = strsplitwords(strtolower(words));
|
||||||
std::for_each(word_list.begin(), word_list.end(), trim);
|
|
||||||
std::for_each(word_list.begin(), word_list.end(), strtolower);
|
|
||||||
|
|
||||||
while (count < n) {
|
while (count < n) {
|
||||||
std::string pubstr;
|
std::string pubstr;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue