mirror of
https://github.com/szymon-jozef/static-site-generator.git
synced 2026-09-07 12:10:42 +02:00
create modules
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
#include <set>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
||||
void trim(std::string &str) {
|
||||
str.erase(str.find_last_not_of(' ') + 1);
|
||||
str.erase(0, str.find_first_not_of(' '));
|
||||
str.erase(str.find_last_not_of('"') + 1);
|
||||
str.erase(0, str.find_first_not_of('"'));
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
#include <string>
|
||||
|
||||
// trim string in-place, removing all whitespaces and surrounding '"' symbols
|
||||
void trim(std::string &str);
|
||||
Reference in New Issue
Block a user