|
|
|
@ -3,10 +3,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
namespace cb {
|
|
|
|
namespace cb {
|
|
|
|
bool string::starts_with(std::string_view content, std::string_view begins_with) {
|
|
|
|
bool string::starts_with(std::string_view content, std::string_view begins_with) {
|
|
|
|
return content.find(begins_with) != std::string::npos;
|
|
|
|
return content.find(begins_with) != std::string_view::npos;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool string::ends_with(std::string_view content, std::string_view ends_with) {
|
|
|
|
bool string::ends_with(std::string_view content, std::string_view ends_with) {
|
|
|
|
return content.find(ends_with) != std::string::npos;
|
|
|
|
return content.find(ends_with) != std::string_view::npos;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|