ATLAS Offline Software
Namespaces | Functions
starts_with.h File Reference

C++20-like starts_with/ends_with for strings. More...

#include <string>
#include "CxxUtils/starts_with.icc"
Include dependency graph for starts_with.h:

Go to the source code of this file.

Namespaces

 CxxUtils
 

Functions

bool CxxUtils::starts_with (const char *s, const char *prefix)
 Test whether one null-terminated byte string starts with another. More...
 
bool CxxUtils::starts_with (const std::string &s, const char *prefix)
 Test whether one string starts with a null-terminated byte string. More...
 
bool CxxUtils::starts_with (const std::string &s, const std::string &prefix)
 Test whether one string starts with another. More...
 
bool CxxUtils::ends_with (const char *s, const char *suffix)
 Test whether one null-terminated byte string ends with another. More...
 
bool CxxUtils::ends_with (const std::string &s, const char *suffix)
 Test whether one string ends with a null-terminated byte string. More...
 
bool CxxUtils::ends_with (const std::string &s, const std::string &suffix)
 Test whether one string ends with another. More...
 

Detailed Description

C++20-like starts_with/ends_with for strings.

Author
scott snyder snyde.nosp@m.r@bn.nosp@m.l.gov
Date
Mar, 2023

Definition in file starts_with.h.