Lines Matching refs:offset

587 			$offset = 0;
589 $offset = strpos($reversedfilename, '.', $offset + 1);
590 if ($offset === false) {
594 return strrev(substr($reversedfilename, 0, $offset));
754 * @param int $offset
761 public static function hash_data($file, $offset, $end, $algorithm) { argument
769 $size = $end - $offset;
772 fseek($fp, $offset);
788 * @param int $offset
796 public static function CopyFileParts($filename_source, $filename_dest, $offset, $length) { argument
797 if (!self::intValueSupported($offset + $length)) {
802 if (fseek($fp_src, $offset) == 0) {
812 throw new Exception('failed to seek to offset '.$offset.' in '.$filename_source);
936 $offset = 0;
938 while ($offset < $stringlength) {
939 if ((ord($string[$offset]) | 0x07) == 0xF7) {
941 $charval = ((ord($string[($offset + 0)]) & 0x07) << 18) &
942 ((ord($string[($offset + 1)]) & 0x3F) << 12) &
943 ((ord($string[($offset + 2)]) & 0x3F) << 6) &
944 (ord($string[($offset + 3)]) & 0x3F);
945 $offset += 4;
946 } elseif ((ord($string[$offset]) | 0x0F) == 0xEF) {
948 $charval = ((ord($string[($offset + 0)]) & 0x0F) << 12) &
949 ((ord($string[($offset + 1)]) & 0x3F) << 6) &
950 (ord($string[($offset + 2)]) & 0x3F);
951 $offset += 3;
952 } elseif ((ord($string[$offset]) | 0x1F) == 0xDF) {
954 $charval = ((ord($string[($offset + 0)]) & 0x1F) << 6) &
955 (ord($string[($offset + 1)]) & 0x3F);
956 $offset += 2;
957 } elseif ((ord($string[$offset]) | 0x7F) == 0x7F) {
959 $charval = ord($string[$offset]);
960 $offset += 1;
964 $offset += 1;
986 $offset = 0;
988 while ($offset < $stringlength) {
989 if ((ord($string[$offset]) | 0x07) == 0xF7) {
991 $charval = ((ord($string[($offset + 0)]) & 0x07) << 18) &
992 ((ord($string[($offset + 1)]) & 0x3F) << 12) &
993 ((ord($string[($offset + 2)]) & 0x3F) << 6) &
994 (ord($string[($offset + 3)]) & 0x3F);
995 $offset += 4;
996 } elseif ((ord($string[$offset]) | 0x0F) == 0xEF) {
998 $charval = ((ord($string[($offset + 0)]) & 0x0F) << 12) &
999 ((ord($string[($offset + 1)]) & 0x3F) << 6) &
1000 (ord($string[($offset + 2)]) & 0x3F);
1001 $offset += 3;
1002 } elseif ((ord($string[$offset]) | 0x1F) == 0xDF) {
1004 $charval = ((ord($string[($offset + 0)]) & 0x1F) << 6) &
1005 (ord($string[($offset + 1)]) & 0x3F);
1006 $offset += 2;
1007 } elseif ((ord($string[$offset]) | 0x7F) == 0x7F) {
1009 $charval = ord($string[$offset]);
1010 $offset += 1;
1014 $offset += 1;
1036 $offset = 0;
1038 while ($offset < $stringlength) {
1039 if ((ord($string[$offset]) | 0x07) == 0xF7) {
1041 $charval = ((ord($string[($offset + 0)]) & 0x07) << 18) &
1042 ((ord($string[($offset + 1)]) & 0x3F) << 12) &
1043 ((ord($string[($offset + 2)]) & 0x3F) << 6) &
1044 (ord($string[($offset + 3)]) & 0x3F);
1045 $offset += 4;
1046 } elseif ((ord($string[$offset]) | 0x0F) == 0xEF) {
1048 $charval = ((ord($string[($offset + 0)]) & 0x0F) << 12) &
1049 ((ord($string[($offset + 1)]) & 0x3F) << 6) &
1050 (ord($string[($offset + 2)]) & 0x3F);
1051 $offset += 3;
1052 } elseif ((ord($string[$offset]) | 0x1F) == 0xDF) {
1054 $charval = ((ord($string[($offset + 0)]) & 0x1F) << 6) &
1055 (ord($string[($offset + 1)]) & 0x3F);
1056 $offset += 2;
1057 } elseif ((ord($string[$offset]) | 0x7F) == 0x7F) {
1059 $charval = ord($string[$offset]);
1060 $offset += 1;
1064 $offset += 1;