mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-17 03:50:03 +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 "ec.h"
|
||||
|
||||
static void search(const char *words, size_t n) {
|
||||
static void search(std::string words, size_t n) {
|
||||
|
||||
size_t count = 0;
|
||||
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;
|
||||
|
||||
word_list = strsplit(words, ",");
|
||||
std::for_each(word_list.begin(), word_list.end(), trim);
|
||||
std::for_each(word_list.begin(), word_list.end(), strtolower);
|
||||
word_list = strsplitwords(strtolower(words));
|
||||
|
||||
while (count < n) {
|
||||
std::string pubstr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue