Searched defs:from (Results 1 - 22 of 22) sorted by relevance

/PHP_5_4/ext/gd/libgd/
H A Dgdkanji.c86 /* DetectKanjiCode() derived from DetectCodeType() by Ken Lunde. */
243 /* han2zen() was derived from han2zen() written by Ken Lunde. */
344 do_convert (unsigned char *to, unsigned char *from, const char *code) argument
358 strcpy ((char *) to, (const char *) from);
362 from_len = strlen ((const char *) from) + 1;
365 if ((int) iconv(cd, (char **) &from, &from_len, (char **) &to, &to_len) == -1)
377 strcpy ((char *) to, (const char *) from);
393 for (i = 0; from[i] != '\0' && j < BUFSIZ; i++)
395 if (from[i] == ESC)
398 if (from[
466 do_check_and_conv(unsigned char *to, unsigned char *from) argument
[all...]
H A Dgd.c293 /* This code is taken from http://www.acm.org/jgt/papers/SmithLyons96/hwb_rgb.html, an article
294 * on colour conversion to/from RBG and HWB colour systems.
607 void gdImagePaletteCopy (gdImagePtr to, gdImagePtr from) argument
612 if (to->trueColor || from->trueColor) {
625 xlate[p] = gdImageColorClosestAlpha (from, to->red[p], to->green[p], to->blue[p], to->alpha[p]);
631 for (i = 0; i < from->colorsTotal; i++) {
632 to->red[i] = from->red[i];
633 to->blue[i] = from->blue[i];
634 to->green[i] = from->green[i];
635 to->alpha[i] = from
[all...]
/PHP_5_4/ext/mbstring/libmbfl/mbfl/
H A Dmbfilter.h125 const mbfl_encoding *from; member in struct:_mbfl_buffer_converter
129 MBFLAPI extern mbfl_buffer_converter * mbfl_buffer_converter_new(enum mbfl_no_encoding from, enum mbfl_no_encoding to, int buf_initsz);
130 MBFLAPI extern mbfl_buffer_converter * mbfl_buffer_converter_new2(const mbfl_encoding *from, const mbfl_encoding *to, int buf_initsz);
207 mbfl_substr(mbfl_string *string, mbfl_string *result, int from, int length);
213 mbfl_strcut(mbfl_string *string, mbfl_string *result, int from, int length);
225 mbfl_strimwidth(mbfl_string *string, mbfl_string *marker, mbfl_string *result, int from, int width);
H A Dmbfl_convert.c25 * The source code included in this files was separated from mbfilter.c
284 enum mbfl_no_encoding from,
292 if ((filter->from = mbfl_no2encoding(from)) == NULL) {
325 enum mbfl_no_encoding from,
334 vtbl = mbfl_convert_filter_get_vtbl(from, to);
346 if (mbfl_convert_filter_common_init(filter, from, to, vtbl,
374 if (mbfl_convert_filter_common_init(filter, vtbl->from, vtbl->to, vtbl,
406 enum mbfl_no_encoding from, enum mbfl_no_encoding to)
413 vtbl = mbfl_convert_filter_get_vtbl(from, t
282 mbfl_convert_filter_common_init( mbfl_convert_filter *filter, enum mbfl_no_encoding from, enum mbfl_no_encoding to, const struct mbfl_convert_vtbl *vtbl, int (*output_function)(int, void* ), int (*flush_function)(void*), void* data) argument
324 mbfl_convert_filter_new( enum mbfl_no_encoding from, enum mbfl_no_encoding to, int (*output_function)(int, void* ), int (*flush_function)(void*), void* data) argument
405 mbfl_convert_filter_reset(mbfl_convert_filter *filter, enum mbfl_no_encoding from, enum mbfl_no_encoding to) argument
576 mbfl_convert_filter_get_vtbl(enum mbfl_no_encoding from, enum mbfl_no_encoding to) argument
[all...]
H A Dmbfl_convert.h25 * The source code included in this files was separated from mbfilter.h
51 const mbfl_encoding *from; member in struct:_mbfl_convert_filter
60 enum mbfl_no_encoding from; member in struct:mbfl_convert_vtbl
72 enum mbfl_no_encoding from,
85 MBFLAPI extern void mbfl_convert_filter_reset(mbfl_convert_filter *filter, enum mbfl_no_encoding from, enum mbfl_no_encoding to);
88 MBFLAPI extern const struct mbfl_convert_vtbl * mbfl_convert_filter_get_vtbl(enum mbfl_no_encoding from, enum mbfl_no_encoding to);
H A Dmbfilter.c127 enum mbfl_no_encoding from,
131 const mbfl_encoding *_from = mbfl_no2encoding(from);
139 const mbfl_encoding *from,
152 convd->from = from;
158 if (mbfl_convert_filter_get_vtbl(convd->from->no_encoding, convd->to->no_encoding) != NULL) {
159 convd->filter1 = mbfl_convert_filter_new(convd->from->no_encoding, convd->to->no_encoding, mbfl_memory_device_output, NULL, &convd->device);
163 convd->filter1 = mbfl_convert_filter_new(convd->from->no_encoding,
1304 int from,
1323 start = from;
126 mbfl_buffer_converter_new( enum mbfl_no_encoding from, enum mbfl_no_encoding to, int buf_initsz) argument
138 mbfl_buffer_converter_new2( const mbfl_encoding *from, const mbfl_encoding *to, int buf_initsz) argument
1301 mbfl_substr( mbfl_string *string, mbfl_string *result, int from, int length) argument
1459 mbfl_strcut( mbfl_string *string, mbfl_string *result, int from, int length) argument
1819 int from; member in struct:collector_strimwidth_data
1860 mbfl_strimwidth( mbfl_string *string, mbfl_string *marker, mbfl_string *result, int from, int width) argument
[all...]
/PHP_5_4/ext/mbstring/oniguruma/
H A Doniguruma.h137 OnigCodePoint from; member in struct:__anon66
746 int num_mem; /* used memory(...) num counted from 1 */
829 void onig_region_copy P_((OnigRegion* to, OnigRegion* from));
865 void onig_copy_syntax P_((OnigSyntaxType* to, OnigSyntaxType* from));
885 void onig_copy_encoding P_((OnigEncoding to, OnigEncoding from));
H A Dregcomp.c549 /* padding for return value from compile_length_cclass_node() to be fix. */
3858 copy_mml(MinMaxLen* to, MinMaxLen* from) argument
3860 to->min = from->min;
3861 to->max = from->max;
3865 add_mml(MinMaxLen* to, MinMaxLen* from) argument
3867 to->min = distance_add(to->min, from->min);
3868 to->max = distance_add(to->max, from->max);
3881 alt_merge_mml(MinMaxLen* to, MinMaxLen* from) argument
3883 if (to->min > from->min) to->min = from
3888 copy_opt_env(OptEnv* to, OptEnv* from) argument
3901 copy_opt_anc_info(OptAncInfo* to, OptAncInfo* from) argument
3985 copy_opt_exact_info(OptExactInfo* to, OptExactInfo* from) argument
4133 copy_opt_map_info(OptMapInfo* to, OptMapInfo* from) argument
4254 copy_node_opt_info(NodeOptInfo* to, NodeOptInfo* from) argument
5006 onig_transfer(regex_t* to, regex_t* from) argument
[all...]
H A Dregexec.c262 onig_region_copy(OnigRegion* to, OnigRegion* from) argument
264 #define RREGC_SIZE (sizeof(int) * from->num_regs)
267 if (to == from) return;
270 if (from->num_regs > 0) {
273 to->allocated = from->num_regs;
276 else if (to->allocated < from->num_regs) {
279 to->allocated = from->num_regs;
282 for (i = 0; i < from->num_regs; i++) {
283 to->beg[i] = from->beg[i];
284 to->end[i] = from
3945 onig_copy_encoding(OnigEncoding to, OnigEncoding from) argument
[all...]
H A Dregext.c95 conv_encoding(OnigEncoding from, OnigEncoding to, const UChar* s, const UChar* end, argument
101 if (from == ONIG_ENCODING_ASCII || from == ONIG_ENCODING_ISO_8859_1) {
108 else if (from == ONIG_ENCODING_UTF16_LE) {
118 if (from == ONIG_ENCODING_ASCII || from == ONIG_ENCODING_ISO_8859_1) {
125 else if (from == ONIG_ENCODING_UTF16_BE) {
130 if (from == ONIG_ENCODING_ASCII || from == ONIG_ENCODING_ISO_8859_1) {
137 else if (from
[all...]
H A Dregparse.c109 bbuf_clone(BBuf** rto, BBuf* from) argument
116 r = BBUF_INIT(to, from->alloc);
118 to->used = from->used;
119 xmemcpy(to->p, from->p, from->used);
150 bitset_set_range(BitSetRef bs, int from, int to) argument
153 for (i = from; i <= to && i < SINGLE_BYTE_SIZE; i++) {
179 bitset_invert_to(BitSetRef from, BitSetRef to) argument
183 to[i] = ~(from[i]);
1642 [n][from
1664 add_code_range_to_buf(BBuf** pbuf, OnigCodePoint from, OnigCodePoint to) argument
1739 add_code_range(BBuf** pbuf, ScanEnv* env, OnigCodePoint from, OnigCodePoint to) argument
1755 OnigCodePoint pre, from, *data, to = 0; local
1799 OnigCodePoint from, to; local
1895 OnigCodePoint from, to, from1, to1, from2, to2; local
2680 find_str_position(OnigCodePoint s[], int n, UChar* from, UChar* to, UChar **next, OnigEncoding enc) argument
2709 str_exist_check_with_esc(OnigCodePoint s[], int n, UChar* from, UChar* to, OnigCodePoint bad, OnigEncoding enc) argument
4038 code_exist_check(OnigCodePoint c, UChar* from, UChar* end, int ignore_escaped, OnigEncoding enc) argument
[all...]
H A Dregsyntax.c154 onig_copy_syntax(OnigSyntaxType* to, OnigSyntaxType* from) argument
156 *to = *from;
/PHP_5_4/ext/standard/
H A Dcyr_convert.c36 * Each table contains data for 128-255 symbols from ASCII table.
37 * First 256 symbols are for conversion from koi8-r to corresponding charset,
38 * second 256 symbols are for reverse conversion, from charset to koi8-r.
190 /* {{{ static char * php_convert_cyr_string(unsigned char *str, int length, char from, char to TSRMLS_DC)
195 * from,to - one-symbol label of source and destination charset
204 static char * php_convert_cyr_string(unsigned char *str, int length, char from, char to TSRMLS_DC) argument
213 switch (toupper((int)(unsigned char)from))
231 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown source charset: %c", from);
270 /* {{{ proto string convert_cyr_string(string str, string from, string to)
271 Convert from on
[all...]
H A Dstring.c851 Strips whitespace from the beginning and end of a string */
867 Strips whitespace from the beginning of a string */
2265 /* if "from" position is negative, count start position from the end
2276 * needed to stop that many chars from the end of the string
2302 zval **from; local
2314 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ZZZ|Z", &str, &repl, &from, &len) == FAILURE) {
2330 if (Z_TYPE_PP(from) != IS_ARRAY) {
2331 if (Z_ISREF_PP(from)) {
2332 SEPARATE_ZVAL(from);
3185 zval **from; local
3645 php_char_to_str_ex(char *str, uint len, char from, char *to, int to_len, zval *result, int case_sensitivity, int *replace_count) argument
3715 php_char_to_str(char *str, uint len, char from, char *to, int to_len, zval *result) argument
[all...]
H A Durl.c492 unsigned char const *from, *end; local
494 from = (unsigned char *)s;
498 while (from < end) {
499 c = *from++;
H A Ddns.c60 /* Borrowed from SYS/SOCKET.H */
69 /* For the local hostname obtained via gethostname which is different from the
352 struct sockaddr_storage from; local
353 uint32_t fromsize = sizeof(from);
762 struct sockaddr_storage from; local
763 uint32_t fromsize = sizeof(from);
979 struct sockaddr_storage from; local
980 uint32_t fromsize = sizeof(from);
/PHP_5_4/Zend/
H A Dzend_language_scanner.c128 static size_t encoding_filter_script_to_internal(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length TSRMLS_DC) argument
132 return zend_multibyte_encoding_converter(to, to_length, from, from_length, internal_encoding, LANG_SCNG(script_encoding) TSRMLS_CC);
135 static size_t encoding_filter_script_to_intermediate(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length TSRMLS_DC) argument
137 return zend_multibyte_encoding_converter(to, to_length, from, from_length, zend_multibyte_encoding_utf8, LANG_SCNG(script_encoding) TSRMLS_CC);
140 static size_t encoding_filter_intermediate_to_script(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length TSRMLS_DC) argument
142 return zend_multibyte_encoding_converter(to, to_length, from, from_length,
146 static size_t encoding_filter_intermediate_to_internal(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length TSRMLS_DC) argument
150 return zend_multibyte_encoding_converter(to, to_length, from, from_length,
515 zend_error_noreturn(E_COMPILE_ERROR, "Could not convert the script from the detected "
683 zend_error_noreturn(E_COMPILE_ERROR, "Could not convert the script from th
[all...]
H A Dzend_multibyte.c48 static size_t dummy_encoding_converter(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length, const zend_encoding *encoding_to, const zend_encoding *encoding_from TSRMLS_DC) argument
148 ZEND_API size_t zend_multibyte_encoding_converter(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length, const zend_encoding *encoding_to, const zend_encoding *encoding_from TSRMLS_DC) argument
150 return multibyte_functions.encoding_converter(to, to_length, from, from_length, encoding_to, encoding_from TSRMLS_CC);
/PHP_5_4/ext/dba/libinifile/
H A Dinifile.c251 /* we got position already from last fetch */
414 * copy from to dba while ignoring key name (group must equal)
416 static int inifile_filter(inifile *dba, inifile *from, const key_type *key TSRMLS_DC) argument
422 php_stream_seek(from->fp, 0, SEEK_SET);
424 while(inifile_read(from, &ln TSRMLS_CC)) {
427 pos_curr = php_stream_tell(from->fp);
429 php_stream_seek(from->fp, pos_start, SEEK_SET);
430 if (!php_stream_copy_to_stream(from->fp, dba->fp, pos_next - pos_start)) {
431 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Could not copy [%zu - %zu] from temporary stream", pos_next, pos_start);
434 php_stream_seek(from
[all...]
/PHP_5_4/ext/mbstring/
H A Dmbstring.c29 * 2001.5.1 Renamed from jstring to mbstring (hirokawa@php.net)
355 ZEND_ARG_INFO(0, from)
407 ZEND_ARG_INFO(0, from)
901 static size_t php_mb_zend_encoding_converter(unsigned char **to, size_t *to_length, const unsigned char *from, size_t from_length, const zend_encoding *encoding_to, const zend_encoding *encoding_from TSRMLS_DC) argument
913 string.val = (unsigned char*)from;
2716 long from, len; local
2721 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl|Zs", &str, &str_len, &from, &z_len, &encoding, &encoding_len) == FAILURE) {
2749 if (from < 0 || len < 0) {
2753 /* if "from" position is negative, count start position from th
2793 long from, len; local
2894 long from, width; local
[all...]
/PHP_5_4/ext/pgsql/
H A Dpgsql.c756 #define PQescapeStringConn(conn, to, from, len, error) PQescapeString(to, from, len)
1326 /* need to send & get something from backend to
2249 if ((result = PQexec(pgsql,"select oid,typname from pg_type")) == NULL || PQresultStatus(result) != PGRES_TUPLES_OK) {
2344 smart_str_appends(&querystr, "select relname from pg_class where oid=");
2503 Returns values from a result identifier */
2750 /* pg_fetch_assoc() is added from PHP 4.3.0. It should raise error, when
3463 Import large object direct from filesystem */
4006 Copy table from array */
4135 char *from local
4177 char *from = NULL, *to = NULL; local
4324 char *from = NULL, *to = NULL, *tmp = NULL; local
4349 char *from = NULL, *to = NULL; local
[all...]
/PHP_5_4/ext/spl/
H A Dspl_dllist.c319 static void spl_ptr_llist_copy(spl_ptr_llist *from, spl_ptr_llist *to TSRMLS_DC) /* {{{ */ argument
321 spl_ptr_llist_element *current = from->head, *next;
322 spl_ptr_llist_ctor_func ctor = from->ctor;
612 zend_throw_exception(spl_ce_RuntimeException, "Can't pop from an empty datastructure", 0 TSRMLS_CC);
635 zend_throw_exception(spl_ce_RuntimeException, "Can't shift from an empty datastructure", 0 TSRMLS_CC);

Completed in 55 milliseconds