8000 GitHub - Alexhuszagh/lexi: A fast lexical conversion library.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Alexhuszagh/lexi

Repository files navigation

Lexi

Lexi, for lexical, is a fast conversion library to and from lexical forms. Internally, Lexi uses code from Milo Yip's dtoa and itoa implementation for double and integer conversions, respectively, and adds type detection as well as other overloads for fast lexical conversions.

Build Status Build Status Build status Coverity Scan Build Status Codacy Badge GitHub license

Table of Contents

Features

  • Fast integer formatting
  • Fast double formatting based off the Grisu2 algorithm
  • Overloads for enumerated types

Building

Simply clone, configure with CMake, and build.

git clone https://github.com/Alexhuszagh/lexi.git
git submodule update --init
cd lexi/build
cmake .. -_DBUILD_TESTS=ON      # "-DBUILD_FUZZ=ON" for fuzzing with Clang
make -j 5                       # "msbuild lexi.sln" for MSVC

Portability

Lexi is continually built with the following compiler and compiler versions:

  • Clang 3.8+
  • GCC 5.3+
  • MinGW 5.3.0 (MXE, MinGW, and MSYS2)
  • Visual Studio 14 2015
  • Visual Studio 15 2017

Acknowledgments

Milo Yip. for his fast-formatting and extraction algorithms.

Contributor Guidelines

All useful pull requests will be merged, provided that they do not add external dependencies and follow these guidelines.

  1. Preprocessor macros should be used sparingly.
  2. Code syntax should not depend on the preprocessor.
  3. Your code must be readable.
  4. Keep minimal definitions in the headers for compilation time.

License

MIT, see license.

About

A fast lexical conversion library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0