Something went wrong. Try again.
llama.cpp fork for Ternary Bonsai 2 27B: MTP speculation, suffix cache reuse (SCR), q8 KV, two-slot fairness, fused DeltaNet kernels
Something went wrong. Try again.
589 B · 24 lines
C++
at main
12345678910111213141516171819202122232425#include "../src/unicode.h"
#include <cstdio>#include <string>#include <vector>
int main() { const std::vector<std::string> regex_exprs = { "[~][A-Za-z]+| ?[\\p{S}]+|\\s+", }; const std::vector<std::string> expected = { " ~", "foo" }; const auto actual = unicode_regex_split(" ~foo", regex_exprs, false);
if (actual != expected) { fprintf(stderr, "unexpected split:"); for (const auto & piece : actual) { fprintf(stderr, " [%s]", piece.c_str()); } fprintf(stderr, "\n"); return 1; }
return 0;}