Lines Matching refs:inputpos

725 	zend_long formatlen, inputpos, inputlen;  in PHP_FUNCTION()  local
737 inputpos = 0; in PHP_FUNCTION()
891 if (size != 0 && size != -1 && INT_MAX - size + 1 < inputpos) { in PHP_FUNCTION()
897 if ((inputpos + size) <= inputlen) { in PHP_FUNCTION()
901 size_t len = inputlen - inputpos; /* Remaining string */ in PHP_FUNCTION()
910 add_assoc_stringl(return_value, n, &input[inputpos], len); in PHP_FUNCTION()
916 zend_long len = inputlen - inputpos; /* Remaining string */ in PHP_FUNCTION()
927 if (input[inputpos + len] != padn in PHP_FUNCTION()
928 && input[inputpos + len] != pads in PHP_FUNCTION()
929 && input[inputpos + len] != padt in PHP_FUNCTION()
930 && input[inputpos + len] != padc in PHP_FUNCTION()
931 && input[inputpos + len] != padl in PHP_FUNCTION()
936 add_assoc_stringl(return_value, n, &input[inputpos], len + 1); in PHP_FUNCTION()
944 len = inputlen - inputpos; /* Remaining string */ in PHP_FUNCTION()
955 if (input[inputpos + s] == pad) in PHP_FUNCTION()
960 add_assoc_stringl(return_value, n, &input[inputpos], len); in PHP_FUNCTION()
967 size_t len = (inputlen - inputpos) * 2; /* Remaining */ in PHP_FUNCTION()
985 char cc = (input[inputpos + ipos] >> nibbleshift) & 0xf; in PHP_FUNCTION()
1010 int issigned = (type == 'c') ? (input[inputpos] & 0x80) : 0; in PHP_FUNCTION()
1011 zend_long v = php_unpack(&input[inputpos], 1, issigned, byte_map); in PHP_FUNCTION()
1025 issigned = input[inputpos + (machine_little_endian ? 1 : 0)] & 0x80; in PHP_FUNCTION()
1032 v = php_unpack(&input[inputpos], 2, issigned, map); in PHP_FUNCTION()
1043 issigned = input[inputpos + (machine_little_endian ? (sizeof(int) - 1) : 0)] & 0x80; in PHP_FUNCTION()
1046 v = php_unpack(&input[inputpos], sizeof(int), issigned, int_map); in PHP_FUNCTION()
1060 issigned = input[inputpos + (machine_little_endian ? 3 : 0)] & 0x80; in PHP_FUNCTION()
1062 issigned = input[inputpos] & 0x80; in PHP_FUNCTION()
1065 issigned = input[inputpos + 3] & 0x80; in PHP_FUNCTION()
1073 v |= php_unpack(&input[inputpos], 4, issigned, map); in PHP_FUNCTION()
1095 issigned = input[inputpos + (machine_little_endian ? 7 : 0)] & 0x80; in PHP_FUNCTION()
1097 issigned = input[inputpos] & 0x80; in PHP_FUNCTION()
1100 issigned = input[inputpos + 7] & 0x80; in PHP_FUNCTION()
1104 v = php_unpack(&input[inputpos], 8, issigned, map); in PHP_FUNCTION()
1124 v = php_pack_parse_float(1, &input[inputpos]); in PHP_FUNCTION()
1126 v = php_pack_parse_float(0, &input[inputpos]); in PHP_FUNCTION()
1128 memcpy(&v, &input[inputpos], sizeof(float)); in PHP_FUNCTION()
1142 v = php_pack_parse_double(1, &input[inputpos]); in PHP_FUNCTION()
1144 v = php_pack_parse_double(0, &input[inputpos]); in PHP_FUNCTION()
1146 memcpy(&v, &input[inputpos], sizeof(double)); in PHP_FUNCTION()
1157 if (inputpos < size) { in PHP_FUNCTION()
1158 inputpos = -size; in PHP_FUNCTION()
1169 inputpos = arg; in PHP_FUNCTION()
1178 inputpos += size; in PHP_FUNCTION()
1179 if (inputpos < 0) { in PHP_FUNCTION()
1183 inputpos = 0; in PHP_FUNCTION()
1189 …RNING, "Type %c: not enough input, need %d, have " ZEND_LONG_FMT, type, size, inputlen - inputpos); in PHP_FUNCTION()