We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74da8a3 commit cc79051Copy full SHA for cc79051
src/utils.cpp
@@ -5,9 +5,6 @@
5
#include <iterator>
6
7
namespace Exiv2 {
8
-bool startsWith(std::string_view s, std::string_view start) {
9
- return s.find(start) == 0;
10
-}
11
12
std::string upper(const std::string& str) {
13
std::string result;
src/utils.hpp
@@ -5,7 +5,9 @@
#include <string_view>
-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);
0 commit comments