match.h
Go to the documentation of this file.
1 // vim:set ft=c.doxygen sw=2 sts=2 fenc=utf8:
2 
3 /*
4  * libasterix
5  * Copyright [2013-2020] SinoATC <http://www.sinoatc.com>.
6  * All Rights Reserved.
7  *
8  * NOTICE: All information contained herein is, and remains
9  * the property of SinoATC and its suppliers, if any.
10  * The intellectual and technical concepts contained herein
11  * are proprietary to Aerosys Corporation and its suppliers and may be
12  * covered by U.S. and Foreign Patents, patents in process,
13  * and are protected by trade secret or copyright law.
14  * Dissemination of this information or reproduction of this material
15  * is strictly forbidden unless prior written permission is obtained
16  * from SinoATC.
17  */
18 
25 #ifndef LIBASTERIX_MATCH_H
26 #define LIBASTERIX_MATCH_H
27 
28 #include "dataitem.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 typedef enum _ast_keyword_t
35 {
38 
40 
42 
51 
54 
55 typedef enum _ast_keyword_format_t
56 {
61 
62 AST_API bool ast_keyword_match(const char* keyword, const char* challenge, bool case_sensitive);
63 
64 ast_keyword_t ast_str_to_keyword(const char* keyword);
65 
66 #define AST_KEYWORD_PERFERED_CHARS 20
67 
68 AST_API void ast_keyword_to_str(char* keyname, const size_t keyname_size, const ast_keyword_t keyword);
69 
70 #ifdef __cplusplus
71 }
72 #endif // extern "C"
73 
74 #endif //LIBASTERIX_MATCH_H
Definition: match.h:46
Definition: match.h:43
Definition: match.h:50
Definition: match.h:39
Definition: match.h:57
ast_keyword_t ast_str_to_keyword(const char *keyword)
#define AST_API
Definition: platform.h:63
Last place holder keyword.
Definition: match.h:52
ast_keyword_format_t
Definition: match.h:55
bool ast_keyword_match(const char *keyword, const char *challenge, bool case_sensitive)
Definition: match.h:47
Definition: match.h:41
Definition: match.h:58
Definition: match.h:59
Definition: match.h:37
Implementation of Dataitem concept defined by ASTERIX.
Definition: match.h:44
Definition: match.h:36
Definition: match.h:49
Definition: match.h:48
ast_keyword_t
Definition: match.h:34
void ast_keyword_to_str(char *keyname, const size_t keyname_size, const ast_keyword_t keyword)
Definition: match.h:45