Module net.sourceforge.argparse4j
Class ASCIITextWidthCounter
java.lang.Object
net.sourceforge.argparse4j.helper.ASCIITextWidthCounter
- All Implemented Interfaces:
TextWidthCounter
This implementation assumes text contains only narrow characters,
The width is just simply the length of given text. The application code should not use this class directly.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ASCIITextWidthCounter
public ASCIITextWidthCounter()
-
-
Method Details
-
width
Description copied from interface:TextWidthCounter
Counts given text consumes how many fixed character width.- Specified by:
width
in interfaceTextWidthCounter
- Parameters:
text
- The text to inspect.- Returns:
- The computed value.
-