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| 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. |
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.Copyright © 2008–2026 The University of Edinburgh. All rights reserved.