File tree Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Expand file tree Collapse file tree 5 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 2929// *****************************************************************************
3030namespace {
3131using namespace Exiv2 ;
32- using Exiv2::byte ;
32+ using namespace Exiv2 ::Internal ;
3333
3434// signature of DOS EPS
3535constexpr auto dosEpsSignature = std::string_view(" \xC5\xD0\xD3\xC6 " );
Original file line number Diff line number Diff line change 44#include < cctype>
55#include < iterator>
66
7- namespace Exiv2 {
7+ namespace Exiv2 ::Internal {
88
99std::string upper (const std::string& str) {
1010 std::string result;
@@ -18,4 +18,4 @@ std::string lower(const std::string& a) {
1818 return b;
1919}
2020
21- } // namespace Exiv2
21+ } // namespace Exiv2::Internal
Original file line number Diff line number Diff line change 44#include < string>
55#include < string_view>
66
7- namespace Exiv2 {
7+ namespace Exiv2 ::Internal {
8+
89constexpr bool startsWith (std::string_view s, std::string_view start) {
910 return s.find (start) == 0 ;
1011}
@@ -15,6 +16,6 @@ std::string upper(const std::string& str);
1516// / @brief Returns the lowercase version of \b str
1617std::string lower (const std::string& str);
1718
18- } // namespace Exiv2
19+ } // namespace Exiv2::Internal
1920
2021#endif // EXIV2_UTILS_HPP
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ void XmpSidecar::readMetadata() {
8484} // XmpSidecar::readMetadata
8585
8686static bool matchi (const std::string& key, const char * substr) {
87- return lower (key).find (substr) != std::string::npos;
87+ return Internal:: lower (key).find (substr) != std::string::npos;
8888}
8989
9090void XmpSidecar::writeMetadata () {
Original file line number Diff line number Diff line change 44
55#include < gtest/gtest.h>
66
7- using namespace Exiv2 ;
7+ using namespace Exiv2 ::Internal ;
88
99TEST (stringUtils, startsWithReturnsTrue) {
1010 ASSERT_TRUE (startsWith (" Exiv2 rocks" , " Exiv2" ));
You can’t perform that action at this time.
0 commit comments