IgrOS-Kernel
0.1.34.545
Simple C++20 Kernel for i386/x86_64
Loading...
Searching...
No Matches
kString.hpp
Go to the documentation of this file.
1
11
12
13
#pragma once
14
15
16
// C++
17
#include <string_view>
18
19
20
// Kernel library code zone
21
namespace
igros::klib
{
22
23
27
[[nodiscard]]
28
constexpr
auto
kstrview
(
const
char
*
const
src)
noexcept
-> std::string_view {
29
return
(
nullptr
!= src) ? std::string_view {src} : std::string_view {};
30
}
31
32
33
}
// namespace igros::klib
34
igros::klib
Freestanding kernel library: printing, math, alignment, flags, strings.
igros::klib::kstrview
constexpr auto kstrview(const char *const src) noexcept -> std::string_view
View of null-terminated string (null pointer is empty string).
Definition
kString.hpp:28
klib
kString.hpp
Generated by
1.15.0