Function report |
Source Code:lib\ts_kmp.c |
Create Date:2022-07-28 07:10:26 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kmp_init
Proto:static struct ts_config *kmp_init(const void *pattern, unsigned int len, gfp_t gfp_mask, int flags)
Type:struct ts_config
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const void * | pattern | |
| unsigned int | len | |
| gfp_t | gfp_mask | |
| int | flags |
| 97 | prefix_tbl_len = len * sizeof(unsignedint) |
| 98 | priv_size = size of kmp + len + prefix_tbl_len |
| 100 | conf = alloc_ts_config(priv_size, gfp_mask) |
| 105 | kmp = ts_config_priv(conf) |
| 106 | pattern_len = len |
| 107 | compute_prefix_tbl(pattern, len, prefix_tbl, flags) |
| 108 | pattern = prefix_tbl + prefix_tbl_len |
| 109 | If flags & Searches string case insensitively Then When i < len cycle |
| 112 | Else No 3D Now!(pattern, pattern, len) |
| 115 | Return conf |
| 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 |