private int _countCharsStart ( final char ch ) { int nCount = 0 ; for ( int i = 0 ; i < m_sValue . length ( ) ; i ++ ) { final char c = m_sValue . charAt ( i ) ; if ( c == ' ' ) continue ; if ( c != ch ) break ; nCount ++ ; } return nCount ; }
Counts the amount of ch at the start of this line ignoring spaces .