\n";
if($ocurrence == sizeof($pack_array)){
$substitute .= "$twonumbers_list[1] ";
} else {
$substitute .= "$twonumbers_list[1], ";
}
$found = 1;
$founds++;
break;
}
// pattern, replacement, string, limit
$alternative = str_split($twohex);
if($alternative[0] == 0){
$twohex = $alternative[1];
}
if($twonumbers_list[0] == $twohex){
if($ocurrence == sizeof($pack_array)){
$substitute .= "$twonumbers_list[1] ";
} else {
$substitute .= "$twonumbers_list[1], ";
}
$found = 1;
$founds_cero++;
break;
}
}
if($found){
continue;
} else {
//echo "\np+=putxx(p,0x|NOT FOUND| ($pack_array[$i]),8);
\n";
$prohex = substr($pack_array[$i], 0, 2);
$prohex = trim($prohex);
if(eregi($prohex,$list)) {
$substitute .= "format error|trim|";
$err_format++;
}
if(eregi($pack_array[$i],$list)) {
$substitute .= "format error";
}
$substitute .= "(|$i|$pack_array[$i])";
$errors .= "$pack_array[$i], ";
$notfound++;
}
}
echo $code_beg[0] . "{
"; // Char0_0[] = {}
echo $substitute;
echo "}".strrev($code_end[1]);
if($notfound > 0){
echo $jump ."
" . $errors;
}
echo "
// Found: $founds(+$founds_cero) | Found with cero: $founds_cero | Not found: $notfound | Format errors: $err_format";
?>