blob: 37b67c8634d8676b37ba345a569cf32ca298d119 [file] [log] [blame]
/* GENERATED SOURCE. DO NOT MODIFY. */
// © 2017 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html#License
package android.icu.impl.number.parse;
/**
* @author sffc
* @hide Only a subset of ICU is exposed in Android
*
*/
public class RequireCurrencyMatcher extends ValidationMatcher {
@Override
public void postProcess(ParsedNumber result) {
if (result.currencyCode == null && 0 == (result.flags & ParsedNumber.FLAG_HAS_DEFAULT_CURRENCY)) {
result.flags |= ParsedNumber.FLAG_FAIL;
}
}
@Override
public String toString() {
return "<RequireCurrency>";
}
}