Home
last modified time | relevance | path

Searched refs:pat_len (Results 1 – 2 of 2) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dstropmodule.c1026 mymemfind(const char *mem, Py_ssize_t len, const char *pat, Py_ssize_t pat_len) in mymemfind() argument
1031 len -= pat_len; in mymemfind()
1035 (pat_len == 1 || in mymemfind()
1036 memcmp(&mem[ii+1], &pat[1], pat_len-1) == 0)) { in mymemfind()
1051 mymemcnt(const char *mem, Py_ssize_t len, const char *pat, Py_ssize_t pat_len) in mymemcnt() argument
1057 offset = mymemfind(mem, len, pat, pat_len); in mymemcnt()
1060 mem += offset + pat_len; in mymemcnt()
1061 len -= offset + pat_len; in mymemcnt()
1088 const char *pat, Py_ssize_t pat_len, /* pattern string to find */ in mymemreplace() argument
1097 if (len == 0 || pat_len > len) in mymemreplace()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dstropmodule.c1028 mymemfind(const char *mem, Py_ssize_t len, const char *pat, Py_ssize_t pat_len) in mymemfind() argument
1033 len -= pat_len; in mymemfind()
1037 (pat_len == 1 || in mymemfind()
1038 memcmp(&mem[ii+1], &pat[1], pat_len-1) == 0)) { in mymemfind()
1053 mymemcnt(const char *mem, Py_ssize_t len, const char *pat, Py_ssize_t pat_len) in mymemcnt() argument
1059 offset = mymemfind(mem, len, pat, pat_len); in mymemcnt()
1062 mem += offset + pat_len; in mymemcnt()
1063 len -= offset + pat_len; in mymemcnt()
1090 const char *pat, Py_ssize_t pat_len, /* pattern string to find */ in mymemreplace() argument
1099 if (len == 0 || pat_len > len) in mymemreplace()
[all …]