password-analyzer/defs.hpp

25 lines
426 B
C++
Raw Normal View History

2023-11-03 21:05:08 +08:00
#ifndef DEFS_HPP
#define DEFS_HPP
#include <string>
#if __has_include(<generator>)
#include <generator>
#else
#include "generator.hpp"
#endif
#include "spdlog/spdlog.h"
#include "magic_enum.hpp"
using std::operator""s;
using std::operator""sv;
enum class DataSource { CSDN, YAHOO };
bool is_num(char c);
bool is_alpha(char c);
std::generator<std::string> passwords(const DataSource &source);
#endif // DEFS_HPP