Skip to content

Commit 72641de

Browse files
committed
Optimisation, utils dans un nouveau fichier.
1 parent df053ed commit 72641de

File tree

1 file changed

+3
-29
lines changed

1 file changed

+3
-29
lines changed

headers/FPL_F.h

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,11 @@
55
#include <vector>
66
#include <sstream>
77
#include <algorithm>
8-
#include "Management_Envoyer.h"
9-
10-
// Utils
11-
12-
std::vector<std::string> split(std::string& arg) {
13-
std::string myBuffer;
14-
15-
std::vector<std::string> myVec;
16-
17-
std::stringstream ss;
18-
ss << arg;
19-
while (ss >> myBuffer) {
20-
myVec.push_back(myBuffer);
21-
}
22-
23-
return myVec;
24-
}
25-
26-
std::vector<char> splitChar(std::string& arg) {
27-
std::istringstream iss(arg);
28-
std::vector<char> vec((std::istream_iterator<char>(iss)), std::istream_iterator<char>());;
29-
30-
return vec;
31-
}
32-
33-
std::string replace(std::string& line, std::string& what) {
34-
std::string result = line.replace(line.find(what), what.length(), "");
35-
return result;
36-
}
8+
#include <iterator>
379

3810

11+
#include "Utils.h" // Utilitaires
12+
#include "Management_Envoyer.h" // Pour executer: envoyer
3913

4014
// FPL
4115

0 commit comments

Comments
 (0)