2 * See the file LICENSE for redistribution information.
4 * Copyright: 2010- 1stclass.co.jp. All rights reserved.
6 * Created by Hajime Kurita
13 #include "1stclass.hpp"
14 string firstclass::remove_not_file_char(const string *in_str){
18 str=new char[sizeof(char)*(in_str->length()+1)];
19 dst=new char[sizeof(char)*(in_str->length()+1)];
22 safe_strcat(str, in_str->c_str());
24 #include "lib1stclass.h"
25 int remove_not_file_char(const char *str, char *dst){
27 if(sizeof(dst)<sizeof(str)){
28 printf("Bad parameter for remove_not_file_character\n");
39 if((strrchr(str, '\0'))==NULL){
40 printf("\\0 is missing for the input parameter of remove_not_file_character\n");
52 for(i=0;i<=strlen(str);i++){
53 if(str[i]=='\\' || str[i]=='/' || str[i]==':' || str[i]=='*' || str[i]=='?' || str[i]=='"' || str[i]=='<' || str[i]=='>' || str[i]=='|'){
56 else if(str[i] == '\0'){