Lines Matching refs:b
22 PHPAPI void php_ini_builder_prepend(struct php_ini_builder *b, const char *src, size_t length) in php_ini_builder_prepend() argument
24 php_ini_builder_realloc(b, length); in php_ini_builder_prepend()
25 if (b->length > 0) in php_ini_builder_prepend()
26 memmove(b->value + length, b->value, b->length); in php_ini_builder_prepend()
27 memcpy(b->value, src, length); in php_ini_builder_prepend()
28 b->length += length; in php_ini_builder_prepend()
31 PHPAPI void php_ini_builder_unquoted(struct php_ini_builder *b, const char *name, size_t name_lengt… in php_ini_builder_unquoted() argument
33 php_ini_builder_realloc(b, name_length + 1 + value_length + 1); in php_ini_builder_unquoted()
35 memcpy(b->value + b->length, name, name_length); in php_ini_builder_unquoted()
36 b->length += name_length; in php_ini_builder_unquoted()
38 b->value[b->length++] = '='; in php_ini_builder_unquoted()
40 memcpy(b->value + b->length, value, value_length); in php_ini_builder_unquoted()
41 b->length += value_length; in php_ini_builder_unquoted()
43 b->value[b->length++] = '\n'; in php_ini_builder_unquoted()
46 PHPAPI void php_ini_builder_quoted(struct php_ini_builder *b, const char *name, size_t name_length,… in php_ini_builder_quoted() argument
48 php_ini_builder_realloc(b, name_length + 2 + value_length + 2); in php_ini_builder_quoted()
50 memcpy(b->value + b->length, name, name_length); in php_ini_builder_quoted()
51 b->length += name_length; in php_ini_builder_quoted()
53 b->value[b->length++] = '='; in php_ini_builder_quoted()
54 b->value[b->length++] = '"'; in php_ini_builder_quoted()
56 memcpy(b->value + b->length, value, value_length); in php_ini_builder_quoted()
57 b->length += value_length; in php_ini_builder_quoted()
59 b->value[b->length++] = '"'; in php_ini_builder_quoted()
60 b->value[b->length++] = '\n'; in php_ini_builder_quoted()
63 PHPAPI void php_ini_builder_define(struct php_ini_builder *b, const char *arg) in php_ini_builder_define() argument
71 php_ini_builder_quoted(b, arg, val - arg - 1, val, arg + len - val); in php_ini_builder_define()
73 php_ini_builder_realloc(b, len + strlen("\n")); in php_ini_builder_define()
74 memcpy(b->value + b->length, arg, len); in php_ini_builder_define()
75 b->length += len; in php_ini_builder_define()
76 b->value[b->length++] = '\n'; in php_ini_builder_define()
79 php_ini_builder_unquoted(b, arg, len, "1", 1); in php_ini_builder_define()