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

12

/PHP_5_5/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.c297 /* This code is taken from http://www.acm.org/jgt/papers/SmithLyons96/hwb_rgb.html, an article
298 * on colour conversion to/from RBG and HWB colour systems.
611 void gdImagePaletteCopy (gdImagePtr to, gdImagePtr from) argument
616 if (to->trueColor || from->trueColor) {
629 xlate[p] = gdImageColorClosestAlpha (from, to->red[p], to->green[p], to->blue[p], to->alpha[p]);
635 for (i = 0; i < from->colorsTotal; i++) {
636 to->red[i] = from->red[i];
637 to->blue[i] = from->blue[i];
638 to->green[i] = from->green[i];
639 to->alpha[i] = from
[all...]
/PHP_5_5/ext/intl/
H A Dintl_convertcpp.cpp52 * from.getBuffer(), from.length(), &status),
54 int intl_charFromString(const UnicodeString &from, char **res, int *res_len, UErrorCode *status) argument
56 if (from.isBogus()) {
62 int32_t capacity = from.length() * 3 + 1;
64 if (from.isEmpty()) {
74 const UChar *utf16buf = from.getBuffer();
76 u_strToUTF8WithSub(*res, capacity - 1, &actual_len, utf16buf, from.length(),
/PHP_5_5/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_5/ext/mbstring/oniguruma/enc/
H A Dunicode.c8533 OnigCodePoint from; member in struct:__anon217
8538 OnigCodePoint from; member in struct:__anon218
8548 OnigCodePoint from[2]; member in struct:__anon220
8553 OnigCodePoint from[3]; member in struct:__anon221
10908 st_add_direct(FoldTable, (st_data_t )p->from, (st_data_t )&(p->to));
10913 st_add_direct(FoldTable, (st_data_t )p->from, (st_data_t )&(p->to));
10922 st_add_direct(Unfold1Table, (st_data_t )p1->from, (st_data_t )&(p1->to));
10928 st_add_direct(Unfold1Table, (st_data_t )p1->from, (st_data_t )&(p1->to));
10937 st_add_direct(Unfold2Table, (st_data_t )p2->from, (st_data_t )(&p2->to));
10943 st_add_direct(Unfold2Table, (st_data_t )p2->from, (st_data_
[all...]
/PHP_5_5/ext/mbstring/oniguruma/
H A Dregenc.h44 OnigCodePoint from; member in struct:__anon237
H A Dregexec.c264 onig_region_copy(OnigRegion* to, OnigRegion* from) argument
266 #define RREGC_SIZE (sizeof(int) * from->num_regs)
269 if (to == from) return;
272 if (from->num_regs > 0) {
275 to->allocated = from->num_regs;
278 else if (to->allocated < from->num_regs) {
281 to->allocated = from->num_regs;
284 for (i = 0; i < from->num_regs; i++) {
285 to->beg[i] = from->beg[i];
286 to->end[i] = from
3799 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 Dregsyntax.c233 onig_copy_syntax(OnigSyntaxType* to, OnigSyntaxType* from) argument
235 *to = *from;
H A Dtestc.c34 static void xx(char* pattern, char* str, int from, int to, int mem, int not) argument
75 if (pmatch[mem].rm_so == from && pmatch[mem].rm_eo == to) {
81 from, to, pmatch[mem].rm_so, pmatch[mem].rm_eo);
129 if (region->beg[mem] == from && region->end[mem] == to) {
135 from, to, region->beg[mem], region->end[mem]);
144 static void x2(char* pattern, char* str, int from, int to) argument
146 xx(pattern, str, from, to, 0, 0);
149 static void x3(char* pattern, char* str, int from, int to, int mem) argument
151 xx(pattern, str, from, to, mem, 0);
H A Dtestu.c25 static void uconv(char* from, char* to, int len) argument
34 c = (unsigned char )from[i];
36 c = (unsigned char )from[i+1];
49 c = (unsigned char )from[i+1];
58 static void xx(char* pattern, char* str, int from, int to, int mem, int not) argument
103 if (pmatch[mem].rm_so == from && pmatch[mem].rm_eo == to) {
109 from, to, pmatch[mem].rm_so, pmatch[mem].rm_eo);
175 if (region->beg[mem] == from && region->end[mem] == to) {
181 from, to, region->beg[mem], region->end[mem]);
190 static void x2(char* pattern, char* str, int from, in argument
195 x3(char* pattern, char* str, int from, int to, int mem) argument
[all...]
/PHP_5_5/ext/mbstring/oniguruma/win32/
H A Dtestc.c34 static void xx(char* pattern, char* str, int from, int to, int mem, int not) argument
75 if (pmatch[mem].rm_so == from && pmatch[mem].rm_eo == to) {
81 from, to, pmatch[mem].rm_so, pmatch[mem].rm_eo);
129 if (region->beg[mem] == from && region->end[mem] == to) {
135 from, to, region->beg[mem], region->end[mem]);
144 static void x2(char* pattern, char* str, int from, int to) argument
146 xx(pattern, str, from, to, 0, 0);
149 static void x3(char* pattern, char* str, int from, int to, int mem) argument
151 xx(pattern, str, from, to, mem, 0);
/PHP_5_5/ext/opcache/Optimizer/
H A Dzend_optimizer_internal.h82 zend_code_block *from; member in struct:_zend_block_source
H A Dblock_pass.c66 fprintf(stderr, " %d", bs->from->start_opline - opcodes);
134 /* start new block from this+1 */
318 while (__s && __s->from != fromb) __s = __s->next; \
323 __t->from = fromb; \
341 if ((*cs)->from == new) {
349 if ((*cs)->from == old) {
353 (*cs)->from = new;
360 static inline void del_source(zend_code_block *from, zend_code_block *to) argument
362 /* delete source 'from' from 't
[all...]
/PHP_5_5/ext/opcache/
H A Dzend_shared_alloc.c107 static void copy_shared_segments(void *to, void *from, int count, int size) argument
111 void *shared_segments_from_p = from;
402 * won't be taken from space which is freed by efree in memdup.
/PHP_5_5/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 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);
H A Durl.c488 unsigned char const *from, *end; local
490 from = (unsigned char *)s;
494 while (from < end) {
495 c = *from++;
/PHP_5_5/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,
518 zend_error_noreturn(E_COMPILE_ERROR, "Could not convert the script from the detected "
686 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_5/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_ex(from->fp, dba->fp, pos_next - pos_start, NULL)) {
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_5/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 51 milliseconds

12