|
luasandbox
1.4.0
Generic Lua sandbox for dynamic data analysis
|
C API for the Lua string pattern matcher. More...

Go to the source code of this file.
Functions | |
| LSB_UTIL_EXPORT bool | lsb_string_match (const char *s, size_t len, const char *p) |
| Matches a string using a Lua string match pattern. More... | |
| LSB_UTIL_EXPORT bool | lsb_string_find (const char *s, size_t ls, const char *p, size_t lp) |
| Searches for a string literal within a string. More... | |
C API for the Lua string pattern matcher.
Definition in file string_matcher.h.
| LSB_UTIL_EXPORT bool lsb_string_find | ( | const char * | s, |
| size_t | ls, | ||
| const char * | p, | ||
| size_t | lp | ||
| ) |
Searches for a string literal within a string.
| s | String to search |
| ls | Length of the string |
| p | Literal match string |
| lp | Length of the match string |
| LSB_UTIL_EXPORT bool lsb_string_match | ( | const char * | s, |
| size_t | len, | ||
| const char * | p | ||
| ) |
Matches a string using a Lua string match pattern.
| s | String to match |
| len | Length of the string |
| p | Lua match pattern http://www.lua.org/manual/5.1/manual.html#pdf-string.match |
1.8.11