From c05901c38c6a77779807a6b224b9b624bfcaa5d3 Mon Sep 17 00:00:00 2001 From: Aotrix <9aotrix@protonmail.com> Date: Thu, 1 Jan 2026 03:35:41 +0100 Subject: removed useless files --- src/cardTypeHandlerInfo.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/cardTypeHandlerInfo.cpp (limited to 'src/cardTypeHandlerInfo.cpp') diff --git a/src/cardTypeHandlerInfo.cpp b/src/cardTypeHandlerInfo.cpp deleted file mode 100644 index 46e8f56..0000000 --- a/src/cardTypeHandlerInfo.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "cardTypeHandlerInfo.hpp" - -void CardTypeHandlerInfo::addCardInfo(const std::string &kCardType, const std::string &kCardValueRegex, - const std::function kJSONToSQLConverter) { -} - -const CardTypeHandlerInfo cardTypeHandlerInfoList() { - CardTypeHandlerInfo aCardTypeHandlerInfo; - - aCardTypeHandlerInfo.addCardInfo("INT", "[0-9]+", [](const std::string &kJSONContent) { return kJSONContent; }); - - aCardTypeHandlerInfo.addCardInfo("BOOL", "true|false", - [](const std::string &kJSONContent) { return kJSONContent; }); - - aCardTypeHandlerInfo.addCardInfo("STRING", "\"[^\"?]*\"", [](const std::string &kJSONContent) { - std::string aCopyOfJSONValue = kJSONContent; - *aCopyOfJSONValue.begin() = '\''; - *std::prev(aCopyOfJSONValue.end()) = '\''; - return aCopyOfJSONValue; - }); - - aCardTypeHandlerInfo.addCardInfo("LIST_OF_INT", "\\[[0-9,]*\\]", [](const std::string &kJSONContent) { - std::string aCopyOfJSONValue = kJSONContent; - aCopyOfJSONValue.append("\'"); - aCopyOfJSONValue.insert(aCopyOfJSONValue.begin(), '\''); - return aCopyOfJSONValue; - }); - - aCardTypeHandlerInfo.addCardInfo("NULL", "null", [](const std::string &kJSONContent) { return "NULL"; }); - - return aCardTypeHandlerInfo; -} -- cgit v1.2.3