spattern.search
- method uint spattern.search( buf src, uint offset )
- method uint spattern.search( uint ptr, uint size )
- method uint spattern.search( str src, uint offset )
Search a pattern in another string. Before search start-up, call the spattern.init method in order to initialize the search pattern.
buf src,
uint offset
)
Parameters
src | String where the specified string will be searched (search pattern). |
offset | Offset where the search must be started or proceeded. |
Return value
The offset of the found fragment. If the offset is equal to string size,no fragment is found.
spattern.search
Search a pattern in a memory data.
uint ptr,
uint size
)
Parameters
ptr | The pointer to the memory data where the pattern will be searched. |
size | The size of the memory data. |
Return value
The offset of the found fragment. If the offset is equal to string size,no fragment is found.
spattern.search
Search a pattern in another string.
str src,
uint offset
)
Parameters
src | String where the specified string will be searched (search pattern). |
offset | Offset where the search must be started or proceeded. |
Return value
The offset of the found fragment. If the offset is equal to string size,no fragment is found.
Related links | Source |