returns a canonical line of a obj or mtl file . e.g. it removes multiple whitespaces or comments from the given string . concode_field_sep Pattern splitBySpace concode_elem_sep Pattern trimWhiteSpaces concode_elem_sep Pattern removeInlineComments concode_field_sep void trim concode_elem_sep List<String> fastSplit concode_elem_sep String[] splitBySpace
String function ( String arg0 ) { arg0 = trimWhiteSpaces . matcher ( arg0 ) . replaceAll ( "srini_string" ) ; if ( arg0 . contains ( "srini_string" ) ) { String [ ] loc0 = removeInlineComments . split ( arg0 ) ; if ( loc0 . length > 0 ) arg0 = loc0 [ 0 ] ; } return arg0 ; }