1#ifndef CODEX_STRING_STRING_H
2#define CODEX_STRING_STRING_H
10 std::string_view
s, std::string_view
p
12 return s.substr(
s.starts_with(
p) ?
p.
size() : 0);
16 std::string_view
s, std::string_view
p
18 return s.substr(
s.starts_with(
p) *
p.
size());
22 std::string_view
s, std::string_view
p
25 (!
p.empty() && std::memcmp(
s.
data(),
p.data(),
p.size()) == 0)
30 std::string_view
s, std::string_view
p
32 const char *
const t = (std::strncmp(
s.
data(),
p.data(),
p.size()) == 0)
std::string_view remove_prefix_tern(std::string_view s, std::string_view p)
Definition string.hpp:9
std::string_view remove_prefix_mul(std::string_view s, std::string_view p)
Definition string.hpp:15
std::string_view remove_prefix_c_strncmp(std::string_view s, std::string_view p)
Definition string.hpp:29
std::string_view remove_prefix_c(std::string_view s, std::string_view p)
Definition string.hpp:21
#define p()
Definition std2.c:11
#define t(a)
Definition std2.c:10
constexpr const char * data(void) const
Definition utils.hpp:18
constexpr std::size_t size(void) const
Definition utils.hpp:17
constexpr fixed_string s
Definition test.cpp:6