PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Functions | Variables
zxcvbn::util Namespace Reference

Functions

std::string ascii_lower (const std::string &in)
 
std::string reverse_string (const std::string &in)
 
bool utf8_valid (std::string::const_iterator start, std::string::const_iterator end)
 
bool utf8_valid (const std::string &str)
 
template<class It >
It _utf8_iter (It start, It end)
 
std::string::iterator utf8_iter (std::string::iterator start, std::string::iterator end)
 
std::string::const_iterator utf8_iter (std::string::const_iterator start, std::string::const_iterator end)
 
std::string::size_type character_len (const std::string &str, std::string::size_type start, std::string::size_type end)
 
std::string::size_type character_len (const std::string &str)
 
template<class It >
std::pair< char32_t, It > _utf8_decode (It it, It end)
 
std::pair< char32_t, std::string::iterator > utf8_decode (std::string::iterator start, std::string::iterator end)
 
std::pair< char32_t, std::string::const_iterator > utf8_decode (std::string::const_iterator start, std::string::const_iterator end)
 
char32_t utf8_decode (const std::string &start, std::string::size_type &idx)
 
template<typename T , typename T2 >
constexpr auto round_div (T a, T2 b) -> std::enable_if_t< std::is_integral< decltype(a/b)>::value, long >
 
std::pair< char32_t, std::string::iterator > utf8_decode (std::string::iterator)
 
std::pair< char32_t, std::string::const_iterator > utf8_decode (std::string::const_iterator)
 

Variables

const std::codecvt_utf8< char32_t > char32_conv
 

Function Documentation

◆ _utf8_decode()

template<class It >
std::pair<char32_t, It> zxcvbn::util::_utf8_decode ( It  it,
It  end 
)

Definition at line 103 of file util.cpp.

Here is the caller graph for this function:

◆ _utf8_iter()

template<class It >
It zxcvbn::util::_utf8_iter ( It  start,
It  end 
)

Definition at line 67 of file util.cpp.

Here is the caller graph for this function:

◆ ascii_lower()

std::string zxcvbn::util::ascii_lower ( const std::string &  in)

Definition at line 15 of file util.cpp.

Here is the caller graph for this function:

◆ character_len() [1/2]

std::string::size_type zxcvbn::util::character_len ( const std::string &  str)

Definition at line 98 of file util.cpp.

Here is the call graph for this function:

◆ character_len() [2/2]

std::string::size_type zxcvbn::util::character_len ( const std::string &  str,
std::string::size_type  start,
std::string::size_type  end 
)

Definition at line 84 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reverse_string()

std::string zxcvbn::util::reverse_string ( const std::string &  in)

Definition at line 28 of file util.cpp.

Here is the caller graph for this function:

◆ round_div()

template<typename T , typename T2 >
constexpr auto zxcvbn::util::round_div ( a,
T2  b 
) -> std::enable_if_t<std::is_integral<decltype(a / b)>::value, long>
constexpr

Definition at line 14 of file util.hpp.

◆ utf8_decode() [1/5]

char32_t zxcvbn::util::utf8_decode ( const std::string &  start,
std::string::size_type &  idx 
)

Definition at line 134 of file util.cpp.

Here is the call graph for this function:

◆ utf8_decode() [2/5]

std::pair<char32_t, std::string::const_iterator> zxcvbn::util::utf8_decode ( std::string::const_iterator  start,
std::string::const_iterator  end 
)

Definition at line 129 of file util.cpp.

Here is the call graph for this function:

◆ utf8_decode() [3/5]

std::pair<char32_t, std::string::const_iterator> zxcvbn::util::utf8_decode ( std::string::const_iterator  )

◆ utf8_decode() [4/5]

std::pair<char32_t, std::string::iterator> zxcvbn::util::utf8_decode ( std::string::iterator  start,
std::string::iterator  end 
)

Definition at line 124 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ utf8_decode() [5/5]

std::pair<char32_t, std::string::iterator> zxcvbn::util::utf8_decode ( std::string::iterator  )

◆ utf8_iter() [1/2]

std::string::const_iterator zxcvbn::util::utf8_iter ( std::string::const_iterator  start,
std::string::const_iterator  end 
)

Definition at line 79 of file util.cpp.

Here is the call graph for this function:

◆ utf8_iter() [2/2]

std::string::iterator zxcvbn::util::utf8_iter ( std::string::iterator  start,
std::string::iterator  end 
)

Definition at line 74 of file util.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ utf8_valid() [1/2]

bool zxcvbn::util::utf8_valid ( const std::string &  str)

Definition at line 62 of file util.cpp.

Here is the call graph for this function:

◆ utf8_valid() [2/2]

bool zxcvbn::util::utf8_valid ( std::string::const_iterator  start,
std::string::const_iterator  end 
)

Definition at line 37 of file util.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ char32_conv

const std::codecvt_utf8<char32_t> zxcvbn::util::char32_conv

Definition at line 35 of file util.cpp.