Home
last modified time | relevance | path

Searched refs:width (Results 1 – 25 of 108) sorted by relevance

12345

/PHP-5.3/ext/standard/tests/strings/
H A Dwordwrap_error.phpt19 $width = 10;
26 // $width arg as negative value
29 // width as zero and cut as false
30 $width = 0;
36 $width = 0;
41 // width as -ne and cut as false
42 $width = -10;
48 $width = -10;
68 -- width = 0 & cut = false --
70 -- width = 0 & cut = true --
[all …]
H A Dwordwrap_basic.phpt5 /* Prototype : string wordwrap ( string $str [, int $width [, string $break [, bool $cut]]] )
14 $width = 80;
21 // with $width arg
22 var_dump( wordwrap($str, $width) );
24 var_dump( wordwrap($str, $width, $break) );
28 $width = 10;
30 var_dump( wordwrap($str, $width, $break, $cut) );
33 $width = 10;
35 var_dump( wordwrap($str, $width, $break, $cut) );
H A Dwordwrap_variation5.phpt5 /* Prototype : string wordwrap ( string $str [, int $width [, string $break [, bool $cut]]] )
18 $width = 1;
23 var_dump( wordwrap($str, $width) ); // default break and cut value
28 var_dump( wordwrap($str, $width, $break) );
29 var_dump( wordwrap($str, $width, $break1) );
33 var_dump( wordwrap($str, $width, $break, $cut) );
34 var_dump( wordwrap($str, $width, $break1, $cut) );
38 var_dump( wordwrap($str, $width, $break, $cut) );
39 var_dump( wordwrap($str, $width, $break1, $cut) );
H A Dsscanf_basic3.phpt18 list($part, $length, $width, $depth) = sscanf($str, $format);
19 var_dump($part, $length, $width, $depth);
23 $res = sscanf($str, $format, $part, $length, $width, $depth);
24 var_dump($res, $part, $length, $width, $depth);
H A Dwordwrap_variation2.phpt2 Test wordwrap() function : usage variations - unexpected values for width argument
11 * test wordwrap by passing different values for width argument
27 // array with different values as width
29 // zerovalue for width
32 // -ve value for width
76 // when $width arugment is supplied with different values
81 $width = $values [$index];
83 var_dump( wordwrap($str, $width) );
84 var_dump( wordwrap($str, $width, $break) );
88 var_dump( wordwrap($str, $width, $break, $cut) );
[all …]
/PHP-5.3/ext/gd/libgd/
H A Dwbmp.c111 createwbmp (int width, int height, int color) in createwbmp() argument
119 if (overflow2(sizeof (int), width)) { in createwbmp()
123 if (overflow2(sizeof (int) * width, height)) { in createwbmp()
134 wbmp->width = width; in createwbmp()
170 wbmp->width = getmbi (getin, in); in readwbmp()
171 if (wbmp->width == -1) in readwbmp()
188 if (overflow2(sizeof (int), wbmp->width) || in readwbmp()
208 for (col = 0; col < wbmp->width;) in readwbmp()
214 if (col++ < wbmp->width) in readwbmp()
269 for (col = 0; col < wbmp->width; col++) in writewbmp()
[all …]
H A Dgd_arc_f_buggy.c13 static gdPoint gdArcClosest (int width, int height, int angle);
66 width = (width & 1) ? (width + 1) : (width);
69 a = width / 2;
111 pt[0] = gdArcClosest (width, height, s);
119 pt[2] = gdArcClosest (width, height, e);
143 pt[3] = gdArcClosest (width, height, e);
167 pt[4] = gdArcClosest (width, height, e);
190 pt[5] = gdArcClosest (width, height, e);
259 w = (long) width;
534 gdArcClosest (int width, int height, int angle)
[all …]
H A Dwbmp.h30 int width; /* width of the image */ member
46 Wbmp *createwbmp( int width, int height, int color );
H A Dgd_png.c123 png_uint_32 width, height, rowbytes, w, h; in gdImageCreateFromPngCtx() local
195 im = gdImageCreateTrueColor((int) width, (int) height); in gdImageCreateFromPngCtx()
197 im = gdImageCreate((int) width, (int) height); in gdImageCreateFromPngCtx()
360 for (w = 0; w < width; w++) { in gdImageCreateFromPngCtx()
373 for (w = 0; w < width; w++) { in gdImageCreateFromPngCtx()
392 for (w = 0; w < width; ++w) { in gdImageCreateFromPngCtx()
465 int width = im->sx; in gdImagePngCtxEx() local
691 *prow_pointers = (png_bytep) safe_emalloc(width, channels, 0); in gdImagePngCtxEx()
694 for (i = 0; i < width; ++i) { in gdImagePngCtxEx()
731 row_pointers[j] = (png_bytep) gdMalloc(width); in gdImagePngCtxEx()
[all …]
H A Dxbm.c39 unsigned int width = 0, height = 0; in gdImageCreateFromXbm() local
64 width = (unsigned int) value; in gdImageCreateFromXbm()
80 bytes = (width * height / 8) + 1; in gdImageCreateFromXbm()
99 if(!(im = gdImageCreate(width, height))) { in gdImageCreateFromXbm()
H A Dgd_wbmp.c139 if (!(im = gdImageCreate (wbmp->width, wbmp->height))) { in gdImageCreateFromWBMPCtx()
152 for (col = 0; col < wbmp->width; col++) { in gdImageCreateFromWBMPCtx()
/PHP-5.3/ext/standard/tests/image/
H A Dgetimagesize.phpt36 string(20) "width="1" height="1""
51 string(20) "width="1" height="1""
68 string(20) "width="1" height="1""
85 string(20) "width="1" height="1""
102 string(20) "width="2" height="1""
119 string(20) "width="4" height="1""
136 string(20) "width="4" height="1""
151 string(20) "width="4" height="1""
166 string(20) "width="4" height="1""
179 string(24) "width="550" height="400""
[all …]
H A Dgetimagesize_basic.phpt61 string(24) "width="200" height="100""
81 string(24) "width="200" height="100""
103 string(24) "width="200" height="100""
121 string(24) "width="200" height="100""
137 string(24) "width="200" height="100""
155 string(24) "width="200" height="100""
171 string(20) "width="1" height="1""
191 string(20) "width="1" height="1""
211 string(20) "width="4" height="1""
H A Dbug13213.phpt16 string(20) "width="1" height="1""
/PHP-5.3/ext/gd/tests/
H A Dimagecopyresampled_basic.phpt39 list($width, $height) = getimagesize($dest_lge);
40 echo "Size of orginal: width=". $width . " height=" . $height . "\n";
42 $new_width = $width * $percent;
47 imagecopyresampled($image_sml, $image_lge, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
51 list($width, $height) = getimagesize($dest_sml);
52 echo "Size of copy: width=". $width . " height=" . $height . "\n";
69 Size of orginal: width=400 height=300
70 Size of copy: width=200 height=150
H A Dbug39273.phpt15 $width = 300;
20 $img = imagecreatetruecolor($width, $height);
24 imagecopyresized($img, $small, 0,0, 0,0, $width, $height, $srcw, $srch);
H A Dlibgd00094.xbm1 #define width 255
H A Dbug19366.phpt10 $width = 50;
12 $ImHandle = imagecreate($width,$height);
H A Dbug39286.phpt13 Warning: imagecreatefromgd2part(): Zero width or height not allowed in %s on line %d
/PHP-5.3/ext/standard/
H A Dformatted_print.c210 int width, char padding, in php_sprintf_appenddouble() argument
504 width = 0; in php_formatted_print()
529 width = precision = 0; in php_formatted_print()
568 width, precision, padding, in php_formatted_print()
582 width, padding, alignment, in php_formatted_print()
590 width, padding, alignment); in php_formatted_print()
602 width, padding, alignment, in php_formatted_print()
618 width, padding, alignment, 3, in php_formatted_print()
626 width, padding, alignment, 4, in php_formatted_print()
634 width, padding, alignment, 4, in php_formatted_print()
[all …]
H A Dimage.c62 unsigned int width; member
855 width = entry_value; in php_handle_tiff()
864 if ( width && height) { in php_handle_tiff()
868 result->width = width; in php_handle_tiff()
916 result->width = width; in php_handle_iff()
967 width = (width << 7) | (i & 0x7f); in php_get_wbmp()
980 if (!height || !width || height > 2048 || width > 2048) { in php_get_wbmp()
985 (*result)->width = width; in php_get_wbmp()
1042 if (width) { in php_get_xbm()
1055 if (width && height) { in php_get_xbm()
[all …]
H A Dscanf.c592 size_t width; in php_sscanf_internal() local
727 width = 0; in php_sscanf_internal()
805 if (0 == width) { in php_sscanf_internal()
806 width = 1; in php_sscanf_internal()
852 if (width == 0) { in php_sscanf_internal()
862 if (--width == 0) { in php_sscanf_internal()
888 if (width == 0) { in php_sscanf_internal()
953 if ((width == 0) || (width > sizeof(buf) - 1)) { in php_sscanf_internal()
958 for (end = buf; width > 0; width--) { in php_sscanf_internal()
1095 if ((width == 0) || (width > sizeof(buf) - 1)) { in php_sscanf_internal()
[all …]
/PHP-5.3/ext/sqlite/libsqlite/src/
H A Dprintf.c263 width = 0; in vxprintf()
265 width = va_arg(ap,int); in vxprintf()
266 if( width<0 ){ in vxprintf()
268 width = -width; in vxprintf()
273 width = width*10 + c - '0'; in vxprintf()
278 width = etBUFSIZE-10; in vxprintf()
507 length = width; in vxprintf()
513 length = width = 0; in vxprintf()
574 length = width = 0; in vxprintf()
587 length = width = 0; in vxprintf()
[all …]
/PHP-5.3/ext/phar/tests/
H A Dphpinfo_004.phpt28 <table border="0" cellpadding="3" width="600">
40 <table border="0" cellpadding="3" width="600">
44 <table border="0" cellpadding="3" width="600">
52 <table border="0" cellpadding="3" width="600">
64 <table border="0" cellpadding="3" width="600">
68 <table border="0" cellpadding="3" width="600">
/PHP-5.3/
H A Dfooter4 * tab-width: 4

Completed in 54 milliseconds

12345