private boolean onBol ( Source source ) { int offset = source . getOffset ( ) ; if ( offset == 0 ) { return true ; } else { char c = source . charAt ( offset ) ; char p = source . charAt ( offset - 1 ) ; return c != ' ' && c != ' ' && ( p == ' ' || p == ' ' ) ; } }
Check we are on the beginning of line