LibSWOC++ 1.5.14
Solid Wall of C++
Loading...
Searching...
No Matches
string_view_util.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright Apache Software Foundation 2019
7
8#pragma once
9#include <bitset>
10#include <iosfwd>
11#include <memory.h>
12#include <string>
13#include <string_view>
14#include <memory>
15#include <limits>
16
29int strcasecmp(const std::string_view &lhs, const std::string_view &rhs);
30
46int memcmp(const std::string_view &lhs, const std::string_view &rhs);
47
63inline int
64strcmp(const std::string_view &lhs, const std::string_view &rhs) {
65 return memcmp(lhs, rhs);
66}
67
85inline void *
86memcpy(void *dst, const std::string_view &src) {
87 return memcpy(dst, src.data(), src.size());
88}
int strcasecmp(const std::string_view &lhs, const std::string_view &rhs)
int strcmp(const std::string_view &lhs, const std::string_view &rhs)
void * memcpy(void *dst, const std::string_view &src)
int memcmp(const std::string_view &lhs, const std::string_view &rhs)