Warning: strpos() [function.strpos]: needle is not a string or an integer in /blog/index.php on line 62
Blog - strreplace for EAGLE ULP
 

strreplace for EAGLE ULP 


string strreplace(string original, string toReplace, string replaceWith){
string ret = "";
string left = original;
while (strstr(left, toReplace) >= 0) {
ret += strsub(left, 0, strstr(left, toReplace));
ret += replaceWith;
left = strsub(left, strstr(left, toReplace) + strlen(toReplace));
}
ret += left;
return ret;
}

[ hozzászólás ] ( 1 megtekintés ) [ 0 trackbackek ] permalink ( 3 / 3955 )

<< <Előző | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | Következő> >>

 
számláló