public interface NumberMatcher
The default implementation is SimpleNumberMatcher, which will probably be fine
for Western use. Use DecimalFormatNumberMatcher if you need something more complex,
or create your own implementation if required.
SimpleNumberMatcher,
DecimalFormatNumberMatcher| 限定符和类型 | 方法和说明 |
|---|---|
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. |
int getNumberEnd(InputContext input, int startIndex)
InputContext 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.