Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
str.h File Reference
#include <string>
Include dependency graph for str.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool CaseInsensitiveEqual (const std::string &s1, const std::string &s2)
template<typename CharType, size_t StringLength>
bool NextString (CharType(&string)[StringLength], CharType min_char, CharType max_char)
 Increment a string.
template<typename CharType, size_t StringLength, typename Fn>
void ForEachNoDup (CharType(&string)[StringLength], CharType min_char, CharType max_char, Fn &&fn)
 Iterate over string values and call function for each string without successive duplicate characters.

Function Documentation

◆ CaseInsensitiveEqual()

bool CaseInsensitiveEqual ( const std::string & s1,
const std::string & s2 )

Definition at line 10 of file str.cpp.

Here is the caller graph for this function:

◆ ForEachNoDup()

template<typename CharType, size_t StringLength, typename Fn>
void ForEachNoDup ( CharType(&) string[StringLength],
CharType min_char,
CharType max_char,
Fn && fn )

Iterate over string values and call function for each string without successive duplicate characters.

Definition at line 32 of file str.h.

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

◆ NextString()

template<typename CharType, size_t StringLength>
bool NextString ( CharType(&) string[StringLength],
CharType min_char,
CharType max_char )

Increment a string.

Useful to enumerate all fixed length strings with characters in [min_char, max_char].

Definition at line 17 of file str.h.

Here is the caller graph for this function: