Add SDK v1.0.0

This commit is contained in:
alejo committed 2026-10-24 08:05:45 -03:00
commit 40688938ef
76 files changed
+11805

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
#pragma once
// Vendored header-only helper (vendor/tiny_ansi/) -- a stand-in for the
// kind of tiny, buildless third-party header you'd wrap with
// add_vendor_header_only() instead of writing yourself.
#include <string>
namespace tiny_ansi {
inline std::string green(const std::string& s) {
return "\033[32m" + s + "\033[0m";
}
} // namespace tiny_ansi
+10
View File
@@ -0,0 +1,10 @@
# A stand-in for a "real" vendored third-party library that ships its own
# build -- a plain source drop, git submodule, or git subtree checked into
# vendor/tiny_case/. Added via add_vendor_subdirectory(tiny_case) in the
# root CMakeLists.txt, not discovered by the module system (vendor/ isn't
# one of the discovery roots), and not written to conform to this
# project's conventions -- it's whatever the upstream project's
# CMakeLists.txt looks like.
cmake_minimum_required(VERSION 3.16)
add_library(tiny_case STATIC src/tiny_case.cpp)
target_include_directories(tiny_case PUBLIC include)
+4
View File
@@ -0,0 +1,4 @@
#pragma once
#include <string>
std::string tiny_case_to_upper(std::string s);
+10
View File
@@ -0,0 +1,10 @@
#include "tiny_case.h"
#include <algorithm>
#include <cctype>
std::string tiny_case_to_upper(std::string s) {
std::transform(s.begin(), s.end(), s.begin(),
[](unsigned char c) { return std::toupper(c); });
return s;
}