From 87121c433ec1c6bea03f89927b595aa69c5b8ae7 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 2 Jan 2024 23:34:19 +0000 Subject: [PATCH] update --- Application/ApplicationAbstract.h | 2 +- .../Database/Connection/ConnectionAbstract.h | 2 +- .../Database/Connection/ConnectionFactory.h | 2 +- .../Database/Connection/DbConnectionConfig.h | 2 +- .../Database/Connection/MysqlConnection.h | 2 +- .../Connection/PostgresqlConnection.h | 2 +- .../Database/Connection/SQLiteConnection.h | 2 +- DataStorage/Database/DatabaseStatus.h | 2 +- DataStorage/Database/DatabaseType.h | 2 +- .../Database/Mapper/DataMapperFactory.h | 2 +- DataStorage/Database/Mapper/DataMapperTypes.h | 2 +- DataStorage/Database/Mapper/MapperAbstract.h | 2 +- DataStorage/Database/Mapper/ReadMapper.h | 2 +- DataStorage/Database/Schema/DbField.h | 2 +- DataStorage/Database/Schema/DbSchema.h | 2 +- Image/BillDetection.h | 2 +- Image/Diff.h | 2 +- Image/ImageUtils.h | 2 +- Image/Kernel.h | 2 +- Image/Skew.h | 2 +- Image/Thresholding.h | 2 +- Stdlib/HashTable.h | 2 +- Stdlib/Mathtypes.h | 2 +- Utils/ApplicationUtils.h | 2 +- Utils/ArraySort.h | 2 +- Utils/ArrayUtils.h | 2 +- Utils/ColorUtils.h | 2 +- Utils/FileUtils.h | 2 +- Utils/Intrinsics.h | 2 +- Utils/MathUtils.h | 2 +- Utils/OSWrapper.h | 2 +- Utils/Rng/StringUtils.h | 2 +- Utils/StringUtils.h | 24 ++++++++++++++++++- Utils/TestUtils.h | 2 +- Utils/WebUtils.h | 2 +- tests/Image/ImageUtilsTest.cpp | 2 +- tests/Threads/ThreadPoolTest.cpp | 2 +- tests/Utils/WebUtilsTest.cpp | 2 +- 38 files changed, 60 insertions(+), 38 deletions(-) diff --git a/Application/ApplicationAbstract.h b/Application/ApplicationAbstract.h index 99de669..1e89a62 100755 --- a/Application/ApplicationAbstract.h +++ b/Application/ApplicationAbstract.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/DataStorage/Database/Connection/ConnectionAbstract.h b/DataStorage/Database/Connection/ConnectionAbstract.h index ec58d45..557e88c 100755 --- a/DataStorage/Database/Connection/ConnectionAbstract.h +++ b/DataStorage/Database/Connection/ConnectionAbstract.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/DataStorage/Database/Connection/ConnectionFactory.h b/DataStorage/Database/Connection/ConnectionFactory.h index b790b97..8e85fe3 100755 --- a/DataStorage/Database/Connection/ConnectionFactory.h +++ b/DataStorage/Database/Connection/ConnectionFactory.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/DataStorage/Database/Connection/DbConnectionConfig.h b/DataStorage/Database/Connection/DbConnectionConfig.h index 9582d4c..b601e69 100755 --- a/DataStorage/Database/Connection/DbConnectionConfig.h +++ b/DataStorage/Database/Connection/DbConnectionConfig.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/DataStorage/Database/Connection/MysqlConnection.h b/DataStorage/Database/Connection/MysqlConnection.h index 634e566..54427a8 100755 --- a/DataStorage/Database/Connection/MysqlConnection.h +++ b/DataStorage/Database/Connection/MysqlConnection.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/DataStorage/Database/Connection/PostgresqlConnection.h b/DataStorage/Database/Connection/PostgresqlConnection.h index 73c9959..df0fd9c 100755 --- a/DataStorage/Database/Connection/PostgresqlConnection.h +++ b/DataStorage/Database/Connection/PostgresqlConnection.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/DataStorage/Database/Connection/SQLiteConnection.h b/DataStorage/Database/Connection/SQLiteConnection.h index 54872ae..3b7f2e2 100755 --- a/DataStorage/Database/Connection/SQLiteConnection.h +++ b/DataStorage/Database/Connection/SQLiteConnection.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/DataStorage/Database/DatabaseStatus.h b/DataStorage/Database/DatabaseStatus.h index dfe42a1..78f3143 100755 --- a/DataStorage/Database/DatabaseStatus.h +++ b/DataStorage/Database/DatabaseStatus.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Models * @copyright Dennis Eichhorn diff --git a/DataStorage/Database/DatabaseType.h b/DataStorage/Database/DatabaseType.h index 8de2d13..ac79636 100755 --- a/DataStorage/Database/DatabaseType.h +++ b/DataStorage/Database/DatabaseType.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Models * @copyright Dennis Eichhorn diff --git a/DataStorage/Database/Mapper/DataMapperFactory.h b/DataStorage/Database/Mapper/DataMapperFactory.h index 8229585..7759a3f 100755 --- a/DataStorage/Database/Mapper/DataMapperFactory.h +++ b/DataStorage/Database/Mapper/DataMapperFactory.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Models * @copyright Dennis Eichhorn diff --git a/DataStorage/Database/Mapper/DataMapperTypes.h b/DataStorage/Database/Mapper/DataMapperTypes.h index afdeb84..1830c00 100755 --- a/DataStorage/Database/Mapper/DataMapperTypes.h +++ b/DataStorage/Database/Mapper/DataMapperTypes.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Models * @copyright Dennis Eichhorn diff --git a/DataStorage/Database/Mapper/MapperAbstract.h b/DataStorage/Database/Mapper/MapperAbstract.h index 44a6db3..bc2ead2 100755 --- a/DataStorage/Database/Mapper/MapperAbstract.h +++ b/DataStorage/Database/Mapper/MapperAbstract.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Models * @copyright Dennis Eichhorn diff --git a/DataStorage/Database/Mapper/ReadMapper.h b/DataStorage/Database/Mapper/ReadMapper.h index 52baf1c..29fc7f5 100755 --- a/DataStorage/Database/Mapper/ReadMapper.h +++ b/DataStorage/Database/Mapper/ReadMapper.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Models * @copyright Dennis Eichhorn diff --git a/DataStorage/Database/Schema/DbField.h b/DataStorage/Database/Schema/DbField.h index 881bb89..55e69cd 100755 --- a/DataStorage/Database/Schema/DbField.h +++ b/DataStorage/Database/Schema/DbField.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Models * @copyright Dennis Eichhorn diff --git a/DataStorage/Database/Schema/DbSchema.h b/DataStorage/Database/Schema/DbSchema.h index 3ae2b47..6fe0c3b 100755 --- a/DataStorage/Database/Schema/DbSchema.h +++ b/DataStorage/Database/Schema/DbSchema.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Models * @copyright Dennis Eichhorn diff --git a/Image/BillDetection.h b/Image/BillDetection.h index ae97ab1..1779bb8 100755 --- a/Image/BillDetection.h +++ b/Image/BillDetection.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Image * @copyright Dennis Eichhorn diff --git a/Image/Diff.h b/Image/Diff.h index b51ef63..1f23178 100755 --- a/Image/Diff.h +++ b/Image/Diff.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Image * @copyright Dennis Eichhorn diff --git a/Image/ImageUtils.h b/Image/ImageUtils.h index 0200f1b..63d4b46 100755 --- a/Image/ImageUtils.h +++ b/Image/ImageUtils.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Image * @copyright Dennis Eichhorn diff --git a/Image/Kernel.h b/Image/Kernel.h index ee656bd..521665d 100755 --- a/Image/Kernel.h +++ b/Image/Kernel.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Image * @copyright Dennis Eichhorn diff --git a/Image/Skew.h b/Image/Skew.h index f7442f9..73ab4ba 100755 --- a/Image/Skew.h +++ b/Image/Skew.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Image * @copyright Dennis Eichhorn diff --git a/Image/Thresholding.h b/Image/Thresholding.h index dad81e6..10bf58b 100755 --- a/Image/Thresholding.h +++ b/Image/Thresholding.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Image * @copyright Dennis Eichhorn diff --git a/Stdlib/HashTable.h b/Stdlib/HashTable.h index bcaff42..1b6e8db 100755 --- a/Stdlib/HashTable.h +++ b/Stdlib/HashTable.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Stdlib * @copyright Dennis Eichhorn diff --git a/Stdlib/Mathtypes.h b/Stdlib/Mathtypes.h index b5d7738..750792f 100644 --- a/Stdlib/Mathtypes.h +++ b/Stdlib/Mathtypes.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/Utils/ApplicationUtils.h b/Utils/ApplicationUtils.h index 9148396..7398ba0 100755 --- a/Utils/ApplicationUtils.h +++ b/Utils/ApplicationUtils.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/Utils/ArraySort.h b/Utils/ArraySort.h index a6b7358..c5107fe 100755 --- a/Utils/ArraySort.h +++ b/Utils/ArraySort.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/Utils/ArrayUtils.h b/Utils/ArrayUtils.h index 62e2199..b662b42 100755 --- a/Utils/ArrayUtils.h +++ b/Utils/ArrayUtils.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/Utils/ColorUtils.h b/Utils/ColorUtils.h index 46c0efd..c5a7b19 100644 --- a/Utils/ColorUtils.h +++ b/Utils/ColorUtils.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/Utils/FileUtils.h b/Utils/FileUtils.h index f36de2d..4a0674f 100755 --- a/Utils/FileUtils.h +++ b/Utils/FileUtils.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/Utils/Intrinsics.h b/Utils/Intrinsics.h index 8367950..bffa214 100644 --- a/Utils/Intrinsics.h +++ b/Utils/Intrinsics.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/Utils/MathUtils.h b/Utils/MathUtils.h index b66298e..82bfd3b 100755 --- a/Utils/MathUtils.h +++ b/Utils/MathUtils.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/Utils/OSWrapper.h b/Utils/OSWrapper.h index d3e1714..a9ce5d1 100755 --- a/Utils/OSWrapper.h +++ b/Utils/OSWrapper.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/Utils/Rng/StringUtils.h b/Utils/Rng/StringUtils.h index f1a3600..d29fe6e 100755 --- a/Utils/Rng/StringUtils.h +++ b/Utils/Rng/StringUtils.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/Utils/StringUtils.h b/Utils/StringUtils.h index 10200d7..a2bc894 100755 --- a/Utils/StringUtils.h +++ b/Utils/StringUtils.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn @@ -302,6 +302,28 @@ namespace Utils::StringUtils return text_diff{diffValues, diffMasks, diffIndex}; } + + char *strtok(char *str, const char *delim, char **saveptr) { + if (str == NULL) { + str = *saveptr; + } + + if (str == NULL || *str == '\0') { + return NULL; + } + + char *token_start = str; + char *token_end = strpbrk(token_start, delim); + + if (token_end == NULL) { + *saveptr = NULL; + } else { + *token_end = '\0'; + *saveptr = token_end + 1; + } + + return token_start; + } } #endif \ No newline at end of file diff --git a/Utils/TestUtils.h b/Utils/TestUtils.h index 7736abd..26ad21f 100755 --- a/Utils/TestUtils.h +++ b/Utils/TestUtils.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/Utils/WebUtils.h b/Utils/WebUtils.h index cfe2811..9cd6172 100755 --- a/Utils/WebUtils.h +++ b/Utils/WebUtils.h @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Utils * @copyright Dennis Eichhorn diff --git a/tests/Image/ImageUtilsTest.cpp b/tests/Image/ImageUtilsTest.cpp index 82e18ef..9bdf5c0 100755 --- a/tests/Image/ImageUtilsTest.cpp +++ b/tests/Image/ImageUtilsTest.cpp @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Test * @copyright Dennis Eichhorn diff --git a/tests/Threads/ThreadPoolTest.cpp b/tests/Threads/ThreadPoolTest.cpp index 8b043d6..483408a 100755 --- a/tests/Threads/ThreadPoolTest.cpp +++ b/tests/Threads/ThreadPoolTest.cpp @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Test * @copyright Dennis Eichhorn diff --git a/tests/Utils/WebUtilsTest.cpp b/tests/Utils/WebUtilsTest.cpp index 774a4cc..93507a4 100755 --- a/tests/Utils/WebUtilsTest.cpp +++ b/tests/Utils/WebUtilsTest.cpp @@ -1,5 +1,5 @@ /** - * Karaka + * Jingga * * @package Test * @copyright Dennis Eichhorn