question: public static int parseDecimalValue ( String s ) throws NumberFormatException { int value = - 1 ; if ( s . length ( ) > 0 ) { value = Integer . parseInt ( s , 10 ) ; } return value ; }
target:  Parse the decimal value attribute for a Unicode character.  If there is a decimal value attribute and the parse succeeds, then the hasDecimalValue field is set to true, the decimalValue field of this UnicodeSpec object is updated, and false is returned. If the decimal value attribute is an empty string, the parse succeeds but the hasDecimalValue field is set to false. (and false is returned). The decimal value attribute, if any, should be a nonnegative decimal integer.