pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:10235:    ADD_EFUN("hash_value",f_hash_value,tFunc(tMix,tIntPos),OPT_TRY_OPTIMIZE);       ADD_EFUN("indices",f_indices,    tOr6(tFunc(tLArr(tSetvar(1, tIntPos), tMix),tArr(tVar(1))),    tFunc(tMap(tSetvar(1, tMix), tMix), tArr(tVar(1))),    tFunc(tSet(tSetvar(1, tMix)), tArr(tVar(1))),    tFunc(tLStr(tSetvar(1, tIntPos), tInt), tArr(tVar(1))),    tFunc(tPrg(tObj), tArr(tStr)),    tFuncArg(tSetvar(2, tObj),    tOr(tFindLFun(tVar(2), "_indices"), -  tIfnot(tFindLFun(tVar(2), "_indices"), +  tIfnot(tThreshold(tFindLFun(tVar(2), "_indices")),    tFunc(tNone, tArr(tStr)))))),    OPT_TRY_OPTIMIZE);       ADD_EFUN2("undefinedp", f_undefinedp, tFunc(tMix,tInt01), OPT_TRY_OPTIMIZE,    0, generate_undefinedp);    ADD_EFUN2("destructedp", f_destructedp, tFunc(tMix,tInt01), OPT_TRY_OPTIMIZE,    0, generate_destructedp);       /* function(mixed:int) */    ADD_EFUN("intp", f_intp,tFunc(tMix,tInt01),OPT_TRY_OPTIMIZE);
pike.git/src/builtin_functions.c:10398:    /* function(string:string)|function(int:int) */    ADD_EFUN("upper_case",f_upper_case,    tOr(tFunc(tStr,tStr),tFunc(tInt,tInt)),OPT_TRY_OPTIMIZE);       /* function(string|multiset:array(int))|function(array(0=mixed)|mapping(mixed:0=mixed)|object|program:array(0)) */    ADD_EFUN("values",f_values,    tOr6(tFunc(tMultiset, tArr(tInt01)),    tFunc(tNStr(tSetvar(0, tInt)), tArr(tVar(0))),    tFunc(tSetvar(1, tArray), tVar(1)),    tFunc(tMap(tMix, tSetvar(0, tMix)), tArr(tVar(0))), -  tFunc(tPrg(tObj), tArr(tStr)), +  tFunc(tPrg(tObj), tArr(tMix)),    tFuncArg(tSetvar(2, tObj),    tOr(tFindLFun(tVar(2), "_values"), -  tIfnot(tFindLFun(tVar(2), "_values"), +  tIfnot(tThreshold(tFindLFun(tVar(2), "_values")),    tFunc(tNone, tArr(tMix)))))),    0);       /* function(string|multiset(array(int))|function(array(0=mixed)|mapping(mixed:0=mixed)|object|program:array(0)) */    ADD_EFUN2("types", f_types,    tOr3(tFunc(tOr3(tNStr(tSetvar(0,tInt)),    tArr(tSetvar(0,tMix)),    tMap(tMix,tSetvar(0,tMix))),    tArr(tType(tVar(0)))),    tFunc(tMultiset, tArr(tType(tInt1))),