         return shiftnamelocation
     }
     
+    //指定したシフト体制を削除した文字列を返す関数
+    func AAA(staffarraysstring: NSString, shiftname: String) -> String{
+        var removedshiftstring = ""
+        
+        removedshiftstring = staffarraysstring.stringByReplacingOccurrencesOfString(shiftname, withString: "")
+        
+        
+        
+        
+        
+        
+        return removedshiftstring
+    }
     
     //スタッフのシフトを日にちごとに分けたArrayを返す
     func SplitDayShiftGet(var staffarray: Array<String>) -> Array<String>{

                for(var i = 0; i < holiday.count; i++){
                    holidayshiftlocationarray += self.GetShiftPositionArray(staffarraytmpnsstring, shiftname: holiday[i])
                }
            }
            
            print(holidayshiftlocationarray)

        }
        return dayshiftarray

        for(var i = 0; i < monthrange.length; i++){
            dayshiftarray.append("")
        }
      
        //スタッフの人数分(配列の最後まで)繰り返す
        for(var i = 1; i < 2; i++){
            
            var staffname = ""
            var staffarraytmp = ""
