Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dabbertorres/tc
Text Completion done with the C++ standard library
https://github.com/dabbertorres/tc
Last synced: about 2 months ago
JSON representation
Text Completion done with the C++ standard library
- Host: GitHub
- URL: https://github.com/dabbertorres/tc
- Owner: dabbertorres
- License: mit
- Created: 2015-08-19T00:06:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-20T00:03:32.000Z (over 9 years ago)
- Last Synced: 2023-08-21T18:13:16.378Z (over 1 year ago)
- Language: C++
- Size: 137 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tc
Text Completion done with the C++ standard libraryUses C++ 11/14.
# How to use
Simple as!
```c++
#include... // Not sure what goes here. Your own code for something?
tc::Completer complete;
complete.add("myFavoriteWord");
... // more favorite words// get some input
std::string input = ...auto results = complete.complete(input);
for(auto& s : ret)
std::cout << s << '\n';
std::cout << '\n';
```And that's it! Simple (3 function calls if you count default constructors)!