PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Classes | Namespaces | Macros | Typedefs | Enumerations
common.hpp File Reference
#include <zxcvbn/zxcvbn.h>
#include <zxcvbn/frequency_lists.hpp>
#include <zxcvbn/adjacency_graphs.hpp>
#include <regex>
#include <string>
#include <cassert>
Include dependency graph for common.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  zxcvbn::PortableRegexMatch
 
struct  zxcvbn::DictionaryMatch
 
struct  zxcvbn::SpatialMatch
 
struct  zxcvbn::RepeatMatch
 
struct  zxcvbn::SequenceMatch
 
struct  zxcvbn::RegexMatch
 
struct  zxcvbn::DateMatch
 
struct  zxcvbn::BruteforceMatch
 
struct  zxcvbn::UnknownMatch
 
class  zxcvbn::Match
 
struct  zxcvbn::pattern_type_to_pmc< T >
 

Namespaces

 zxcvbn
 

Macros

#define MATCH_RUN()
 
#define MATCH_FN(_, e, __)   e,
 
#define MATCH_FN(title, upper, lower)   title##Match _##lower;
 
#define MATCH_FN(title, upper, lower)
 
#define MATCH_FN(title, upper, lower)
 
#define MATCH_FN(title, upper, lower)
 
#define MATCH_FN(title, upper, lower)
 

Typedefs

using zxcvbn::guesses_t = zxcvbn_guesses_t
 
using zxcvbn::guesses_log10_t = int
 
using zxcvbn::score_t = unsigned
 
using zxcvbn::idx_t = std::string::size_type
 

Enumerations

enum  zxcvbn::RegexTag { zxcvbn::RegexTag::RECENT_YEAR, zxcvbn::RegexTag::ALPHA_LOWER, zxcvbn::RegexTag::ALPHANUMERIC }
 
enum  zxcvbn::SequenceTag { zxcvbn::SequenceTag::UPPER, zxcvbn::SequenceTag::LOWER, zxcvbn::SequenceTag::DIGITS, zxcvbn::SequenceTag::UNICODE }
 
enum  zxcvbn::MatchPattern
 

Macro Definition Documentation

◆ MATCH_FN [1/6]

#define MATCH_FN (   _,
  e,
  __ 
)    e,

Definition at line 242 of file common.hpp.

◆ MATCH_FN [2/6]

#define MATCH_FN (   title,
  upper,
  lower 
)    title##Match _##lower;

Definition at line 242 of file common.hpp.

◆ MATCH_FN [3/6]

#define MATCH_FN (   title,
  upper,
  lower 
)
Value:
case MatchPattern::upper: \
new (&_##lower) title##Match(std::forward<T>(val)._##lower); \
break;

Definition at line 242 of file common.hpp.

◆ MATCH_FN [4/6]

#define MATCH_FN (   title,
  upper,
  lower 
)
Value:
case MatchPattern::upper:\
_##lower.~title##Match(); \
break;

Definition at line 242 of file common.hpp.

◆ MATCH_FN [5/6]

#define MATCH_FN (   title,
  upper,
  lower 
)
Value:
title##Match & get_##lower() { \
assert(get_pattern() == MatchPattern::upper); \
return _##lower; \
} \
\
const title##Match & get_##lower() const { \
assert(get_pattern() == MatchPattern::upper); \
return _##lower; \
}

Definition at line 242 of file common.hpp.

◆ MATCH_FN [6/6]

#define MATCH_FN (   title,
  upper,
  lower 
)
Value:
template<> \
struct pattern_type_to_pmc<title##Match> : \
public std::integral_constant<decltype(&Match::_##lower), &Match::_##lower> {};

Definition at line 242 of file common.hpp.

◆ MATCH_RUN

#define MATCH_RUN ( )
Value:
MATCH_FN(Dictionary, DICTIONARY, dictionary) \
MATCH_FN(Spatial, SPATIAL, spatial) \
MATCH_FN(Repeat, REPEAT, repeat) \
MATCH_FN(Sequence, SEQUENCE, sequence) \
MATCH_FN(Regex, REGEX, regex) \
MATCH_FN(Date, DATE, date) \
MATCH_FN(Bruteforce, BRUTEFORCE, bruteforce) \
MATCH_FN(Unknown, UNKNOWN, unknown)

Definition at line 21 of file common.hpp.

_
std::string _(const char *psz)
Translation function: Call Translate signal on UI interface, which returns a boost::optional result.
Definition: guiinterface.h:119
MATCH_FN
#define MATCH_FN(_, e, __)
Definition: common.hpp:242