public class CJKTextWidthCounter extends Object implements TextWidthCounter
CJK aware TextWidthCounter implementation.
This class uses East Asian Width information of Unicode and counts 2 for Wide, Full and Ambiguous characters.
The application code should not use this class directly.
Constructor and Description |
---|
CJKTextWidthCounter() |
public int width(String text)
TextWidthCounter
width
in interface TextWidthCounter
text
- The text to inspect.Copyright © 2012–2015. All rights reserved.