{"repo":"cristeigabriela/STB","free":true,"listed":false,"github":"https://github.com/cristeigabriela/STB","clone":"git clone https://github.com/cristeigabriela/STB.git","description":"Compile-time conversion library, from IDA-style string to array (supports wildcarding).","language":"C++","stars":36,"topics":["cpp17","cpp20","compile-time","compiletime","template","template-metaprogramming","generic","library","single-header","single-header-lib"],"license":"WTFPL","category":"saas-starters-boilerplates","readme_excerpt":"STB Compile-time conversion library, from IDA-style string to array (supports wildcarding). How to use Step 1: Step 2: Include include/stb.hh to your project. Step 3: Either create a custom conversion type with stb::basic hex string array conversion or use stb::hex string array conversion (whitespace delimiter, question-mark wildcard, -1 wildcard value) (short alias: stb::simple conversion ). Example: You may also create a sanitary macro that looks something like: then do: How this works We pass a stb::fixed string to a conversion type's build, we run make on it, we ensure constant evaluation through stb::consteval value on make which itself calls parse::get then does some logic utilizing the information and detail , we store the result of make in value inside the build instance. Results This leaves no trace in the binary by ensuring constant evaluation (doesn't require consteval ) of conversion string parser and conversion builder. Compile times This should go in a pre-compiled header. You may also disable compliance verifications by defining STB OMIT TESTS before include. License LICENSE","default_branch":null,"files":null,"tree":[],"storefront":"/r/cristeigabriela","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cristeigabriela/STB/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}