context: function parseIcalData( icalStr ){   var calendarEventArray =  new Array();   var i,j;   while( icalStr.indexOf("BEGIN:VEVENT") != -1 )   {       // try to find the begin and end of an event. ParseIcalString does not support VCALENDAR      i = icalStr.indexOf("BEGIN:VEVENT");      j = icalStr.indexOf("END:VEVENT") + 10;      eventData = icalStr.substring(i, j);      calendarEvent = createEvent();      if ( !calendarEvent.parseIcalString(eventData) )      // parsing import iCalendar failed.       {         // initialize start and end dates.         initCalendarEvent( calendarEvent );         // Save clipboard text into description.         calendarEvent.description = icalStr;            }      calendarEventArray[ calendarEventArray.length ] = calendarEvent;      // remove the parsed VEVENT from the calendar data to parse      icalStr = icalStr.substring(j+1);   }      return calendarEventArray;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/77a8635c150ffa68ee4502b24e7e5f4a44e05894/calendarImportExport.js/clean/calendar/resources/content/calendarImportExport.js