Searched refs:mlen (Results 1 - 9 of 9) sorted by relevance

/PHP_5_5/ext/ereg/regex/
H A Ddebug.c41 fprintf(d, ", must(%ld) `%*s'", (long)g->mlen, (int)g->mlen,
H A Dengine.c99 if (*dp == g->must[0] && stop - dp >= g->mlen &&
100 memcmp(dp, g->must, (size_t)g->mlen) == 0)
H A Dregcomp.c147 g->mlen = 0;
1488 - findmust - fill in must and mlen with longest mandatory literal string
1495 * Note that must and mlen got initialized during setup.
1544 if (newlen > g->mlen) { /* ends one */
1546 g->mlen = newlen;
1553 if (g->mlen == 0) /* there isn't one */
1557 g->mlen = 0;
1562 g->must = malloc((size_t)g->mlen + 1);
1564 g->mlen = 0;
1569 for (i = g->mlen;
[all...]
H A Dregex2.h130 int mlen; /* length of must */ member in struct:re_guts
/PHP_5_5/ext/fileinfo/libmagic/
H A Dencoding.c70 size_t mlen; local
75 mlen = (nbytes + 1) * sizeof(nbuf[0]);
76 if ((nbuf = CAST(unsigned char *, calloc((size_t)1, mlen))) == NULL) {
77 file_oomem(ms, mlen);
80 mlen = (nbytes + 1) * sizeof((*ubuf)[0]);
81 if ((*ubuf = CAST(unichar *, calloc((size_t)1, mlen))) == NULL) {
82 file_oomem(ms, mlen);
H A Dascmagic.c106 size_t mlen, i; local
141 mlen = ulen * 6;
142 if ((utf8_buf = CAST(unsigned char *, emalloc(mlen))) == NULL) {
143 file_oomem(ms, mlen);
146 if ((utf8_end = encode_utf8(utf8_buf, mlen, ubuf, ulen))
H A Dapprentice.c1191 size_t mlen; local
1193 mlen = maxfiles * sizeof(*filearr);
1195 erealloc(filearr, mlen))) == NULL) {
1196 file_oomem(ms, mlen);
/PHP_5_5/main/streams/
H A Dmemory.c606 size_t mlen, dlen, plen, vlen; local
630 mlen = comma - path;
631 dlen -= mlen;
632 semi = memchr(path, ';', mlen);
633 sep = memchr(path, '/', mlen);
643 add_assoc_stringl(meta, "mediatype", path, mlen, 1);
644 mlen = 0;
648 mlen -= plen;
650 } else if (semi != path || mlen != sizeof(";base64")-1 || memcmp(path, ";base64", sizeof(";base64")-1)) { /* must be error since parameters are only allowed after mediatype */
658 mlen
[all...]
/PHP_5_5/Zend/
H A Dzend_API.c2749 int clen, mlen; local
2764 mlen = Z_STRLEN_P(callable) - 1;
2765 lmname = zend_str_tolower_dup(Z_STRVAL_P(callable) + 1, mlen);
2767 mlen = Z_STRLEN_P(callable);
2768 lmname = zend_str_tolower_dup(Z_STRVAL_P(callable), mlen);
2772 if (zend_hash_find(EG(function_table), lmname, mlen+1, (void**)&fcc->function_handler) == SUCCESS) {
2786 mlen = Z_STRLEN_P(callable) - clen - 2;
2814 mlen = Z_STRLEN_P(callable);
2826 lmname = zend_str_tolower_dup(mname, mlen);
2829 mlen
[all...]

Completed in 31 milliseconds