File-Locate
view release on metacpan or search on metacpan
int REGEX = 0;
int NOCASE = 0;
int EXTENDED = 0;
int reg_res;
int nmatch = 32;
regex_t *preg = NULL;
char errbuf[1024];
regmatch_t pmatch[32];
STRLEN n_a;
register int i;
PPCODE:
for (i = 1; i < items; i++) {
if (SvROK(ST(i)) && SvTYPE((SV*)SvRV(ST(i))) == SVt_PVCV) {
coderef = newSVsv(ST(i));
}
else {
char *key = SvPV(ST(i), n_a);
if (*key == '-') {
if (strnEQ(key+1, "rexopt", 6)) {
char *val;
int NOCASE = 0;
int EXTENDED = 0;
char slevel = '1';
int res = 0;
boolean prev_fast_match = false; /* true if we found a fast match
(of patend) on the previous
path. */
register int i;
PPCODE:
{
for (i = 1; i < items; i++) {
if (SvROK(ST(i)) && SvTYPE((SV*)SvRV(ST(i))) == SVt_PVCV) {
coderef = newSVsv(ST(i));
}
else {
char *key = SvPV(ST(i), n_a);
if (*key == '-') {
if (strnEQ(key+1, "rexopt", 6)) {
char *val;
const-xs.inc view on Meta::CPAN
dTARGET;
#endif
STRLEN len;
int type;
/* IV iv; Uncomment this if you need to return IVs */
/* NV nv; Uncomment this if you need to return NVs */
/* const char *pv; Uncomment this if you need to return PVs */
INPUT:
SV * sv;
const char * s = SvPV(sv, len);
PPCODE:
type = constant(aTHX_ s, len);
/* Return 1 or 2 items. First is error message, or undef if no error.
Second, if present, is found value */
switch (type) {
case PERL_constant_NOTFOUND:
sv = sv_2mortal(newSVpvf("%s is not a valid File::Locate macro", s));
PUSHs(sv);
break;
case PERL_constant_NOTDEF:
sv = sv_2mortal(newSVpvf(
fallback/const-xs.inc view on Meta::CPAN
dTARGET;
#endif
STRLEN len;
int type;
/* IV iv; Uncomment this if you need to return IVs */
/* NV nv; Uncomment this if you need to return NVs */
/* const char *pv; Uncomment this if you need to return PVs */
INPUT:
SV * sv;
const char * s = SvPV(sv, len);
PPCODE:
type = constant(aTHX_ s, len);
/* Return 1 or 2 items. First is error message, or undef if no error.
Second, if present, is found value */
switch (type) {
case PERL_constant_NOTFOUND:
sv = sv_2mortal(newSVpvf("%s is not a valid File::Locate macro", s));
PUSHs(sv);
break;
case PERL_constant_NOTDEF:
sv = sv_2mortal(newSVpvf(
( run in 0.749 second using v1.01-cache-2.11-cpan-5511b514fd6 )