         
 //        let documentsDir = NSSearchPathForDirectoriesInDomains(.DocumentDirectory, .UserDomainMask, true)[0]
         let path: NSString
-        path = NSBundle.mainBundle().pathForResource("sample", ofType: "pdf")!
+        path = NSBundle.mainBundle().pathForResource("sample2", ofType: "pdf")!
 //        let globaloptlist: String = String(format: "searchpath={{%@} {%@/extractor_ios.app} {%@/extractor_ios.app/resource/cmap}}", arguments: [documentsDir,NSHomeDirectory(),NSHomeDirectory()])
         
         let tet = TET()

        //スタッフの人数分(配列の最後まで)繰り返す
        for(var i = 1; i < staffarray.count; i++){
            
//            var daycounter = 0
            var staffnametmp = ""
            var staffarraytmp = ""
            
            staffarray[i] = staffarray[i].stringByReplacingOccurrencesOfString(" ", withString: "")
            staffarray[i] = staffarray[i].stringByReplacingOccurrencesOfString("　", withString: "")
            
            //TODO: 2番目から読み取り開始
            staffarraytmp = staffarray[i]
            if(i <= 9){
                position = 1

                position = 2
            }
            
            //スタッフ名の抽出(シフト体制に含まれる文字が出るまで)
            var getcharacterstaffname = staffarraytmp[staffarraytmp.startIndex.advancedBy(position)]
            while(DBmethod().SearchShiftSystem(String(getcharacterstaffname)) == nil){
                                
                if(othershiftsystem.contains(String(getcharacterstaffname))){         //ShiftSystemにない細かいのも検出するため
                    break
                }
                staffnametmp = staffnametmp + String(getcharacterstaffname)
                position += 1
                getcharacterstaffname = staffarraytmp[staffarraytmp.startIndex.advancedBy(position)]
            }
            
            
            //抽出したスタッフ名(マネージャーのMは除く)が1文字以下or4文字以上ならエラーとして記録
//            staffnametmp = staffnametmp.stringByReplacingOccurrencesOfString("M", withString: "")
//            staffnametmp = staffnametmp.stringByReplacingOccurrencesOfString("Ｍ", withString: "")
            let removem = staffnametmp.stringByReplacingOccurrencesOfString("M", withString: "")
            
            if(removem.characters.count <= 1 || removem.characters.count >= 4){
                errorstaff.append(staffarraytmp)
            }else{
                //シフトの抽出&記録を1クール分行う
                let startindex = staffarraytmp.startIndex.advancedBy(position)
                print(staffnametmp+"   "+String(staffarraytmp[startindex]) + "  " + String(startindex))
                
                while(daycounter < monthrange.length){
                    var getcharactershift = ""
                    
                    
                    if(holiday.contains(getcharactershift) == false){
                        dayshiftarray[daycounter] = "hogehoge"
                        daycounter += 1
                    }else{
                        daycounter += 1
                    }
                }
            }
            
            
            
            
            
            
            
            
            
            
            
            //TODO: シフトを抽出
            //TODO: シフト体制(holiday)以外であればdayshiftarrayへ記録
            //TODO: 記録したらdaycounterを1アップ
            //TODO: holydayにあった場合は記録をせずdaycounterを上げる
//            print(staffarray[i])
