Lines Matching refs:zendlval

871 # define zend_copy_value(zendlval, yytext, yyleng) \  argument
876 ZVAL_STRINGL(zendlval, s, sz); \
879 ZVAL_INTERNED_STR(zendlval, ZSTR_CHAR((zend_uchar)*(yytext))); \
881 ZVAL_STRINGL(zendlval, yytext, yyleng); \
884 static int zend_scan_escape_string(zval *zendlval, char *str, int len, char quote_type) in zend_scan_escape_string() argument
891 ZVAL_EMPTY_STRING(zendlval); in zend_scan_escape_string()
897 ZVAL_INTERNED_STR(zendlval, ZSTR_CHAR(c)); in zend_scan_escape_string()
902 ZVAL_STRINGL(zendlval, str, len); in zend_scan_escape_string()
905 s = Z_STRVAL_P(zendlval); in zend_scan_escape_string()
906 end = s+Z_STRLEN_P(zendlval); in zend_scan_escape_string()
1022 zval_ptr_dtor(zendlval); in zend_scan_escape_string()
1023 ZVAL_UNDEF(zendlval); in zend_scan_escape_string()
1034 zval_ptr_dtor(zendlval); in zend_scan_escape_string()
1035 ZVAL_UNDEF(zendlval); in zend_scan_escape_string()
1091 Z_STRLEN_P(zendlval) = t - Z_STRVAL_P(zendlval); in zend_scan_escape_string()
1098 s = Z_STRVAL_P(zendlval); in zend_scan_escape_string()
1099 SCNG(output_filter)(&str, &sz, (unsigned char *)s, (size_t)Z_STRLEN_P(zendlval)); in zend_scan_escape_string()
1100 zval_ptr_dtor(zendlval); in zend_scan_escape_string()
1101 ZVAL_STRINGL(zendlval, (char *) str, sz); in zend_scan_escape_string()
1125 zval *zendlval, int indentation, zend_bool using_spaces, in strip_multiline_string_indentation() argument
1128 const char *str = Z_STRVAL_P(zendlval), *end = str + Z_STRLEN_P(zendlval); in strip_multiline_string_indentation()
1129 char *copy = Z_STRVAL_P(zendlval); in strip_multiline_string_indentation()
1190 Z_STRLEN_P(zendlval) = copy - Z_STRVAL_P(zendlval); in strip_multiline_string_indentation()
1194 zval_ptr_dtor_str(zendlval); in strip_multiline_string_indentation()
1195 ZVAL_UNDEF(zendlval); in strip_multiline_string_indentation()
1235 int ZEND_FASTCALL lex_scan(zval *zendlval, zend_parser_stack_elem *elem) in lex_scan() argument
1241 ZVAL_UNDEF(zendlval); in lex_scan()
1766 ZVAL_LONG(zendlval, 0);
1769 ZVAL_LONG(zendlval, ZEND_STRTOL(bin, &end, 2));
1774 ZVAL_DOUBLE(zendlval, zend_bin_strtod(bin, (const char **)&end));
1786 ZVAL_LONG(zendlval, ZEND_STRTOL(yytext, &end, yytext[0] == '0' ? 8 : 10));
1792 ZVAL_UNDEF(zendlval);
1800 ZVAL_LONG(zendlval, ZEND_STRTOL(yytext, &end, 0));
1804 ZVAL_DOUBLE(zendlval, zend_oct_strtod(yytext, (const char **)&end));
1806 ZVAL_DOUBLE(zendlval, zend_strtod(yytext, (const char **)&end));
1812 ZVAL_UNDEF(zendlval);
1822 ZVAL_UNDEF(zendlval);
1846 ZVAL_LONG(zendlval, 0);
1849 ZVAL_LONG(zendlval, ZEND_STRTOL(hex, &end, 16));
1854 ZVAL_DOUBLE(zendlval, zend_hex_strtod(hex, (const char **)&end));
1865 ZVAL_LONG(zendlval, ZEND_STRTOL(yytext, &end, 10));
1872 ZVAL_STRINGL(zendlval, yytext, yyleng);
1879 ZVAL_INTERNED_STR(zendlval, ZSTR_CHAR((zend_uchar)*(yytext)));
1881 ZVAL_STRINGL(zendlval, yytext, yyleng);
1889 ZVAL_DOUBLE(zendlval, zend_strtod(yytext, &end));
1992 ZVAL_STRINGL(zendlval, s, sz);
1998 ZVAL_INTERNED_STR(zendlval, ZSTR_CHAR((zend_uchar)*yytext));
2000 ZVAL_STRINGL(zendlval, yytext, yyleng);
2155 ZVAL_NULL(zendlval);
2162 ZVAL_EMPTY_STRING(zendlval);
2168 ZVAL_INTERNED_STR(zendlval, ZSTR_CHAR(c));
2172 ZVAL_STRINGL(zendlval, yytext+bprefix+1, yyleng-bprefix-2);
2175 s = Z_STRVAL_P(zendlval);
2176 end = s+Z_STRLEN_P(zendlval);
2209 Z_STRLEN_P(zendlval) = t - Z_STRVAL_P(zendlval);
2215 s = Z_STRVAL_P(zendlval);
2217 …SCNG(output_filter)((unsigned char **)&str, &sz, (unsigned char *)s, (size_t)Z_STRLEN_P(zendlval));
2218 ZVAL_STRINGL(zendlval, str, sz);
2498 if (EXPECTED(zend_scan_escape_string(zendlval, yytext, yyleng, '"') == SUCCESS)
2544 if (EXPECTED(zend_scan_escape_string(zendlval, yytext, yyleng, '`') == SUCCESS)
2586 ZVAL_NULL(zendlval);
2651 ZVAL_STRINGL(zendlval, yytext, yyleng - newline);
2655 zend_string *copy = Z_STR_P(zendlval);
2658 zendlval, heredoc_label->indentation, heredoc_label->indentation_uses_spaces,
2663 if (UNEXPECTED(zend_scan_escape_string(zendlval, ZSTR_VAL(copy), ZSTR_LEN(copy), 0) != SUCCESS)) {
2710 ZVAL_NULL(zendlval);
2752 ZVAL_STRINGL(zendlval, yytext, yyleng - newline);
2757 zendlval, indentation, spacing == HEREDOC_USING_SPACES,
2782 zend_copy_value(zendlval, (yytext + offset), (yyleng - offset));
2786 ZEND_ASSERT(Z_TYPE_P(zendlval) != IS_UNDEF);
2787 elem->ast = zend_ast_create_zval_with_lineno(zendlval, start_line);