static, nbt, cassert, algoritmn, get exposed

Basically fix a bunch of stuff that came up in production
v1
Brett 2023-08-09 21:48:30 -04:00
parent a44590c195
commit 04fd3aec8b
42 changed files with 6 additions and 2 deletions

0
cmake-build-reldebug-asan/.cmake/api/v1/query/cache-v2 Normal file → Executable file
View File

View File

View File

View File

0
cmake-build-reldebug-asan/.ninja_deps Normal file → Executable file
View File

0
cmake-build-reldebug-asan/.ninja_log Normal file → Executable file
View File

0
cmake-build-reldebug-asan/CMakeCache.txt Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

0
cmake-build-reldebug-asan/CMakeFiles/cmake.check_cache Normal file → Executable file
View File

0
cmake-build-reldebug-asan/CMakeFiles/rules.ninja Normal file → Executable file
View File

View File

0
cmake-build-reldebug-asan/build.ninja Normal file → Executable file
View File

0
cmake-build-reldebug-asan/cmake_install.cmake Normal file → Executable file
View File

0
cmake-build-reldebug-asan/libBLT.a Normal file → Executable file
View File

0
cmake-build-reldebug-asan/super_file.nbt Normal file → Executable file
View File

3
include/blt/parse/argparse.h Normal file → Executable file
View File

@ -14,6 +14,7 @@
#include <optional> #include <optional>
#include <blt/std/hashmap.h> #include <blt/std/hashmap.h>
#include <variant> #include <variant>
#include <algorithm>
namespace blt namespace blt
{ {
@ -314,6 +315,8 @@ namespace blt
void processFlag(arg_tokenizer& tokenizer, const std::string& flag); void processFlag(arg_tokenizer& tokenizer, const std::string& flag);
public:
template<typename T> template<typename T>
static inline bool holds_alternative(const arg_data_t& v) static inline bool holds_alternative(const arg_data_t& v)
{ {

View File

@ -140,7 +140,7 @@ namespace blt::string {
} }
// https://stackoverflow.com/questions/3418231/replace-part-of-a-string-with-another-string // https://stackoverflow.com/questions/3418231/replace-part-of-a-string-with-another-string
bool replace(std::string& str, const std::string& from, const std::string& to) { static bool replace(std::string& str, const std::string& from, const std::string& to) {
size_t start_pos = str.find(from); size_t start_pos = str.find(from);
if(start_pos == std::string::npos) if(start_pos == std::string::npos)
return false; return false;
@ -148,7 +148,7 @@ namespace blt::string {
return true; return true;
} }
void replaceAll(std::string& str, const std::string& from, const std::string& to) { static void replaceAll(std::string& str, const std::string& from, const std::string& to) {
if(from.empty()) if(from.empty())
return; return;
size_t start_pos = 0; size_t start_pos = 0;

View File

@ -5,6 +5,7 @@
*/ */
#include <blt/nbt/nbt.h> #include <blt/nbt/nbt.h>
#include <blt/std/logging.h> #include <blt/std/logging.h>
#include <cassert>
#include <type_traits> #include <type_traits>

0
src/blt/parse/argparse.cpp Normal file → Executable file
View File