no message
parent
6b9e50c566
commit
0da00a604c
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2021-07-23 23:39:57
|
||||
* @LastEditTime: 2021-08-09 01:09:14
|
||||
* @LastEditTime: 2021-08-11 01:15:55
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: In User Settings Edit
|
||||
* @FilePath: \generallib\general\src\function\daemon.c
|
||||
|
@ -61,11 +61,14 @@ vector<string> StripList(const char *in,const char* d){
|
|||
}
|
||||
}
|
||||
if(pos_strip_continue[pos_strip_continue.size() - 1] != (strlen(in) - 1)){
|
||||
pos_strip_continue.push_back(pos_strip_continue[pos_strip_continue.size() - 1] + 1);
|
||||
pos_strip_continue.push_back(pos_strip_continue[pos_strip_continue.size() - 1] + 2);
|
||||
pos_strip_continue.push_back(strlen(in) - 1);
|
||||
}
|
||||
std::cout<<pos_strip_continue.size()<<std::endl;
|
||||
|
||||
for(int i = 0;i < pos_strip_continue.size()/2;i++){
|
||||
string ins = string(&in[pos_strip_continue[i*2]],&(in[pos_strip_continue[i*2 + 1]]) + 1);
|
||||
ret.push_back(ins);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue