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 <blt/std/hashmap.h>
#include <variant>
#include <algorithm>
namespace blt
{
@ -314,6 +315,8 @@ namespace blt
void processFlag(arg_tokenizer& tokenizer, const std::string& flag);
public:
template<typename T>
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
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);
if(start_pos == std::string::npos)
return false;
@ -148,7 +148,7 @@ namespace blt::string {
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())
return;
size_t start_pos = 0;

View File

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

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