SEOstats/Services/3rdparty/GTB_PageRank.php
// strToNum - Convert a string into a 32-bit integer.
Convert a string into a 32-bit integer.
Convert a string into a 32 - bit integer .
public static function strToNum ($str, $c, $k) {
    $int32unit = 4294967296; 
    for ($i=0; $i<strlen($str); $i++) {
      $c *= $k;
      if ($c >= $int32unit) {
          $c = ($c - $int32unit * (int)($c / $int32unit));
          $c = ($c < 0x0000000080000000) ? ($c + $int32unit) : $c;
      }
      $c += GTB_Helper::charCodeAt($str, $i);
    } return $c;
  }
public static function strToNum ( $ str , $ c , $ k ) { $ int32unit = 4294967296 ; for ( $ i = 0 ; $ i < strlen ( $ str ) ; $ i ++ ) { $ c *= $ k ; if ( $ c >= $ int32unit ) { $ c = ( $ c - $ int32unit * ( int ) ( $ c / $ int32unit ) ) ; $ c = ( $ c < 0x0000000080000000 ) ? ( $ c + $ int32unit ) : $ c ; } $ c += GTB_Helper :: charCodeAt ( $ str , $ i ) ; } return $ c ; }
strToNum - Convert a string into a 32-bit integer.
strToNum - Convert a string into a 32 - bit integer .
// 2^32 // if $c is less than -2^31