blob: 5fd6d39aa0036753c413ec043fb21eed6a5939be [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
package android.icu.impl.number.parse;
/**
* @author sffc
* @hide Only a subset of ICU is exposed in Android
*
*/
public class RequireAffixValidator extends ValidationMatcher {
@Override
public void postProcess(ParsedNumber result) {
if (result.prefix == null || result.suffix == null) {
// We saw a prefix or a suffix but not both. Fail the parse.
result.flags |= ParsedNumber.FLAG_FAIL;
}
}
@Override
public String toString() {
return "<RequireAffix>";
}
}