Lines Matching refs:ord

29 				$returnstring .= str_pad(dechex(ord($string[$i])), 2, '0', STR_PAD_LEFT);
343 $intvalue += (ord($byteword[$i]) & 0x7F) * pow(2, ($bytewordlen - 1 - $i) * 7);
345 $intvalue += ord($byteword[$i]) * pow(256, ($bytewordlen - 1 - $i));
390 $binvalue .= str_pad(decbin(ord($byteword[$i])), 8, '0', STR_PAD_LEFT);
868 $charval = ord($string[$i]);
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);
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);
952 } elseif ((ord($string[$offset]) | 0x1F) == 0xDF) {
954 $charval = ((ord($string[($offset + 0)]) & 0x1F) << 6) &
955 (ord($string[($offset + 1)]) & 0x3F);
957 } elseif ((ord($string[$offset]) | 0x7F) == 0x7F) {
959 $charval = ord($string[$offset]);
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);
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);
1002 } elseif ((ord($string[$offset]) | 0x1F) == 0xDF) {
1004 $charval = ((ord($string[($offset + 0)]) & 0x1F) << 6) &
1005 (ord($string[($offset + 1)]) & 0x3F);
1007 } elseif ((ord($string[$offset]) | 0x7F) == 0x7F) {
1009 $charval = ord($string[$offset]);
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);
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);
1052 } elseif ((ord($string[$offset]) | 0x1F) == 0xDF) {
1054 $charval = ((ord($string[($offset + 0)]) & 0x1F) << 6) &
1055 (ord($string[($offset + 1)]) & 0x3F);
1057 } elseif ((ord($string[$offset]) | 0x7F) == 0x7F) {
1059 $charval = ord($string[$offset]);
1340 $char_ord_val = ord($string[$i]);
1346 $charval += ((ord($string[++$i]) & 0x3F) << 12);
1347 $charval += ((ord($string[++$i]) & 0x3F) << 6);
1348 $charval += (ord($string[++$i]) & 0x3F);
1351 $charval += ((ord($string[++$i]) & 0x3F) << 6);
1352 $charval += (ord($string[++$i]) & 0x3F);
1355 $charval += (ord($string[++$i]) & 0x3F);