Move 1-liner to header file

This commit is contained in:
Luis Díaz Más 2022-04-13 21:06:25 +02:00
parent 74da8a394f
commit cc79051b79
2 changed files with 3 additions and 4 deletions

View File

@ -5,9 +5,6 @@
#include <iterator>
namespace Exiv2 {
bool startsWith(std::string_view s, std::string_view start) {
return s.find(start) == 0;
}
std::string upper(const std::string& str) {
std::string result;

View File

@ -5,7 +5,9 @@
#include <string_view>
namespace Exiv2 {
bool startsWith(std::string_view s, std::string_view start);
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);