mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-29 11:05:43 +00:00
34 lines
597 B
C++
34 lines
597 B
C++
#ifndef LLARP_STR_HPP
|
|
#define LLARP_STR_HPP
|
|
|
|
#include <util/string_view.hpp>
|
|
|
|
namespace llarp
|
|
{
|
|
bool
|
|
StrEq(const char *s1, const char *s2);
|
|
|
|
bool
|
|
IsFalseValue(string_view str);
|
|
|
|
struct CaselessLessThan
|
|
{
|
|
bool
|
|
operator()(string_view lhs, string_view rhs) const;
|
|
};
|
|
|
|
bool
|
|
IsTrueValue(string_view str);
|
|
|
|
/// Trim leading and trailing (ascii) whitespace from the given string;
|
|
/// returns a string_view of the trimmed part of the string.
|
|
#ifdef __GNUG__
|
|
[[gnu::warn_unused_result]]
|
|
#endif
|
|
string_view
|
|
TrimWhitespace(string_view str);
|
|
|
|
} // namespace llarp
|
|
|
|
#endif
|