| Function report | 
| Source Code: lib\parser.c | Create Date:2022-07-28 06:19:19 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:match_one: - Determines if a string matches a simple pattern*@s: the string to examine for presence of the pattern*@p: the string containing the pattern*@args: array of %MAX_OPT_ARGS &substring_t elements. Used to return match* locations.
Proto:static int match_one(char *s, const char *p, substring_t args[])
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| char * | s | |
| const char * | p | |
| substring_t | args | 
| 27 | argc = 0 | 
| 29 | If Not p Then Return 1 | 
| 32 | When 1 cycle | 
| 33 | len = -1 | 
| 46 | Else if p == '%' Then | 
| 53 | If argc >= MAX_OPT_ARGS Then Return 0 | 
| 58 | Case ++ == 's' | 
| 68 | Case ++ == 'd' | 
| 70 | Go to num | 
| 71 | Case ++ == 'u' | 
| 73 | Go to num | 
| 74 | Case ++ == 'o' | 
| 76 | Go to num | 
| 77 | Case ++ == 'x' | 
| 79 | num : | 
| 82 | Break | 
| 83 | Default | 
| 84 | Return 0 | 
| 87 | argc++ | 
| Name | Describe | 
|---|---|
| match_token | match_token: - Find a token (and optional args) in a string*@s: the string to examine for token/argument pairs*@table: match_table_t describing the set of allowed option tokens and the* arguments that may be associated with them. Must be terminated with a | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |