From 4cf197d2637d82b569fcc6fc2b3b851398b8f33b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 3 Oct 2017 03:56:06 -0700 Subject: [PATCH] ircd: Add chrono::hours; various cleanup; comments. --- include/ircd/date.h | 1 + include/ircd/stringops.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/ircd/date.h b/include/ircd/date.h index 5c8a08ec5..2ef93412c 100644 --- a/include/ircd/date.h +++ b/include/ircd/date.h @@ -25,6 +25,7 @@ namespace ircd { + using std::chrono::hours; using std::chrono::seconds; using std::chrono::milliseconds; using std::chrono::microseconds; diff --git a/include/ircd/stringops.h b/include/ircd/stringops.h index 9836e0467..487d7a741 100644 --- a/include/ircd/stringops.h +++ b/include/ircd/stringops.h @@ -51,11 +51,11 @@ namespace ircd string_view strip(const string_view &str, const char &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 split(const string_view &str, const char &delim = ' '); std::pair 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 rsplit(const string_view &str, const char &delim = ' '); std::pair rsplit(const string_view &str, const string_view &delim);