private static int parseNumericFontWeight(String fontWeightString){
  return fontWeightString.length() == 3 && fontWeightString.endsWith("00") && fontWeightString.charAt(0) <= '9' && fontWeightString.charAt(0) >= '1' ? 100 * (fontWeightString.charAt(0) - '0') : -1;
}

private static int parseNumericFontWeight ( String fontWeightString ) { return fontWeightString . length ( ) == 3 && fontWeightString . endsWith ( "00" ) && fontWeightString . charAt ( 0 ) <= '9' && fontWeightString . charAt ( 0 ) >= '1' ? 100 * ( fontWeightString . charAt ( 0 ) - '0' ) : - 1 ; }
return - 1 if the input string is not a valid numeric fontweight ( 100 , 200 , . . . , 900 ) , otherwise return the weight . this code is duplicated in reacttextinputmanager todo : factor into a common place they can both use
