Searched refs:yearString (Results 1 – 2 of 2) sorted by relevance
181 private static int getYear(String yearString) { in getYear() argument182 if (yearString.length() == 2) { in getYear()183 int year = (yearString.charAt(0) - '0') * 10 in getYear()184 + (yearString.charAt(1) - '0'); in getYear()190 } else if (yearString.length() == 3) { in getYear()192 int year = (yearString.charAt(0) - '0') * 100 in getYear()193 + (yearString.charAt(1) - '0') * 10 in getYear()194 + (yearString.charAt(2) - '0'); in getYear()196 } else if (yearString.length() == 4) { in getYear()197 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()