30 return QValidator::Intermediate;
33 for (
int idx = 0; idx < input.size();) {
34 bool removeChar =
false;
35 QChar ch = input.at(idx);
39 switch (ch.unicode()) {
61 QValidator::State state = QValidator::Acceptable;
62 for (
int idx = 0; idx < input.size(); ++idx) {
63 int ch = input.at(idx).unicode();
65 if (((ch >=
'0' && ch <=
'9') ||
66 (ch >=
'a' && ch <=
'z') ||
67 (ch >=
'A' && ch <=
'Z')) &&
68 ch !=
'l' && ch !=
'I' && ch !=
'0' && ch !=
'O') {
71 state = QValidator::Invalid;
88 return QValidator::Acceptable;
90 return QValidator::Invalid;
State validate(QString &input, int &pos) const
BitcoinAddressCheckValidator(QObject *parent)
BitcoinAddressEntryValidator(QObject *parent)
State validate(QString &input, int &pos) const
bool IsValidDestination(const CWDestination &address)
CWDestination DecodeDestination(const std::string &strAddress)
boost::variant< CNoDestination, CKeyID, CScriptID, CExchangeKeyID > CTxDestination
A txout script template with a specific destination.