Home
last modified time | relevance | path

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

123456

/PHP-7.3/ext/standard/tests/strings/
H A Dwordwrap_error.phpt19 $width = 10;
26 // $width arg as negative value
30 $width = 0;
35 // width as zero and cut as true
36 $width = 0;
42 $width = -10;
47 // width as -ne and cut as true
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 argument 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-7.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()
173 wbmp->width = getmbi (getin, in); in readwbmp()
174 if (wbmp->width == -1) in readwbmp()
191 if (overflow2(sizeof (int), wbmp->width) || in readwbmp()
211 for (col = 0; col < wbmp->width;) in readwbmp()
217 if (col++ < wbmp->width) in readwbmp()
272 for (col = 0; col < wbmp->width; col++) in writewbmp()
[all …]
H A Dgd_crop.c80 const int width = gdImageSX(im); in gdImageCropAuto() local
89 crop.width = 0; in gdImageCropAuto()
124 for (x = 0; match && x < width; x++) { in gdImageCropAuto()
139 for (x = 0; match && x < width; x++) { in gdImageCropAuto()
146 for (x = 0; match && x < width; x++) { in gdImageCropAuto()
159 crop.width = x - crop.x + 2; in gdImageCropAuto()
188 const int width = gdImageSX(im); in gdImageCropThreshold() local
197 crop.width = 0; in gdImageCropThreshold()
215 for (x = 0; match && x < width; x++) { in gdImageCropThreshold()
236 for (x = 0; match && x < width; x++) { in gdImageCropThreshold()
[all …]
H A Dgd_bmp.c471 BMP_DEBUG(printf("Width: %d\n", info->width)); in gdImageCreateFromBmpCtx()
480 im = gdImageCreate(info->width, info->height); in gdImageCreateFromBmpCtx()
575 !gdGetIntLSB(&info->width, infile) || in bmp_read_windows_v3_info()
635 !gdGetIntLSB(&info->width, infile) || in bmp_read_os2_v2_info()
733 for (xpos = 0; xpos < info->width; xpos++) { in bmp_read_direct()
817 padding = (info->width + 7) / 8 % 4; in bmp_read_1bit()
842 if ((xpos + bit) >= info->width) { in bmp_read_1bit()
887 padding = ((int)ceil(0.5 * info->width)) % 4; in bmp_read_4bit()
913 if (xpos >= info->width) { in bmp_read_4bit()
974 padding = (1 * info->width) % 4; in bmp_read_8bit()
[all …]
H A Dwbmp.h30 int width; /* width of the image */ member
46 Wbmp *createwbmp( int width, int height, int color );
H A Dgd_webp.c39 int width, height; in gdImageCreateFromWebpCtx() local
68 if (WebPGetInfo(filedata,size, &width, &height) == 0) { in gdImageCreateFromWebpCtx()
74 im = gdImageCreateTrueColor(width, height); in gdImageCreateFromWebpCtx()
79 argb = WebPDecodeARGB(filedata, size, &width, &height); in gdImageCreateFromWebpCtx()
87 for (x = 0; x < width; x++) { in gdImageCreateFromWebpCtx()
H A Dgd_png.c124 png_uint_32 width, height, rowbytes, w, h, res_x, res_y; in gdImageCreateFromPngCtx() local
197 im = gdImageCreateTrueColor((int) width, (int) height); in gdImageCreateFromPngCtx()
199 im = gdImageCreate((int) width, (int) height); in gdImageCreateFromPngCtx()
377 for (w = 0; w < width; w++) { in gdImageCreateFromPngCtx()
390 for (w = 0; w < width; w++) { in gdImageCreateFromPngCtx()
409 for (w = 0; w < width; ++w) { in gdImageCreateFromPngCtx()
482 int width = im->sx; in gdImagePngCtxEx() local
714 *prow_pointers = (png_bytep) safe_emalloc(width, channels, 0); in gdImagePngCtxEx()
717 for (i = 0; i < width; ++i) { in gdImagePngCtxEx()
754 row_pointers[j] = (png_bytep) gdMalloc(width); in gdImagePngCtxEx()
[all …]
/PHP-7.3/ext/standard/tests/image/
H A Dgetimagesize.phpt36 string(20) "width="1" height="1""
51 string(20) "width="4" height="3""
66 string(20) "width="1" height="1""
81 string(20) "width="1" height="1""
96 string(20) "width="1" height="1""
113 string(20) "width="1" height="1""
130 string(20) "width="1" height="1""
147 string(20) "width="2" height="1""
164 string(20) "width="1" height="3""
179 string(20) "width="1" height="3""
[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 Dgetimagesizefromstring1.phpt25 string(23) "width="120" height="67""
41 string(23) "width="120" height="67""
/PHP-7.3/ext/gd/tests/
H A Dimagecopyresampled_basic.phpt38 list($width, $height) = getimagesize($dest_lge);
39 echo "Size of original: width=". $width . " height=" . $height . "\n";
41 $new_width = $width * $percent;
46 imagecopyresampled($image_sml, $image_lge, 0, 0, 0, 0, $new_width, $new_height, $width, $height);
50 list($width, $height) = getimagesize($dest_sml);
51 echo "Size of copy: width=". $width . " height=" . $height . "\n";
68 Size of original: width=400 height=300
69 Size of copy: width=200 height=150
H A Dbug77943.phpt11 $width = 400;
13 $im = imagecreatetruecolor($width, $height);
18 imagefilledrectangle($im, 0, 0, $width-1, $height-1, $white);
20 imageline($im, 0, 0, $width, $height, $blue);
22 imageline($im, 10, 0, $width, $height-10, $blue);
H A Dbug66356.phpt12 var_dump(imagecrop($img, array("x" => "a", "y" => 0, "width" => 10, "height" => 10)));
14 $arr = array("x" => "a", "y" => "12b", "width" => 10, "height" => 10);
19 var_dump(imagecrop($img, array("x" => 0, "y" => 0, "width" => -1, "height" => 10)));
22 var_dump(imagecrop($img, array("x" => -20, "y" => -20, "width" => 10, "height" => 10)));
25 var_dump(imagecrop($img, array("x" => 0x7fffff00, "y" => 0, "width" => 10, "height" => 10)));
28 var_dump(imagecrop($img, array("x" => 0, "y" => 0, "width" => 65535, "height" => 65535)));
37 [width] => 10
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 Dbug77198_threshold.phpt26 $width = imagesx($cropped);
27 if ($width !== 1) {
28 printf("Pixel at %d, %d: unexpected width (%d)\n", $x, $y, $width);
H A Dbug77198_auto.phpt29 $width = imagesx($cropped);
30 if ($width !== 1) {
31 printf("Pixel at %d, %d: unexpected width (%d)\n", $x, $y, $width);
/PHP-7.3/ext/exif/tests/
H A Dbug77540.phpt7 $width = $height = 42;
8 $s = exif_thumbnail(__DIR__."/bug77540.jpg", $width, $height);
9 echo "Width ".$width."\n";
/PHP-7.3/ext/standard/
H A Dformatted_print.c206 size_t width, char padding, in php_sprintf_appenddouble() argument
517 width = 0; in php_formatted_print()
544 width = precision = 0; in php_formatted_print()
569 width, precision, padding, in php_formatted_print()
580 width, padding, alignment, in php_formatted_print()
587 width, padding, alignment); in php_formatted_print()
598 width, padding, alignment, in php_formatted_print()
612 width, padding, alignment, 3, in php_formatted_print()
619 width, padding, alignment, 4, in php_formatted_print()
626 width, padding, alignment, 4, in php_formatted_print()
[all …]
H A Dimage.c65 unsigned int width; member
857 width = entry_value; in php_handle_tiff()
866 if ( width && height) { in php_handle_tiff()
870 result->width = width; in php_handle_tiff()
918 result->width = width; in php_handle_iff()
969 width = (width << 7) | (i & 0x7f); in php_get_wbmp()
989 if (!height || !width) { in php_get_wbmp()
994 (*result)->width = width; in php_get_wbmp()
1051 if (width) { in php_get_xbm()
1064 if (width && height) { in php_get_xbm()
[all …]
H A Dscanf.c589 size_t width; in php_sscanf_internal() local
723 width = 0; in php_sscanf_internal()
796 if (0 == width) { in php_sscanf_internal()
797 width = 1; in php_sscanf_internal()
843 if (width == 0) { in php_sscanf_internal()
853 if (--width == 0) { in php_sscanf_internal()
874 if (width == 0) { in php_sscanf_internal()
939 if ((width == 0) || (width > sizeof(buf) - 1)) { in php_sscanf_internal()
944 for (end = buf; width > 0; width--) { in php_sscanf_internal()
1081 if ((width == 0) || (width > sizeof(buf) - 1)) { in php_sscanf_internal()
[all …]
/PHP-7.3/ext/mbstring/tests/
H A Dbug76532.phpt8 $width = 2147483647;
9 var_dump(mb_strimwidth($string_to_trim, 0, $width));

Completed in 108 milliseconds

123456