/PHP-5.5/ext/ereg/regex/ |
H A D | engine.ih | 7 static int matcher(register struct re_guts *g, unsigned char *string, size_t nmatch, regmatch_t pma… 12 static states step(register struct re_guts *g, sopno start, sopno stop, register states bef, int ch…
|
H A D | regcomp.c | 137 p->g = g; 152 g->nbol = 0; 153 g->neol = 0; 158 g->categories = &g->catspace[0]; 178 g->nplus = pluscount(p, g); 1037 if (p->g->sets != NULL && p->g->setbits != NULL) 1068 register cset *top = &p->g->sets[p->g->ncsets]; 1094 register cset *top = &p->g->sets[p->g->ncsets]; 1574 g->must = malloc((size_t)g->mlen + 1); 1584 assert(cp < g->must + g->mlen); [all …]
|
H A D | regcomp.ih | 38 static int isinsets(register struct re_guts *g, int c); 39 static int samesets(register struct re_guts *g, int c1, int c2); 40 static void categorize(struct parse *p, register struct re_guts *g); 46 static void stripsnug(register struct parse *p, register struct re_guts *g); 47 static void findmust(register struct parse *p, register struct re_guts *g); 48 static sopno pluscount(register struct parse *p, register struct re_guts *g);
|
H A D | regexec.c | 71 #define CLEAR(v) memset(v, 0, m->g->nstates) 75 #define ASSIGN(d, s) memcpy(d, s, m->g->nstates) 76 #define EQ(a, b) (memcmp(a, b, m->g->nstates) == 0) 78 #define STATESETUP(m, nv) { (m)->space = malloc((nv)*(m)->g->nstates); \ 82 #define SETUP(v) ((v) = &m->space[m->vn++ * m->g->nstates]) 120 register struct re_guts *g = preg->re_g; variable 127 if (preg->re_magic != MAGIC1 || g->magic != MAGIC2) 129 assert(!(g->iflags&BAD)); 130 if (g->iflags&BAD) /* backstop for no-debug case */ 134 if (g->nstates <= CHAR_BIT*sizeof(states1) && !(eflags®_LARGE)) [all …]
|
H A D | regfree.c | 17 register struct re_guts *g; variable 22 g = preg->re_g; 23 if (g == NULL || g->magic != MAGIC2) /* oops again */ 28 if (g->strip != NULL) 29 free((char *)g->strip); 30 if (g->sets != NULL) 31 free((char *)g->sets); 32 if (g->setbits != NULL) 34 if (g->must != NULL) 35 free(g->must); [all …]
|
H A D | tests | 383 a(b)(c)(d)(e)(f)(g)(h)(i)(j)k - abcdefghijk abcdefghijk b,c,d,e,f,g,h,i,j 384 a(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)l - abcdefghijkl abcdefghijkl b,c,d,e,f,g,h,i,j,k
|
/PHP-5.5/ext/ereg/tests/ |
H A D | 013.phpt | 5 echo ereg_replace("123","def\\g\\\\hi\\",$a)?> 8 abcdef\g\\hi\
|
/PHP-5.5/ext/fileinfo/tests/ |
H A D | magic | 86 # From Gregory McGarry <g.mcgarry@ieee.org> 171 0 string TADS2\ save/g TADS 8573 >8 ledouble x \b, minx=%g 8574 >16 ledouble x \b, maxx=%g 8575 >24 ledouble x \b, miny=%g 8576 >32 ledouble x \b, maxy=%g 8577 >40 ledouble x \b, minz=%g 8578 >48 ledouble x \b, maxz=%g 10804 # Java ByteCode and Mach-O binaries (e.g., Mac OS X) use the 12446 # GRR: Too weak; also matches other languages e.g. ML [all …]
|
/PHP-5.5/ext/filter/tests/ |
H A D | 030.phpt | 38 "1:2:3:4:5:6:7:8g" => false, 39 "1:2:3:4:5:6:7:g" => false, 40 "1:2:3:4:5g:6:7:8" => false,
|
H A D | 043.phpt | 117 string(1) "g"
|
/PHP-5.5/ext/gd/ |
H A D | gd.c | 4690 long r,g,b,tmp; in php_image_filter_colorize() local 4693 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rllll|l", &SIM, &tmp, &r, &g, &b, &a) == FAI… in php_image_filter_colorize() 4703 if (gdImageColor(im_src, (int) r, (int) g, (int) b, (int) a) == 1) { in php_image_filter_colorize()
|
/PHP-5.5/ext/gd/libgd/ |
H A D | gd.c | 279 return gdTrueColorAlpha(r, g, b, a); in gdImageColorClosestAlpha() 287 gd = im->green[i] - g; in gdImageColorClosestAlpha() 307 #define RETURN_RGB(r, g, b) {RGB->R = r; RGB->G = g; RGB->B = b; return RGB;} argument 309 #define SETUP_RGB(s, r, g, b) {s.R = r/255.0f; s.G = g/255.0f; s.B = b/255.0f;} argument 444 return gdTrueColor(r, g, b); in gdImageColorClosestHWB() 509 im->green[ct] = g; in gdImageColorAllocateAlpha() 584 im->green[op] = g; in gdImageColorResolveAlpha() 1277 int dr,dg,db,p,r,g,b; in gdImageSetAAPixelColor() local 1284 g = gdTrueColorGetGreen(p); in gdImageSetAAPixelColor() 1288 BLEND_COLOR(t, dg, g, dg); in gdImageSetAAPixelColor() [all …]
|
H A D | gd.h | 508 int gdImageColorAllocate(gdImagePtr im, int r, int g, int b); 512 int gdImageColorClosest(gdImagePtr im, int r, int g, int b); 517 int gdImageColorClosestAlpha(gdImagePtr im, int r, int g, int b, int a); 519 int gdImageColorClosestHWB(gdImagePtr im, int r, int g, int b); 521 int gdImageColorExact(gdImagePtr im, int r, int g, int b); 523 int gdImageColorExactAlpha(gdImagePtr im, int r, int g, int b, int a); 525 int gdImageColorResolve(gdImagePtr im, int r, int g, int b); 532 #define gdTrueColor(r, g, b) (((r) << 16) + \ argument 533 ((g) << 8) + \ 540 #define gdTrueColorAlpha(r, g, b, a) (((a) << 24) + \ argument [all …]
|
H A D | gd_arc_f_buggy.c | 297 g = x2 - 1; 298 g = g * g * hs + 4 * ws - whs; 331 g = y2 - 1; 332 g = g * g * ws + 4 * hs - whs; 414 g = x2 - 1; 415 g = g * g * hs + 4 * ws - whs; 479 g = y2 - 1; 480 g = g * g * ws + 4 * hs - whs; 636 g = x2 - 1; 637 g = g * g * hs + 4 * ws - whs; [all …]
|
H A D | gd_crop.c | 333 register int r,b,g,a; in gdGuessBackgroundColorFromCorners() local 336 …g = (int)(0.5f + (gdImageGreen(im, tl) + gdImageGreen(im, tr) + gdImageGreen(im, bl) + gdImageGree… in gdGuessBackgroundColorFromCorners() 339 *color = gdImageColorClosestAlpha(im, r, g, b, a); in gdGuessBackgroundColorFromCorners()
|
H A D | gd_filter.c | 19 int r,g,b,a; in gdImageNegate() local 52 int r,g,b,a; in gdImageGrayScale() local 69 r = g = b = (int) (.299 * r + .587 * g + .114 * b); in gdImageGrayScale() 85 int r,g,b,a; in gdImageBrightness() local 109 g = g + brightness; in gdImageBrightness() 113 g = (g > 255)? 255 : ((g < 0)? 0:g); in gdImageBrightness() 130 int r,g,b,a; in gdImageContrast() local 166 gf = (double)g/255.0; in gdImageContrast() 202 int r,g,b,a; in gdImageColor() local 211 g = g + green; in gdImageColor() [all …]
|
H A D | gd_gd2.c | 359 int g = chunkBuf[chunkPos++] << 8; in gdImageCreateFromGd2Ctx() local 361 im->tpixels[y][x] = a + r + g + b; in gdImageCreateFromGd2Ctx()
|
H A D | gd_interpolation.c | 762 int r, g, b, a; in getPixelInterpolateWeight() local 770 …g = (int)(m1*gdTrueColorGetGreen(c1) + m2*gdTrueColorGetGreen(c2) + m3*gdTrueColorGetGreen(c3) + m… in getPixelInterpolateWeight() 775 g = (int)(m1*im->green[(c1)] + m2*im->green[(c2)] + m3*im->green[(c3)] + m4*im->green[(c4)]); in getPixelInterpolateWeight() 781 g = CLAMP(g, 0, 255); in getPixelInterpolateWeight() 784 return gdTrueColorAlpha(r, g, b, a); in getPixelInterpolateWeight() 998 register unsigned char r = 0, g = 0, b = 0, a = 0; in _gdScaleRow() local 1007 …g += (unsigned char)(contrib->ContribRow[x].Weights[left_channel] * (double)(gdTrueColorGetGreen(p… in _gdScaleRow() 1011 p_dst_row[x] = gdTrueColorAlpha(r, g, b, a); in _gdScaleRow() 1043 register unsigned char r = 0, g = 0, b = 0, a = 0; in _gdScaleCol() local 1054 …g += (unsigned char)(contrib->ContribRow[y].Weights[i_iLeft] * (double)(gdTrueColorGetGreen(pCurSr… in _gdScaleCol() [all …]
|
H A D | gd_pixelate.c | 26 int a, r, g, b, c; in gdImagePixelate() local 30 a = r = g = b = c = total = 0; in gdImagePixelate() 40 g += gdImageGreen(im, c); in gdImagePixelate() 47 c = gdImageColorResolveAlpha(im, r / total, g / total, b / total, a / total); in gdImagePixelate()
|
H A D | gd_png.c | 364 register png_byte g = row_pointers[h][boffset++]; in gdImageCreateFromPngCtx() local 366 im->tpixels[h][w] = gdTrueColor (r, g, b); in gdImageCreateFromPngCtx() 377 register png_byte g = row_pointers[h][boffset++]; in gdImageCreateFromPngCtx() local 386 im->tpixels[h][w] = gdTrueColorAlpha(r, g, b, a); in gdImageCreateFromPngCtx()
|
H A D | gd_rotate.c | 73 if (g>255) { in gdImageSkewX() 74 g = 255; in gdImageSkewX() 120 int i, iYPos=0, r, g, b, a; in gdImageSkewY() local 164 if (g>255) { in gdImageSkewY() 165 g = 255; in gdImageSkewY() 208 int c,r,g,b,a; in gdImageRotate90() local 233 g = gdImageGreen(src,c); in gdImageRotate90() 255 int c,r,g,b,a; in gdImageRotate180() local 280 g = gdImageGreen(src,c); in gdImageRotate180() 303 int c,r,g,b,a; in gdImageRotate270() local [all …]
|
H A D | gd_topal.c | 371 int g = GETJSAMPLE (ptr[1]) >> C1_SHIFT; local 375 int g = gdTrueColorGetGreen (*ptr) >> C1_SHIFT; 386 histp = &histogram[r][g][b]; 1143 int r, g, b; local 1148 g = GETJSAMPLE (cinfo->colormap[1][icolor]); 1153 g = nim->green[icolor]; 1160 inc1 = (minc1 - g) * C1_SCALE; 1315 int r, g, b; local 1318 g = GETJSAMPLE (*inptr++); 1322 g = gdTrueColorGetGreen (*inptr); [all …]
|
H A D | webpimg.c | 100 static inline int GetLumaY(int r, int g, int b) { in GetLumaY() argument 103 const int luma = 16839 * r + 33059 * g + 6420 * b; in GetLumaY() 109 const int g = GetGreen(rgba); in GetLumaYfromPtr() local 111 return GetLumaY(r, g, b); in GetLumaYfromPtr() 114 static inline int GetChromaU(int r, int g, int b) { in GetChromaU() argument 116 return clip_uv(-9719 * r - 19081 * g + 28800 * b); in GetChromaU() 119 static inline int GetChromaV(int r, int g, int b) { in GetChromaV() argument 121 return clip_uv(+28800 * r - 24116 * g - 4684 * b); in GetChromaV() 156 const int g = kClip[y + g_off - RGB_RANGE_MIN]; in ToRGB() local 158 *dst = (r << RED_SHIFT) | (g << GREEN_SHIFT) | (b << BLUE_SHIFT); in ToRGB()
|
/PHP-5.5/ext/gd/tests/ |
H A D | bug43073.phpt | 16 $g = imagecreate(800, 800); 17 $bgnd = imagecolorallocate($g, 255, 255, 255); 18 $black = imagecolorallocate($g, 0, 0, 0); 24 $bbox = imagettftext($g, 24, $angle, 400+$x, 400+$y, $black, $font, 'ABCDEF'); 31 imagepng($g, "$cwd/bug43073.png");
|
H A D | bug43073_1.phpt | 16 $g = imagecreate(800, 800); 17 $bgnd = imagecolorallocate($g, 255, 255, 255); 18 $black = imagecolorallocate($g, 0, 0, 0); 24 $bbox = imagettftext($g, 24, $angle, 400+$x, 400+$y, $black, $font, 'ABCDEF'); 31 imagepng($g, "$cwd/bug43073.png");
|