diff options
Diffstat (limited to 'src/core/utils')
| -rw-r--r-- | src/core/utils/epoch.cc | 5 | ||||
| -rw-r--r-- | src/core/utils/epoch.hh | 9 | ||||
| -rw-r--r-- | src/core/utils/string.cc | 5 | ||||
| -rw-r--r-- | src/core/utils/string.hh | 9 |
4 files changed, 28 insertions, 0 deletions
diff --git a/src/core/utils/epoch.cc b/src/core/utils/epoch.cc index 36bdb79..9d66399 100644 --- a/src/core/utils/epoch.cc +++ b/src/core/utils/epoch.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: epoch.cc +// Description: UNIX time utilities + #include "core/pch.hh" #include "core/utils/epoch.hh" diff --git a/src/core/utils/epoch.hh b/src/core/utils/epoch.hh index 4bf5460..5210e22 100644 --- a/src/core/utils/epoch.hh +++ b/src/core/utils/epoch.hh @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: epoch.hh +// Description: UNIX time utilities + +#ifndef CORE_UTILS_EPOCH_HH +#define CORE_UTILS_EPOCH_HH #pragma once namespace utils @@ -13,3 +20,5 @@ std::int64_t signed_unix_seconds(void); std::int64_t signed_unix_milliseconds(void); std::int64_t signed_unix_microseconds(void); } // namespace utils + +#endif diff --git a/src/core/utils/string.cc b/src/core/utils/string.cc index dd3d567..154b04b 100644 --- a/src/core/utils/string.cc +++ b/src/core/utils/string.cc @@ -1,3 +1,8 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: string.cc +// Description: String utilities + #include "core/pch.hh" #include "core/utils/string.hh" diff --git a/src/core/utils/string.hh b/src/core/utils/string.hh index 827c3ca..36c83ce 100644 --- a/src/core/utils/string.hh +++ b/src/core/utils/string.hh @@ -1,3 +1,10 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright (c) 2025 Kirill Dmitrievich +// File: string.hh +// Description: String utilities + +#ifndef CORE_UTILS_STRING_HH +#define CORE_UTILS_STRING_HH #pragma once namespace utils @@ -15,3 +22,5 @@ namespace utils { std::string trim_whitespace(const std::string& string); } // namespace utils + +#endif |
