Function report |
Source Code:lib\ts_bm.c |
Create Date:2022-07-28 07:10:34 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bm_init
Proto:static struct ts_config *bm_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 |
| 147 | prefix_tbl_len = len * sizeof(unsignedint) |
| 148 | priv_size = size of bm + len + prefix_tbl_len |
| 150 | conf = alloc_ts_config(priv_size, gfp_mask) |
| 155 | bm = ts_config_priv(conf) |
| 157 | pattern = good_shift + prefix_tbl_len |
| 158 | If flags & Searches string case insensitively Then When i < len cycle |
| 161 | Else No 3D Now!(pattern, pattern, len) |
| 163 | compute_prefix_tbl(bm, flags) |
| 165 | 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 |