Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\ts_bm.c Create Date:2022-07-28 07:10:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:subpattern

Proto:static int subpattern(u8 *pattern, int i, int j, int g)

Type:int

Parameter:

TypeParameterName
u8 *pattern
inti
intj
intg
98  x = i + g - 1 , y = j + g - 1 , ret = 0
100  When pattern[x--] == pattern[y--] cycle
101  If y < 0 Then
102  ret = 1
103  Break
105  If --g == 0 Then
106  ret = pattern[i - 1] != pattern[j - 1]
107  Break
111  Return ret
Caller
NameDescribe
compute_prefix_tbl