pornsieve
0.0.0
Search porn sites and filter the results using regular expressions
|
Go to the documentation of this file.
23 #ifndef PORNSIEVE_HELPERS_HPP
24 #define PORNSIEVE_HELPERS_HPP
28 #include <string_view>
35 using std::string_view;
37 using std::chrono::system_clock;
85 string_view format =
"%FT%T");
89 #endif // PORNSIEVE_HELPERS_HPP
The namespace containing the pornsieve library.
Definition: config.hpp:30
string timepoint_to_string(const system_clock::time_point &timepoint, string_view format="%FT%T")
Return date and time as string in UTC.
Definition: helpers.cpp:83
std::chrono::seconds string_to_duration(string_view duration_string)
Converts a duration from string to chrono seconds.
Definition: helpers.cpp:47
vector< string > json_to_vector(string_view json, string_view key)
Converts a JSON array into a vector.
Definition: helpers.cpp:37
time_point string_to_timepoint(string_view time_string)
Converts a time from string to time_point.
Definition: helpers.cpp:72
std::chrono::system_clock::time_point time_point
In this lib we use the system clock for our time points.
Definition: helpers.hpp:38