public static int parseTitleMap(String s) throws NumberFormatException {
  int titleCase=MAP_UNDEFINED;
  int length=s.length();
  if (length >= 4 && length <= 6) {
    titleCase=Integer.parseInt(s,16);
  }
 else   if (s.length() != 0) {
    throw new NumberFormatException();
  }
  return titleCase;
}

public static int parseTitleMap ( String s ) throws NumberFormatException { int titleCase = MAP_UNDEFINED ; int length = s . length ( ) ; if ( length >= 4 && length <= 6 ) { titleCase = Integer . parseInt ( s , 16 ) ; } else if ( s . length ( ) != 0 ) { throw new NumberFormatException ( ) ; } return titleCase ; }
parse the titlecase mapping attribute for a unicode character . if there is a titlecase mapping attribute and the parse succeeds , then the hastitlemap field is set to true , the titlemap field of this unicodespec object is updated , and false is returned . if the titlecase mapping attribute is an empty string , the parse succeeds but the hastitlemap field is set to false . ( and false is returned ) . the titlecase mapping attribute should be a four to six digit hexadecimal integer .
