Searched refs:yearString (Results 1 – 2 of 2) sorted by relevance
180 private static int getYear(String yearString) { in getYear() argument181 if (yearString.length() == 2) { in getYear()182 int year = (yearString.charAt(0) - '0') * 10 in getYear()183 + (yearString.charAt(1) - '0'); in getYear()189 } else if (yearString.length() == 3) { in getYear()191 int year = (yearString.charAt(0) - '0') * 100 in getYear()192 + (yearString.charAt(1) - '0') * 10 in getYear()193 + (yearString.charAt(2) - '0'); in getYear()195 } else if (yearString.length() == 4) { in getYear()196 return (yearString.charAt(0) - '0') * 1000 in getYear()[all …]
133 final String yearString = name.substring(x + 1); in testSampleFile() local136 year = Integer.parseInt(yearString); in testSampleFile()