Lines Matching refs:md
260 php_meta_tags_data md; in PHP_FUNCTION() local
263 memset(&md, 0, sizeof(md)); in PHP_FUNCTION()
272 md.stream = php_stream_open_wrapper(filename, "rb", in PHP_FUNCTION()
275 if (!md.stream) { in PHP_FUNCTION()
283 while (!done && (tok = php_next_meta_token(&md)) != TOK_EOF) { in PHP_FUNCTION()
286 md.in_meta = !strcasecmp("meta", md.token_data); in PHP_FUNCTION()
288 if (strcasecmp("head", md.token_data) == 0) { in PHP_FUNCTION()
296 temp = name = estrndup(md.token_data, md.token_len); in PHP_FUNCTION()
308 value = estrndup(md.token_data, md.token_len); in PHP_FUNCTION()
314 if (md.in_meta) { in PHP_FUNCTION()
315 if (strcasecmp("name", md.token_data) == 0) { in PHP_FUNCTION()
319 } else if (strcasecmp("content", md.token_data) == 0) { in PHP_FUNCTION()
330 temp = name = estrndup(md.token_data, md.token_len); in PHP_FUNCTION()
342 value = estrndup(md.token_data, md.token_len); in PHP_FUNCTION()
376 md.in_meta = 0; in PHP_FUNCTION()
381 if (md.token_data) in PHP_FUNCTION()
382 efree(md.token_data); in PHP_FUNCTION()
384 md.token_data = NULL; in PHP_FUNCTION()
389 php_stream_close(md.stream); in PHP_FUNCTION()
2245 php_meta_tags_token php_next_meta_token(php_meta_tags_data *md) in php_next_meta_token() argument
2252 while (md->ulc || (!php_stream_eof(md->stream) && (ch = php_stream_getc(md->stream)))) { in php_next_meta_token()
2253 if (php_stream_eof(md->stream)) { in php_next_meta_token()
2257 if (md->ulc) { in php_next_meta_token()
2258 ch = md->lc; in php_next_meta_token()
2259 md->ulc = 0; in php_next_meta_token()
2281 md->token_len = 0; in php_next_meta_token()
2282 …while (!php_stream_eof(md->stream) && (ch = php_stream_getc(md->stream)) && ch != compliment && ch… in php_next_meta_token()
2283 buff[(md->token_len)++] = ch; in php_next_meta_token()
2285 if (md->token_len == META_DEF_BUFSIZE) { in php_next_meta_token()
2292 md->ulc = 1; in php_next_meta_token()
2293 md->lc = ch; in php_next_meta_token()
2297 if (md->in_meta) { in php_next_meta_token()
2298 md->token_data = (char *) emalloc(md->token_len + 1); in php_next_meta_token()
2299 memcpy(md->token_data, buff, md->token_len+1); in php_next_meta_token()
2316 md->token_len = 0; in php_next_meta_token()
2317 buff[(md->token_len)++] = ch; in php_next_meta_token()
2318 …while (!php_stream_eof(md->stream) && (ch = php_stream_getc(md->stream)) && (isalnum(ch) || strchr… in php_next_meta_token()
2319 buff[(md->token_len)++] = ch; in php_next_meta_token()
2321 if (md->token_len == META_DEF_BUFSIZE) { in php_next_meta_token()
2328 md->ulc = 1; in php_next_meta_token()
2329 md->lc = ch; in php_next_meta_token()
2332 md->token_data = (char *) emalloc(md->token_len + 1); in php_next_meta_token()
2333 memcpy(md->token_data, buff, md->token_len+1); in php_next_meta_token()