mirror of
https://github.com/szymon-jozef/static-site-generator.git
synced 2026-10-27 19:20:41 +01:00
removed convert_string_to_set() function declaration
This commit is contained in:
@@ -3,19 +3,3 @@
|
|||||||
|
|
||||||
// trim string in-place, removing all whitespaces and surrounding '"' symbols
|
// trim string in-place, removing all whitespaces and surrounding '"' symbols
|
||||||
void trim(std::string &str);
|
void trim(std::string &str);
|
||||||
|
|
||||||
// Convert a string containing an inline YAML/JSON-style list of strings
|
|
||||||
// into a std::set<std::string>.
|
|
||||||
//
|
|
||||||
// Supported format (single line):
|
|
||||||
// ["haha", "dupa", "xdd"]
|
|
||||||
//
|
|
||||||
// Limitations:
|
|
||||||
// - no nested structures
|
|
||||||
// - no escaping inside strings
|
|
||||||
// - elements must be quoted
|
|
||||||
//
|
|
||||||
// Example:
|
|
||||||
// Input: ["haha", "dupa", "xdd"]
|
|
||||||
// Output: {"dupa", "haha", "xdd"} // sorted, unique
|
|
||||||
std::set<std::string> convert_string_to_set(std::string input);
|
|
||||||
|
|||||||
Reference in New Issue
Block a user