能力值:
( LV3,RANK:20 )
|
-
-
2 楼
1:双for循环并记录索引;2:若字串元素在母串中并且索引连续说明母串包含子串
|
能力值:
( LV6,RANK:89 )
|
-
-
3 楼
KWP SUNDAY
|
能力值:
( LV9,RANK:280 )
|
-
-
4 楼
如果你说的是UNICODE_STRING的话,只有判断prefix和suffix的,没有find
|
能力值:
( LV2,RANK:10 )
|
-
-
5 楼
可以自己写一个 BOOLEAN
RtlFindSubString (
PUNICODE_STRING Source,
PUNICODE_STRING Search
)
{
USHORT index = 0;
USHORT SearchChar = 0;
USHORT Loop = 0;
if( ! Source || ! Search )
return FALSE;
if( RtlUnicodeStringValidateEx( Source, 0 ) != STATUS_SUCCESS )
return FALSE;
if( RtlUnicodeStringValidateEx( Search, 0 ) != STATUS_SUCCESS )
return FALSE;
if( Source->Length < Search->Length )
return FALSE;
if( Source->Length == Search->Length )
return RtlEqualUnicodeString( Source, Search, TRUE );
SearchChar = Search->Length >> 1;
Loop = ( Source->Length >> 1 ) - SearchChar;
while( index <= Loop )
{
if ( !_wcsnicmp( &Source->Buffer[index], Search->Buffer, SearchChar ) )
return TRUE;
index++;
}
return FALSE;
}
|
能力值:
( LV2,RANK:10 )
|
-
-
6 楼
FsRtlIsNameInExpression
|
|
|