private boolean isGroupingPosition ( int pos ) { boolean result = false ; if ( isGroupingUsed ( ) && ( pos > 0 ) && ( groupingSize > 0 ) ) { if ( ( groupingSize2 > 0 ) && ( pos > groupingSize ) ) { result = ( ( pos - groupingSize ) % groupingSize2 ) == 0 ; } else { result = pos % groupingSize == 0 ; } } return result ; }
Returns true if a grouping separator belongs at the given position based on whether grouping is in use and the values of the primary and secondary grouping interval .