public class SimpleNumberMatcher extends java.lang.Object implements NumberMatcher
NumberMatcher that handles western-style
numeric characters, supporting Locale-specific decimal points.DecimalFormatNumberMatcher| 构造器和说明 |
|---|
SimpleNumberMatcher() |
SimpleNumberMatcher(java.util.Locale locale) |
| 限定符和类型 | 方法和说明 |
|---|---|
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(java.util.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 在接口中 NumberMatcher