Lines Matching refs:len

112 #define SET_DOUBLE_QUOTES_SCANNED_LENGTH(len) SCNG(scanned_string_len) = (len)  argument
123 static void strip_underscores(char *str, size_t *len) in BEGIN_EXTERN_C()
131 --(*len); in BEGIN_EXTERN_C()
180 static void yy_scan_buffer(char *str, size_t len) in yy_scan_buffer() argument
183 YYLIMIT = YYCURSOR + len; in yy_scan_buffer()
890 static int zend_scan_escape_string(zval *zendlval, char *str, int len, char quote_type) in zend_scan_escape_string() argument
895 if (len <= 1) { in zend_scan_escape_string()
896 if (len < 1) { in zend_scan_escape_string()
908 ZVAL_STRINGL(zendlval, str, len); in zend_scan_escape_string()
989 size_t len = 0; in zend_scan_escape_string() local
1003 len++; in zend_scan_escape_string()
1010 len++; in zend_scan_escape_string()
1016 len++; in zend_scan_escape_string()
1021 if (len <= 2) { in zend_scan_escape_string()
1188 size_t len = nl ? (nl - str + newline_len) : (end - str); in strip_multiline_string_indentation() local
1189 memmove(copy, str, len); in strip_multiline_string_indentation()
1190 str += len; in strip_multiline_string_indentation()
1191 copy += len; in strip_multiline_string_indentation()
1779 size_t len = yyleng - 2;
1784 while (len > 0 && (*bin == '0' || *bin == '_')) {
1786 --len;
1789 contains_underscores = (memchr(bin, '_', len) != NULL);
1792 bin = estrndup(bin, len);
1793 strip_underscores(bin, &len);
1796 if (len < SIZEOF_ZEND_LONG * 8) {
1797 if (len == 0) {
1802 ZEND_ASSERT(!errno && end == bin + len);
1811 ZEND_ASSERT(end == bin + len);
1820 size_t len = yyleng;
1823 zend_bool contains_underscores = (memchr(lnum, '_', len) != NULL);
1826 lnum = estrndup(lnum, len);
1827 strip_underscores(lnum, &len);
1833 for (i = 0; i < len; i++) {
1845 len = i;
1852 if (len < MAX_LENGTH_OF_LONG - 1) { /* Won't overflow */
1856 ZEND_ASSERT(end == lnum + len);
1867 ZEND_ASSERT(end == lnum + len);
1873 ZEND_ASSERT(end == lnum + len);
1884 size_t len = yyleng - 2;
1889 while (len > 0 && (*hex == '0' || *hex == '_')) {
1891 --len;
1894 contains_underscores = (memchr(hex, '_', len) != NULL);
1897 hex = estrndup(hex, len);
1898 strip_underscores(hex, &len);
1901 if (len < SIZEOF_ZEND_LONG * 2 || (len == SIZEOF_ZEND_LONG * 2 && *hex <= '7')) {
1902 if (len == 0) {
1907 ZEND_ASSERT(!errno && end == hex + len);
1916 ZEND_ASSERT(end == hex + len);
1951 size_t len = yyleng;
1953 zend_bool contains_underscores = (memchr(dnum, '_', len) != NULL);
1956 dnum = estrndup(dnum, len);
1957 strip_underscores(dnum, &len);
1962 ZEND_ASSERT(end == dnum + len);