Skip to content

Instantly share code, notes, and snippets.

View sefyan0hack's full-sized avatar

SOFYANE BENTALEBE sefyan0hack

View GitHub Profile
@sefyan0hack
sefyan0hack / compiletimereGex.cpp
Created April 7, 2025 06:35
compile time regex
/*
cmake_minimum_required(VERSION 3.30)
project(reGex LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 23)
add_subdirectory(ctre)
set(SOURCES
@sefyan0hack
sefyan0hack / enum_match.cpp
Created April 6, 2025 03:54
a regex matches c++ `enum` && `enum class` and add to_string
#include <regex>
#include <string>
#include <vector>
#include <iostream>
#include <algorithm>
#include <format>
struct Enum {
std::string code;
std::string name;