private static void parseWday(String str,int[] byday,int[] bydayNum,int index){
  int wdayStrStart=str.length() - 2;
  String wdayStr;
  if (wdayStrStart > 0) {
    String numPart=str.substring(0,wdayStrStart);
    int num=parseIntRange(numPart,-53,53,false);
    bydayNum[index]=num;
    wdayStr=str.substring(wdayStrStart);
  }
 else {
    wdayStr=str;
  }
  Integer wday=sParseWeekdayMap.get(wdayStr);
  if (wday == null) {
    throw new InvalidFormatException("Invalid BYDAY value: " + str);
  }
  byday[index]=wday;
}

private static void parseWday ( String str , int [ ] byday , int [ ] bydayNum , int index ) { int wdayStrStart = str . length ( ) - 2 ; String wdayStr ; if ( wdayStrStart > 0 ) { String numPart = str . substring ( 0 , wdayStrStart ) ; int num = parseIntRange ( numPart , - 53 , 53 , false ) ; bydayNum [ index ] = num ; wdayStr = str . substring ( wdayStrStart ) ; } else { wdayStr = str ; } Integer wday = sParseWeekdayMap . get ( wdayStr ) ; if ( wday == null ) { throw new InvalidFormatException ( "Invalid BYDAY value: " + str ) ; } byday [ index ] = wday ; }
parses [ int ] weekday , putting the pieces into parallel array entries
