From 76e3d117479ff8d059cf4e8ff54a85bae93e6242 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 9 Jan 2020 06:32:13 +0100 Subject: [PATCH] Rename utils to string. --- CMakeLists.txt | 2 +- src/main.cpp | 2 +- src/{utils.cpp => string.cpp} | 2 +- src/{utils.h => string.h} | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) rename src/{utils.cpp => string.cpp} (99%) rename src/{utils.h => string.h} (96%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 470c3d7..44ff091 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,11 +13,11 @@ find_package(OpenSSL 1.1 REQUIRED) include_directories( ${OPENSSL_INCLUDE_DIR} ) add_executable( ${CMAKE_PROJECT_NAME} + src/string.cpp src/ec.cpp src/base58.cpp src/checksum.cpp src/WIF.cpp - src/utils.cpp src/main.cpp ) diff --git a/src/main.cpp b/src/main.cpp index fa85b73..2e179e5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -24,7 +24,7 @@ #include #include #include -#include "utils.h" +#include "string.h" #include "base58.h" #include "WIF.h" #include "ec.h" diff --git a/src/utils.cpp b/src/string.cpp similarity index 99% rename from src/utils.cpp rename to src/string.cpp index a5abb4d..41abd3f 100644 --- a/src/utils.cpp +++ b/src/string.cpp @@ -23,7 +23,7 @@ */ #include #include -#include "utils.h" +#include "string.h" std::vector strsplit(const std::string& str, const std::string& delim) { diff --git a/src/utils.h b/src/string.h similarity index 96% rename from src/utils.h rename to src/string.h index 6e53782..e4ba6d5 100644 --- a/src/utils.h +++ b/src/string.h @@ -21,8 +21,8 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -#ifndef UTILS_H -#define UTILS_H +#ifndef STRING_H +#define STRING_H #include #include @@ -35,4 +35,4 @@ std::string& rtrim(std::string& str); std::string& ltrim(std::string& str); std::string& trim(std::string& str); -#endif /* UTILS_H */ +#endif /* STRING_H */