scnlib
« Back to VersTracker
Description:
Scanf for modern C++
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ parsing input library scanf
Install: brew install scnlib
About:
Scnlib is a modern C++ library providing a type-safe, extensible implementation of scanf-style input parsing. It leverages C++20 features to offer compile-time format string validation and efficient parsing without the vulnerabilities of traditional C functions. This makes it a robust and performant choice for handling formatted input in contemporary C++ applications.
Key Features:
  • Type-safe and memory-safe parsing
  • Compile-time format string validation
  • Extensible and locale-aware
  • High performance
Use Cases:
  • Parsing structured text input (e.g., logs, config files)
  • Reading formatted data in command-line tools
  • Converting strings to complex C++ types safely
Alternatives:
  • C++ iostreams – Scnlib offers a more concise, scanf-like syntax and often better performance than iostreams.
  • Boost.Spirit – Scnlib provides a simpler, more direct interface for parsing, whereas Spirit is a more powerful but complex parser framework.
Version History
Detected Version Rev Change Commit
Nov 4, 2024 1:12am 0 VERSION_BUMP d1d7ebb4
Nov 4, 2024 1:01am 0 VERSION_BUMP 141bcd1c
Nov 3, 2024 4:25pm 0 VERSION_BUMP be7f0c33
Nov 3, 2024 3:52pm 0 VERSION_BUMP 5d9f2078
Sep 14, 2024 4:42pm 0 VERSION_BUMP 68f0b322