コード例 #1
0
 public void Add(char ch)
 {
     LastColumnCount =
         (ch == CharUtil.Tab) ? _tabCount - (TotalColumnCount % _tabCount)
         : CharUtil.IsHalfWidth(ch) ? 1
         : 2;
     TotalColumnCount += LastColumnCount;
     LastCharCount     = ch == CharUtil.Tab ? LastColumnCount : 1;
 }