1#ifndef LINTEL_STRINGUTILS_H
2#define LINTEL_STRINGUTILS_H
33 static constexpr bool startsWith(std::string_view
s, std::string_view start)
35 return s.size() >= start.size() &&
s.compare(0, start.size(), start) == 0;
42 static constexpr bool endsWith(std::string_view
s, std::string_view end)
44 return s.size() >= end.size() &&
s.compare(
s.size() - end.size(), end.size(), end) == 0;
Definition StringUtils.h:13
static constexpr bool endsWith(std::string_view s, std::string_view end)
Definition StringUtils.h:42
static constexpr bool startsWith(std::string_view s, std::string_view start)
Definition StringUtils.h:33
StringUtils(StringUtils &)=delete
static std::vector< std::string > split(const std::string &s, char delimiter)
StringUtils(StringUtils &&)=delete
static std::string replaceAll(const std::string &s, std::string &&replace, std::string &&with)
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9