Skip to content

Compile-time TRIE based string matcher (C++11)

Notifications You must be signed in to change notification settings

sailfish009/cttrie

 
 

Repository files navigation

Compile-time TRIE based string matcher (C++11)

Usage:

#include "cttrie.h"

...

  TRIE(str)
    ... error case
  CASE("abc")
    ... str matches abc ...
  CASE("ad")
    ... etc
  ENDTRIE;   // <- trailing semicolon!
  • compile with optimization enabled!
  • cases may return a value (see e.g. test_cttrie.cpp)
    -> return types must match! (deduced from error case)

Copyright (c) 2016 Tobias Hoffmann

License: http://opensource.org/licenses/MIT

About

Compile-time TRIE based string matcher (C++11)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 96.6%
  • Makefile 3.4%