diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/hack.png b/hack.png old mode 100644 new mode 100755 diff --git a/meson.build b/meson.build old mode 100644 new mode 100755 diff --git a/src/concepts/concepts.hpp b/src/concepts/concepts.hpp old mode 100644 new mode 100755 diff --git a/src/container/container.hpp b/src/container/container.hpp old mode 100644 new mode 100755 diff --git a/src/iterators/associative_ostream_iterator.hpp b/src/iterators/associative_ostream_iterator.hpp old mode 100644 new mode 100755 diff --git a/src/iterators/sequence_ostream_iterator.hpp b/src/iterators/sequence_ostream_iterator.hpp old mode 100644 new mode 100755 diff --git a/src/logger/logger.cpp b/src/logger/logger.cpp old mode 100644 new mode 100755 diff --git a/src/logger/logger.hpp b/src/logger/logger.hpp old mode 100644 new mode 100755 diff --git a/src/logger/meson.build b/src/logger/meson.build old mode 100644 new mode 100755 diff --git a/src/math/matrix.hpp b/src/math/matrix.hpp old mode 100644 new mode 100755 diff --git a/src/math/max.hpp b/src/math/max.hpp old mode 100644 new mode 100755 diff --git a/src/math/vector.hpp b/src/math/vector.hpp old mode 100644 new mode 100755 diff --git a/src/meson.build b/src/meson.build old mode 100644 new mode 100755 diff --git a/src/range/range.hpp b/src/range/range.hpp old mode 100644 new mode 100755 diff --git a/src/security/is_link.hpp b/src/security/is_link.hpp old mode 100644 new mode 100755 diff --git a/src/security/is_string.hpp b/src/security/is_string.hpp old mode 100644 new mode 100755 diff --git a/src/security/uuid.hpp b/src/security/uuid.hpp old mode 100644 new mode 100755 diff --git a/src/security/validate_email.hpp b/src/security/validate_email.hpp old mode 100644 new mode 100755 diff --git a/src/string/string.hpp b/src/string/string.hpp old mode 100644 new mode 100755 diff --git a/src/string/string_concat_helper.hpp b/src/string/string_concat_helper.hpp old mode 100644 new mode 100755 diff --git a/src/string/utf8_len.hpp b/src/string/utf8_len.hpp old mode 100644 new mode 100755 diff --git a/src/utils/func_query.hpp b/src/utils/func_query.hpp old mode 100644 new mode 100755 index 8de6098..662690c --- a/src/utils/func_query.hpp +++ b/src/utils/func_query.hpp @@ -8,7 +8,7 @@ namespace hack::utils { - using json = nlohmann::json; + using JSON = nlohmann::json; template std::string make_one(First f) @@ -39,7 +39,7 @@ namespace hack::utils f_str = std::regex_replace(f_str, std::regex("'"), "[quote]"); return std::string("'") + f_str + std::string("',"); } - inline std::string make_one(json f) + inline std::string make_one(JSON f) { std::string f_str = nlohmann::to_string(f); f_str = std::regex_replace(f_str, std::regex("'"), "[quote]"); diff --git a/src/utils/utils.hpp b/src/utils/utils.hpp old mode 100644 new mode 100755 index d0bddda..d2260c4 --- a/src/utils/utils.hpp +++ b/src/utils/utils.hpp @@ -52,8 +52,7 @@ namespace hack::utils std::array buffer; std::unique_ptr pipe(popen(cmd.c_str(), "r"), pclose); - if (!pipe) - throw std::runtime_error("bash cmd failed"); + if (!pipe) throw std::runtime_error("bash cmd failed"); while (fgets(buffer.data(), buffer.size(), pipe.get()) != nullptr) { @@ -63,12 +62,6 @@ namespace hack::utils return result; } - template - struct counter - { - inline static T id = value; - }; - // this function can will use // as switch wiht string // switch(case_int("key")) diff --git a/src/view/color.hpp b/src/view/color.hpp old mode 100644 new mode 100755 diff --git a/subprojects/gtest.wrap b/subprojects/gtest.wrap old mode 100644 new mode 100755 diff --git a/subprojects/nlohmann_json.wrap b/subprojects/nlohmann_json.wrap old mode 100644 new mode 100755 diff --git a/tests/container.cpp b/tests/container.cpp old mode 100644 new mode 100755 diff --git a/tests/math.cpp b/tests/math.cpp old mode 100644 new mode 100755 diff --git a/tests/meson.build b/tests/meson.build old mode 100644 new mode 100755 diff --git a/tests/range.cpp b/tests/range.cpp old mode 100644 new mode 100755 diff --git a/tests/string.cpp b/tests/string.cpp old mode 100644 new mode 100755