pike.git / lib / modules / String.pmod

version» Context lines:

pike.git/lib/modules/String.pmod:251:    ({" you are"," your"}),    ({" you'r"," your"}),    ({" what the"," wt"}),    ({" wt fuck"," wtf"}),    ({" wtf?"," wtf!"}),    ({" download"," d/l"}),    ({" upload"," u/l"}),    ({"picture","pic"}),    ({" pornography"," pr0n"}),    ({" porn"," pr0n"}), -  ({" cool"," kewl"}), +  ({"cool","kewl"}),    ({" elite "," 1337 "}),    });      // optional recursive translation (in order)    array(array(string|array(string))) elite_trans=    ({    ({"you",({"u","j00"})}),    ({" are "," r "}),    ({" ok "," k "}),    ({"dude","dood"}),
pike.git/lib/modules/String.pmod:370:    leet[z]=0;    unleet[z]=1;    }       string res="";    foreach (v;int i;array(string) d)    if (leet[i])    {    res+=d[random(sizeof(d))];    } +  else if (leetp>50) // add random caps +  res+=(random(2)?upper_case:lower_case)(in[i..i]);    else    res+=in[i..i];       return res;    }      // translates a string to 1337. The optional   // argument leetp is the maximum percentage of   // leetness (100=max leet, 0=no leet).   //