public void init ( ) { final String string = getString ( ) ; final int bpos = string . indexOf ( ' ' ) ; if ( bpos == - 1 ) { prefix = string ; surname = "" ; suffix = "" ; } else { final int epos = string . indexOf ( ' ' , bpos + 1 ) ; prefix = string . substring ( 0 , bpos ) ; surname = string . substring ( bpos + 1 , epos ) ; suffix = string . substring ( epos + 1 ) ; } }
Parse the name string from GEDCOM normal into its component parts .