mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 12:49:18 +02:00
maintenance: string search methods
This commit is contained in:
@@ -216,6 +216,9 @@ std::ptrdiff_t len_common_prefix( std::string const &Left, std::string const &Ri
|
||||
bool ends_with( std::string_view String, std::string_view Suffix );
|
||||
// returns true if provided string begins with another provided string
|
||||
bool starts_with( std::string_view String, std::string_view Prefix );
|
||||
// returns true if provided string contains another provided string
|
||||
bool contains( std::string_view const String, std::string_view Substring );
|
||||
bool contains( std::string_view const String, char Character );
|
||||
|
||||
template <typename Type_>
|
||||
void SafeDelete( Type_ &Pointer ) {
|
||||
|
||||
Reference in New Issue
Block a user