Top Description Methods
uk.ac.ed.ph.snuggletex

public Interface NumberMatcher

Known Direct Implementers
uk.ac.ed.ph.snuggletex.SimpleNumberMatcher, uk.ac.ed.ph.snuggletex.DecimalFormatNumberMatcher

Interface for classes which identify numbers in Math mode input.

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.

Author
David McKain
Since
1.3.0
Version
$Revision$
See Also
SimpleNumberMatcher, DecimalFormatNumberMatcher

Method Summary

Modifier and TypeMethod and Description
public 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.

Method Detail

getNumberEndback to summary
public 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. If it is a number, return the index of the next non-number character. Otherwise, return -1.