public class SimpleNumberMatcher extends Object implements NumberMatcher
NumberMatcher that handles western-style
numeric characters, supporting Locale-specific decimal points.DecimalFormatNumberMatcher| Constructor and Description |
|---|
SimpleNumberMatcher() |
SimpleNumberMatcher(Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberEnd(InputContext input,
int startIndex)
Implementations should analyse the given
InputContext starting at the given
index to see if it looks like an (unsigned) number. |
public SimpleNumberMatcher()
public SimpleNumberMatcher(Locale locale)
public int getNumberEnd(InputContext input, int startIndex)
NumberMatcherInputContext starting at the given
index to see if it looks like an (unsigned) number. If it is a number, return the
index of the next non-number character. Otherwise, return -1.getNumberEnd in interface NumberMatcherCopyright © 2008–2026 The University of Edinburgh. All rights reserved.