Searched defs:prefix (Results 1 - 25 of 26) sorted by relevance

12

/PHP_5_6/ext/dom/
H A Ddomimplementation.c160 char *prefix = NULL, *localname = NULL; local
182 errorcode = dom_check_qname(name, &localname, &prefix, 1, name_len);
183 if (errorcode == 0 && uri_len > 0 && ((nsptr = xmlNewNs(NULL, uri, prefix)) == NULL)) {
188 if (prefix != NULL) {
189 xmlFree(prefix);
H A Delement.c161 char *localname = NULL, *prefix = NULL; local
182 errorcode = dom_check_qname(name, &localname, &prefix, uri_len, name_len);
186 nsptr = dom_get_ns(nodep, uri, &errorcode, prefix);
191 if (prefix != NULL) {
192 xmlFree(prefix);
202 /* If you don't pass a namespace uri, then you can't set a prefix */
203 localname = xmlSplitQName2((xmlChar *)name, (xmlChar **) &prefix);
204 if (prefix != NULL) {
206 xmlFree(prefix);
253 if (ns != NULL && ns->prefix) {
290 xmlChar *prefix = xmlStrndup(name, len); local
701 xmlChar prefix[50]; local
749 char *localname = NULL, *prefix = NULL; local
[all...]
H A Dnode.c84 ZEND_ARG_INFO(0, prefix)
174 (curns->prefix == NULL || xmlStrEqual(nsptr->prefix, curns->prefix))) {
217 if (ns != NULL && ns->prefix) {
218 qname = xmlStrdup(ns->prefix);
228 if (ns != NULL && ns->prefix) {
729 /* {{{ prefix string
752 if (ns != NULL && ns->prefix) {
753 str = (char *) ns->prefix;
778 char *prefix; local
1685 char *prefix=NULL; local
1826 char *prefix; local
[all...]
H A Dxpath.c45 ZEND_ARG_INFO(0, prefix)
156 curns->prefix = xmlStrdup((xmlChar *) node->children);
347 /* {{{ proto boolean dom_xpath_register_ns(string prefix, string uri); */
354 unsigned char *prefix, *ns_uri; local
356 if (zend_parse_method_parameters(ZEND_NUM_ARGS() TSRMLS_CC, getThis(), "Oss", &id, dom_xpath_class_entry, &prefix, &prefix_len, &ns_uri, &ns_uri_len) == FAILURE) {
368 if (xmlXPathRegisterNs(ctxp, prefix, ns_uri) != 0) {
491 curns->prefix = xmlStrdup((char *) node->children);
H A Dphp_dom.c714 dom_register_prop_handler(&dom_node_prop_handlers, "prefix", dom_node_prefix_read, dom_node_prefix_write TSRMLS_CC);
726 dom_register_prop_handler(&dom_namespace_node_prop_handlers, "prefix", dom_node_prefix_read, NULL TSRMLS_CC);
1568 doc->oldNs->prefix = xmlStrdup((const xmlChar *)"xml");
1585 2. the qualifiedName has a prefix and the namespaceURI is null
1588 /* {{{ int dom_check_qname(char *qname, char **localname, char **prefix, int uri_len, int name_len) */
1589 int dom_check_qname(char *qname, char **localname, char **prefix, int uri_len, int name_len) { argument
1594 *localname = (char *)xmlSplitQName2((xmlChar *)qname, (xmlChar **) prefix);
1597 if (*prefix == NULL && uri_len == 0) {
1608 if (*prefix != NULL && uri_len == 0) {
1621 3. the qualifiedName has a prefix tha
1627 dom_get_ns(xmlNodePtr nodep, char *uri, int *errorcode, char *prefix) argument
[all...]
H A Ddocument.c1215 nsptr = dom_get_ns(root, (char *) nodep->ns->href, &errorcode, (char *) nodep->ns->prefix);
1237 char *localname = NULL, *prefix = NULL; local
1247 errorcode = dom_check_qname(name, &localname, &prefix, uri_len, name_len);
1255 nsptr = dom_get_ns(nodep, uri, &errorcode, prefix);
1265 if (prefix != NULL) {
1266 xmlFree(prefix);
1300 char *localname = NULL, *prefix = NULL; local
1312 errorcode = dom_check_qname(name, &localname, &prefix, uri_len, name_len);
1319 nsptr = dom_get_ns(root, uri, &errorcode, prefix);
1333 if (prefix !
[all...]
/PHP_5_6/ext/phar/
H A Dtar.h89 char prefix[155]; /* prefix for file name; member in struct:_tar_header
90 the value of the prefix field, if non-null,
/PHP_5_6/ext/standard/
H A Dhttp.c208 /* {{{ proto string http_build_query(mixed formdata [, string prefix [, string arg_separator [, int enc_type]]])
213 char *prefix = NULL, *arg_sep=NULL; local
218 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|ssl", &formdata, &prefix, &prefix_len, &arg_sep, &arg_sep_len, &enc_type) != SUCCESS) {
227 if (php_url_encode_hash_ex(HASH_OF(formdata), &formstr, prefix, prefix_len, NULL, 0, NULL, 0, (Z_TYPE_P(formdata) == IS_OBJECT ? formdata : NULL), arg_sep, enc_type TSRMLS_CC) == FAILURE) {
H A Duniqid.c41 /* {{{ proto string uniqid([string prefix [, bool more_entropy]])
46 char *prefix = ""; local
56 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sb", &prefix, &prefix_len,
79 spprintf(&uniqid, 0, "%s%08x%05x%.8F", prefix, sec, usec, php_combined_lcg(TSRMLS_C) * 10);
81 spprintf(&uniqid, 0, "%s%08x%05x", prefix, sec, usec);
H A Darray.c1268 PHPAPI int php_prefix_varname(zval *result, zval *prefix, char *var_name, int var_name_len, zend_bool add_underscore TSRMLS_DC) /* {{{ */ argument
1270 Z_STRLEN_P(result) = Z_STRLEN_P(prefix) + (add_underscore ? 1 : 0) + var_name_len;
1273 memcpy(Z_STRVAL_P(result), Z_STRVAL_P(prefix), Z_STRLEN_P(prefix));
1276 Z_STRVAL_P(result)[Z_STRLEN_P(prefix)] = '_';
1279 memcpy(Z_STRVAL_P(result) + Z_STRLEN_P(prefix) + (add_underscore ? 1 : 0), var_name, var_name_len + 1);
1285 /* {{{ proto int extract(array var_array [, int extract_type [, string prefix]])
1289 zval *var_array, *prefix = NULL; local
1299 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a|lz/", &var_array, &extract_type, &prefix) == FAILURE) {
1312 php_error_docref(NULL TSRMLS_CC, E_WARNING, "specified extract type requires the prefix paramete
[all...]
H A Dfile.c814 /* {{{ proto string tempnam(string dir, string prefix)
818 char *dir, *prefix; local
825 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ps", &dir, &dir_len, &prefix, &prefix_len) == FAILURE) {
833 php_basename(prefix, prefix_len, NULL, 0, &p, &p_len TSRMLS_CC);
H A Dstring.c2828 HASH *prefix; /* array of hashes of prefixes by pattern suffix hash order */ member in struct:__anon4
2997 res->prefix = safe_emalloc(patnum, sizeof(*res->prefix), 0);
2999 res->prefix[i] = php_strtr_hash(S(&res->patterns[i].pat), Bp);
3037 efree(d->prefix);
3067 if (d->prefix[i] != prefix_h)
/PHP_5_6/ext/xml/
H A Dcompat.c90 _start_element_handler_ns(void *user, const xmlChar *name, const xmlChar *prefix, const xmlChar *URI, int nb_namespaces, const xmlChar ** namespaces, int nb_attributes, int nb_defaulted, const xmlChar ** attributes) argument
110 if (prefix) {
111 qualified_name = xmlStrncatNew((xmlChar *)"<", prefix, xmlStrlen(prefix));
205 parser->h_end_ns(parser->user, nsptr->prefix);
234 _end_element_handler_ns(void *user, const xmlChar *name, const xmlChar * prefix, const xmlChar *URI) argument
244 if (prefix) {
245 end_element_len = spprintf(&end_element, 0, "</%s:%s>", (char *) prefix, (char *)name);
H A Dxml.c1129 void _xml_startNamespaceDeclHandler(void *userData,const XML_Char *prefix, const XML_Char *uri) argument
1137 args[1] = _xml_xmlchar_zval(prefix, 0, parser->target_encoding);
1147 void _xml_endNamespaceDeclHandler(void *userData, const XML_Char *prefix) argument
1155 args[1] = _xml_xmlchar_zval(prefix, 0, parser->target_encoding);
/PHP_5_6/ext/xmlwriter/
H A Dphp_xmlwriter.c214 ZEND_ARG_INFO(0, prefix)
220 ZEND_ARG_INFO(0, prefix)
227 ZEND_ARG_INFO(0, prefix)
234 ZEND_ARG_INFO(0, prefix)
262 ZEND_ARG_INFO(0, prefix)
268 ZEND_ARG_INFO(0, prefix)
286 ZEND_ARG_INFO(0, prefix)
293 ZEND_ARG_INFO(0, prefix)
885 /* {{{ proto bool xmlwriter_start_attribute_ns(resource xmlwriter, string prefix, string name, string uri)
892 char *name, *prefix, *ur local
981 char *name, *prefix, *uri, *content; local
1034 char *name, *prefix, *uri; local
1149 char *name, *prefix, *uri, *content = NULL; local
[all...]
/PHP_5_6/sapi/fpm/fpm/
H A Dfpm.c31 .prefix = NULL,
46 int fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, int test_conf, int run_as_root, int force_daemon, int force_stderr) /* {{{ */ argument
53 fpm_globals.prefix = prefix;
H A Dfpm.h40 int fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, int test_conf, int run_as_root, int force_daemon, int force_stderr);
47 char *prefix; member in struct:fpm_globals_s
H A Dfpm_conf.h56 char *prefix; member in struct:fpm_worker_pool_config_s
H A Dfpm_conf.c121 { "prefix", &fpm_conf_set_string, WPO(prefix) },
635 free(wpc->prefix);
681 char *prefix = NULL; local
689 prefix = wp->config->prefix;
692 /* if the wp prefix is not set */
693 if (prefix == NULL) {
694 prefix = fpm_globals.prefix;
[all...]
/PHP_5_6/Zend/
H A Dzend_vm_gen.php66 $prefix = array( variable
301 global $prefix, $helpers;
315 return $name.($spec?"_SPEC":"").$prefix[$op1].$prefix[$op2];
326 $op1_free_op_var_ptr, $op2_free_op_var_ptr, $prefix,
402 "\\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2]):""),
403 "goto \\1".(($spec && $kind != ZEND_VM_KIND_CALL)?("_SPEC".$prefix[$op1].$prefix[$op2]):""),
424 function($matches) use ($spec, $prefix,
[all...]
H A Dzend_compile.c2252 /* This is a compound class name that contains namespace prefix */
2254 /* The STRING name has "\" prefix */
2467 void zend_do_build_full_name(znode *result, znode *prefix, znode *name, int is_class_member TSRMLS_DC) /* {{{ */ argument
2472 result = prefix;
2474 *result = *prefix;
6984 void zend_do_build_namespace_name(znode *result, znode *prefix, znode *name TSRMLS_DC) /* {{{ */ argument
6986 if (prefix) {
6987 *result = *prefix;
7007 /* prefix = result */
/PHP_5_6/ext/soap/
H A Dphp_encoding.c302 smart_str prefix = {0}; local
319 smart_str_appendc(&prefix, '#');
320 smart_str_appends(&prefix, id);
321 smart_str_0(&prefix);
322 id = prefix.c;
325 smart_str_appendl(&prefix, "#ref", 4);
326 smart_str_append_long(&prefix, SOAP_GLOBAL(cur_uniq_ref));
327 smart_str_0(&prefix);
328 id = prefix.c;
336 smart_str_appendc(&prefix, '#');
3516 xmlChar* prefix; local
3522 smart_str prefix = {0}; local
[all...]
/PHP_5_6/ext/simplexml/
H A Dsimplexml.c129 static inline int match_ns(php_sxe_object *sxe, xmlNodePtr node, xmlChar *name, int prefix) /* {{{ */ argument
131 if (name == NULL && (node->ns == NULL || node->ns->prefix == NULL)) {
135 if (node->ns && !xmlStrcmp(prefix ? node->ns->prefix : node->ns->href, name)) {
1333 /* {{{ proto bool SimpleXMLElement::registerXPathNamespace(string prefix, string ns)
1334 Creates a prefix/ns context for the next XPath query */
1339 char *prefix, *ns_uri; local
1341 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &prefix, &prefix_len, &ns_uri, &ns_uri_len) == FAILURE) {
1350 if (xmlXPathRegisterNs(sxe->xpath, (xmlChar *)prefix, (xmlChar *)ns_uri) != 0) {
1440 #define SXE_NS_PREFIX(ns) (ns->prefix
1444 char *prefix = SXE_NS_PREFIX(ns); local
1640 xmlChar *localname, *prefix = NULL; local
1706 xmlChar *localname, *prefix = NULL; local
2282 xmlChar *prefix = sxe->iter.nsprefix; local
[all...]
/PHP_5_6/ext/spl/
H A Dspl_iterators.c119 smart_str prefix[6]; member in struct:_spl_recursive_it_object
885 smart_str_free(&object->prefix[0]);
886 smart_str_free(&object->prefix[1]);
887 smart_str_free(&object->prefix[2]);
888 smart_str_free(&object->prefix[3]);
889 smart_str_free(&object->prefix[4]);
890 smart_str_free(&object->prefix[5]);
908 smart_str_appendl(&intern->prefix[0], "", 0);
909 smart_str_appendl(&intern->prefix[1], "| ", 2);
910 smart_str_appendl(&intern->prefix[
1051 char* prefix; local
1125 zval prefix, entry, postfix; local
1181 zval prefix, key, postfix, key_copy; local
[all...]
/PHP_5_6/ext/fileinfo/libmagic/
H A Dcdf.c1101 cdf_dump_sat(const char *prefix, const cdf_sat_t *sat, size_t size) argument
1107 SIZE_T_FORMAT "u: ", prefix, i, i * s);

Completed in 108 milliseconds

12