mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-01 12:26:34 -05:00
Add a simple webui config app
This commit is contained in:
parent
1290ab9708
commit
e12303a743
23 changed files with 46696 additions and 115 deletions
22
src/str.hpp
22
src/str.hpp
|
|
@ -16,6 +16,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "nonstd/span.hpp"
|
||||
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
|
@ -87,10 +89,26 @@ namespace str
|
|||
startswith(const std::string &str_,
|
||||
const std::string &prefix_);
|
||||
|
||||
bool
|
||||
startswith(const std::string &str_,
|
||||
const std::string_view prefix_);
|
||||
|
||||
bool
|
||||
startswith(const std::string &str_,
|
||||
const char *prefix_);
|
||||
|
||||
bool
|
||||
startswith(const char *str,
|
||||
const char *prefix);
|
||||
|
||||
bool
|
||||
startswith(const char *str,
|
||||
nonstd::span<const char*> prefixes);
|
||||
|
||||
bool
|
||||
startswith(const char *str,
|
||||
nonstd::span<std::string_view> prefixes);
|
||||
|
||||
bool
|
||||
endswith(const std::string &str_,
|
||||
const std::string &suffix_);
|
||||
|
|
@ -106,4 +124,8 @@ namespace str
|
|||
replace(const std::string &s,
|
||||
const char src,
|
||||
const char dst);
|
||||
|
||||
std::string
|
||||
remove_prefix(const std::string &str,
|
||||
const std::string_view prefix);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue