函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\ts_kmp.c Create Date:2022-07-27 08:08:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:compute_prefix_tbl

函数原型:static inline void compute_prefix_tbl(const u8 *pattern, unsigned int len, unsigned int *prefix_tbl, int flags)

返回类型:void

参数:

类型参数名称
const u8 *pattern
unsigned intlen
unsigned int *prefix_tbl
intflags
78  icase等于flags按位与Searches string case insensitively
80 q小于len循环
81 k大于0且如果icasetoupper(pattern[k])否则pattern[k]不等于如果icasetoupper(pattern[q])否则pattern[q]循环
83  k等于prefix_tbl[k - 1]
84  如果如果icasetoupper(pattern[k])否则pattern[k]恒等于如果icasetoupper(pattern[q])否则pattern[q]则k自加
87  prefix_tbl[q]等于k
调用者
名称描述
kmp_init