0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-16 15:00:51 +01:00

ircd: Add chrono::hours; various cleanup; comments.

This commit is contained in:
Jason Volk 2017-10-03 03:56:06 -07:00
parent 47f3167479
commit 4cf197d263
2 changed files with 3 additions and 2 deletions

View file

@ -25,6 +25,7 @@
namespace ircd namespace ircd
{ {
using std::chrono::hours;
using std::chrono::seconds; using std::chrono::seconds;
using std::chrono::milliseconds; using std::chrono::milliseconds;
using std::chrono::microseconds; using std::chrono::microseconds;

View file

@ -51,11 +51,11 @@ namespace ircd
string_view strip(const string_view &str, const char &c = ' '); string_view strip(const string_view &str, const char &c = ' ');
string_view strip(const string_view &str, const string_view &c); string_view strip(const string_view &str, const string_view &c);
// split view on first match of delim; delim not included; no delim .second empty // split view on first match of delim; delim not included; if no delim then .second empty
std::pair<string_view, string_view> split(const string_view &str, const char &delim = ' '); std::pair<string_view, string_view> split(const string_view &str, const char &delim = ' ');
std::pair<string_view, string_view> split(const string_view &str, const string_view &delim); std::pair<string_view, string_view> split(const string_view &str, const string_view &delim);
// split view on last match of delim; delim not included; no delim .second empty // split view on last match of delim; delim not included; if no delim then .second empty
std::pair<string_view, string_view> rsplit(const string_view &str, const char &delim = ' '); std::pair<string_view, string_view> rsplit(const string_view &str, const char &delim = ' ');
std::pair<string_view, string_view> rsplit(const string_view &str, const string_view &delim); std::pair<string_view, string_view> rsplit(const string_view &str, const string_view &delim);