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

/PHP_TRUNK/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_TRUNK/ext/fileinfo/libmagic/
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 Dencoding.c70 size_t mlen; local
79 mlen = (nbytes + 1) * sizeof((*ubuf)[0]);
80 if ((*ubuf = CAST(unichar *, calloc((size_t)1, mlen))) == NULL) {
81 file_oomem(ms, mlen);
84 mlen = (nbytes + 1) * sizeof(nbuf[0]);
85 if ((nbuf = CAST(unsigned char *, calloc((size_t)1, mlen))) == NULL) {
86 file_oomem(ms, mlen);
H A Dapprentice.c1194 size_t mlen; local
1196 mlen = maxfiles * sizeof(*filearr);
1198 erealloc(filearr, mlen))) == NULL) {
1199 file_oomem(ms, mlen);
/PHP_TRUNK/main/streams/
H A Dmemory.c620 size_t mlen, dlen, plen, vlen; local
646 mlen = comma - path;
647 dlen -= mlen;
648 semi = memchr(path, ';', mlen);
649 sep = memchr(path, '/', mlen);
658 add_assoc_stringl(&meta, "mediatype", (char *) path, mlen);
659 mlen = 0;
663 mlen -= plen;
665 } else if (semi != path || mlen != sizeof(";base64")-1 || memcmp(path, ";base64", sizeof(";base64")-1)) { /* must be error since parameters are only allowed after mediatype */
673 mlen
[all...]
/PHP_TRUNK/Zend/
H A Dzend_API.c2924 int clen, mlen; local
2977 mlen = Z_STRLEN_P(callable) - clen - 2;
3005 mname = zend_string_init(Z_STRVAL_P(callable) + clen + 2, mlen, 0);
3008 mlen = Z_STRLEN_P(callable);
3021 lmname = zend_string_alloc(mlen, 0);
3022 zend_str_tolower_copy(lmname->val, mname->val, mlen);

Completed in 26 milliseconds