The project is self-contained and has no dependency.
A recent C++ compiler supporting C++17. We test GCC 9 or better, LLVM 10 or better and Microsoft Visual Studio 2022.
Building
Ada uses cmake as a build system. It’s recommended to have cmake available in your system.
Run the following commands to compile and build Ada locally.
Prepare
Build
Usage
Use the following code to run and test Ada.
Parsing & Validation
Parse and validate a URL from an ASCII or UTF-8 string
After calling parse function, you must check that the result is valid before
accessing it when you are not sure that it will succeed. The following
code is unsafe:
You should do…
For simplicity, in the examples below, we skip the check because
we know that parsing succeeds.