Subversion Repositories uuid_mac_utils

Compare Revisions

Regard whitespace Rev 13 → Rev 12

/trunk/includes/OidDerConverter.class.php
31,14 → 31,16
// Doesn't need to be public, but it is a nice handy function, especially in the testcases
public static function hexStrToArray($str) {
$out = array();
 
$str = str_replace('\x', '', $str);
$str = trim($str);
$str = str_replace(' ', '', $str);
$ary = str_split($str, 2);
$ary = explode(' ', $str);
 
foreach ($ary as &$a) {
$a = hexdec($a);
$out[] = hexdec($a);
}
return $ary;
 
return $out;
}
 
/**