original_string: protected function _fromByteString($size)
      {
          if (is_numeric($size)) {
              return (integer) $size;
          }
  
          $type  = trim(substr($size, -2, 1));
  
          $value = substr($size, 0, -1);
          if (!is_numeric($value)) {
              $value = substr($value, 0, -1);
          }
  
          switch (strtoupper($type)) {
              case 'Y':
                  $value *= (1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024);
                  break;
              case 'Z':
                  $value *= (1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024);
                  break;
              case 'E':
                  $value *= (1024 * 1024 * 1024 * 1024 * 1024 * 1024);
                  break;
              case 'P':
                  $value *= (1024 * 1024 * 1024 * 1024 * 1024);
                  break;
              case 'T':
                  $value *= (1024 * 1024 * 1024 * 1024);
                  break;
              case 'G':
                  $value *= (1024 * 1024 * 1024);
                  break;
              case 'M':
                  $value *= (1024 * 1024);
                  break;
              case 'K':
                  $value *= 1024;
                  break;
              default:
                  break;
          }
  
          return $value;
      }
code: protected function _fromByteString($size)
      {
          if (is_numeric($size)) {
              return (integer) $size;
          }
  
          $type  = trim(substr($size, -2, 1));
  
          $value = substr($size, 0, -1);
          if (!is_numeric($value)) {
              $value = substr($value, 0, -1);
          }
  
          switch (strtoupper($type)) {
              case 'Y':
                  $value *= (1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024);
                  break;
              case 'Z':
                  $value *= (1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024);
                  break;
              case 'E':
                  $value *= (1024 * 1024 * 1024 * 1024 * 1024 * 1024);
                  break;
              case 'P':
                  $value *= (1024 * 1024 * 1024 * 1024 * 1024);
                  break;
              case 'T':
                  $value *= (1024 * 1024 * 1024 * 1024);
                  break;
              case 'G':
                  $value *= (1024 * 1024 * 1024);
                  break;
              case 'M':
                  $value *= (1024 * 1024);
                  break;
              case 'K':
                  $value *= 1024;
                  break;
              default:
                  break;
          }
  
          return $value;
      }
code_tokens: protected function _fromByteString ( $ size ) { if ( is_numeric ( $ size ) ) { return ( integer ) $ size ; } $ type = trim ( substr ( $ size , - 2 , 1 ) ) ; $ value = substr ( $ size , 0 , - 1 ) ; if ( ! is_numeric ( $ value ) ) { $ value = substr ( $ value , 0 , - 1 ) ; } switch ( strtoupper ( $ type ) ) { case 'Y' : $ value *= ( 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024 ) ; break ; case 'Z' : $ value *= ( 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024 ) ; break ; case 'E' : $ value *= ( 1024 * 1024 * 1024 * 1024 * 1024 * 1024 ) ; break ; case 'P' : $ value *= ( 1024 * 1024 * 1024 * 1024 * 1024 ) ; break ; case 'T' : $ value *= ( 1024 * 1024 * 1024 * 1024 ) ; break ; case 'G' : $ value *= ( 1024 * 1024 * 1024 ) ; break ; case 'M' : $ value *= ( 1024 * 1024 ) ; break ; case 'K' : $ value *= 1024 ; break ; default : break ; } return $ value ; }
docstring: Returns the unformatted size
  
  @param  string $size
  @return integer
docstring_tokens: Returns the unformatted size