1
0
Fork 0
Abbreviated multi-part command recognition C library
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
Ondřej Hruška 89f3d40a5c
add readme
vor 4 Jahren
test Initial vor 4 Jahren
.gitignore Initial vor 4 Jahren
CMakeLists.txt Initial vor 4 Jahren
LICENSE.txt Initial vor 4 Jahren
Makefile Initial vor 4 Jahren
README.md add readme vor 4 Jahren
prefix_match.c Initial vor 4 Jahren
prefix_match.h Initial vor 4 Jahren

README.md

prefix_match

Abbreviated multi-part command / word sequence recognition.

Supports partial match (only some command words), individual multi-part command word abbreviating, as well as (obviously) simple single-word commands and their abbreviations.

Can recognize things like "ip i s d" as "ip interface set down" or "r a" as "route add", if there is no ambiguity among the provided options. Supports more than one delimiter at a time (e.g, colon, hyphen, underscore, space, tab, whatever). Leading and trailing delimiters and duplicate delimiters are ignored.

Inspect the unit test suite and doc comments in the header file for more info and examples of use.