exiv2/src/utils.hpp
Rosen Penev c0083d6788 clang-tidy: fix mismatching declaration variable
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2022-07-05 17:41:12 -07:00

22 lines
472 B
C++

#ifndef EXIV2_UTILS_HPP
#define EXIV2_UTILS_HPP
#include <string>
#include <string_view>
namespace Exiv2::Internal {
constexpr bool startsWith(std::string_view s, std::string_view start) {
return s.find(start) == 0;
}
/// @brief Returns the uppercase version of \b str
std::string upper(const std::string& str);
/// @brief Returns the lowercase version of \b str
std::string lower(const std::string& a);
} // namespace Exiv2::Internal
#endif // EXIV2_UTILS_HPP