// Allow implicit conversion from char16_t* to UnicodeString for this file: // Helpful in toString methods and elsewhere. #define UNISTR_FROM_STRING_EXPLICIT
void RequireAffixValidator::postProcess(ParsedNumber& result) const { if (result.prefix.isBogus() || result.suffix.isBogus()) { // We saw a prefix or a suffix but not both. Fail the parse.
result.flags |= FLAG_FAIL;
}
}
void RequireNumberValidator::postProcess(ParsedNumber& result) const { // Require that a number is matched. if (!result.seenNumber()) {
result.flags |= FLAG_FAIL;
}
}
void MultiplierParseHandler::postProcess(ParsedNumber& result) const { if (!result.quantity.bogus) {
fMultiplier.applyReciprocalTo(result.quantity); // NOTE: It is okay if the multiplier was negative.
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.