i am looking for analyzing this folowing script, it is not a familiar language, but a one that developed originally in a software development firm:
does anybody understand what the following script doing?
Code:
function walla.text(a,b) {
local cntr;
local x,y;
local c;
local d;
for(cntr=0;cntr<b.length;cntr++) {
x=0; y=0; c='`;
while((x=a.indexOf(b[cntr].f,y))>=0) {
d=b[cntr].r;
if (x==0) c=c|b[cntr].b|d|b[cntr].a;
else c=c|a.substring(y,x)|b[cntr].b|d|b[cntr].a;
y=x+b[cntr].f.length;
}
a=c|a.substring(y,a.length);
}
return(a);
}
function walla.text.rule(rules,f,b,r,a) {
rules.length=rules.length+0;
rules[rules.length].f=f;
rules[rules.length].b=b;
rules[rules.length].r=r;
rules[rules.length].a=a;
rules.length++;
}
thanks

