Move 1-liner to header file
This commit is contained in:
parent
74da8a394f
commit
cc79051b79
@ -5,9 +5,6 @@
|
|||||||
#include <iterator>
|
#include <iterator>
|
||||||
|
|
||||||
namespace Exiv2 {
|
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 upper(const std::string& str) {
|
||||||
std::string result;
|
std::string result;
|
||||||
|
|||||||
@ -5,7 +5,9 @@
|
|||||||
#include <string_view>
|
#include <string_view>
|
||||||
|
|
||||||
namespace Exiv2 {
|
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
|
/// @brief Returns the uppercase version of \b str
|
||||||
std::string upper(const std::string& str);
|
std::string upper(const std::string& str);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user