Home
last modified time | relevance | path

Searched refs:digits (Results 1 – 25 of 54) sorted by relevance

123

/PHP-8.3/ext/bcmath/libbcmath/src/
H A Dstr2num.c40 size_t digits = 0; in bc_str2num() local
63 digits++; in bc_str2num()
84 if ((*ptr != '\0') || (digits + strscale == 0)) { in bc_str2num()
91 if (digits == 0) { in bc_str2num()
93 digits = 1; in bc_str2num()
95 *num = bc_new_num (digits, strscale); in bc_str2num()
113 digits = 0; in bc_str2num()
115 for (; digits > 0; digits--) { in bc_str2num()
H A Doutput.c58 char digits[40]; in bc_out_long() local
62 snprintf(digits, sizeof(digits), "%ld", val); in bc_out_long()
63 len = strlen(digits); in bc_out_long()
69 (*out_char)(digits[ix]); in bc_out_long()
81 stk_rec *digits, *temp; in bc_out_num() local
120 digits = NULL; in bc_out_num()
140 temp->next = digits; in bc_out_num()
141 digits = temp; in bc_out_num()
146 if (digits != NULL) { in bc_out_num()
149 temp = digits; in bc_out_num()
[all …]
/PHP-8.3/ext/standard/tests/strings/
H A Dstrnatcmp_leftalign.phpt2 Test strnatcmp() function : left align, whitespace, digits
8 echo "-- Leading whitespace, digits, string 1 longer --\n";
13 echo "-- Leading whitespace, digits, string 2 longer --\n";
20 -- Leading whitespace, digits, string 1 longer --
22 -- Leading whitespace, digits, string 2 longer --
H A Dbug36392.phpt2 Bug #36392 (wrong number of decimal digits with %e specifier in sprintf)
H A Dsprintf_variation52.phpt49 Notice: sprintf(): Requested precision of 988 digits was truncated to PHP maximum of %d digits in %…
/PHP-8.3/ext/standard/tests/array/range/
H A Drange_inputs_string_digits.phpt2 Test range() function with string digits
5 echo "Only digits\n";
9 echo "Only digits and char\n";
15 Only digits
56 Only digits and char
H A Drange_inputs_string_digits_float_step.phpt2 Test range() function where boundary are string digits and step is a float
/PHP-8.3/Zend/tests/zend_ini/
H A Dzend_ini_parse_quantity_error.phpt11 'K', # No digits
14 '1.0K', # Non integral digits.
42 Warning: Invalid quantity "K": no valid leading digits, interpreting as "0" for backwards compatibi…
62 Warning: Invalid quantity "0X": no digits after base prefix, interpreting as "0" for backwards comp…
72 Warning: Invalid quantity "0XK": no valid leading digits, interpreting as "0" for backwards compati…
77 Warning: Invalid quantity "++": no valid leading digits, interpreting as "0" for backwards compatib…
82 Warning: Invalid quantity "-+": no valid leading digits, interpreting as "0" for backwards compatib…
87 Warning: Invalid quantity "+ 25": no valid leading digits, interpreting as "0" for backwards compat…
92 Warning: Invalid quantity "- 25": no valid leading digits, interpreting as "0" for backwards compat…
102 Warning: Invalid quantity "\x00 123K": no valid leading digits, interpreting as "0" for backwards c…
[all …]
H A Dgh11876.phpt23 Warning: Invalid quantity "0x0x12": no digits after base prefix, interpreting as "0" for backwards …
26 Warning: Invalid quantity "0b+10": no digits after base prefix, interpreting as "0" for backwards c…
29 Warning: Invalid quantity "0o+10": no digits after base prefix, interpreting as "0" for backwards c…
32 Warning: Invalid quantity "0x+10": no digits after base prefix, interpreting as "0" for backwards c…
35 Warning: Invalid quantity "0b 10": no digits after base prefix, interpreting as "0" for backwards c…
38 Warning: Invalid quantity "0o 10": no digits after base prefix, interpreting as "0" for backwards c…
41 Warning: Invalid quantity "0x 10": no digits after base prefix, interpreting as "0" for backwards c…
/PHP-8.3/ext/date/tests/
H A Didate_variation4.phpt19 'Year (1 or 2 digits)' => 'y',
20 'Year 4 digits' => 'Y',
51 --Year (1 or 2 digits)--
54 --Year 4 digits--
H A Dbug41844.phpt2 Bug #41844 (Format returns incorrect number of digits for negative years -0001 to -0999)
H A Dbug50392.phpt2 Bug #50392 (date_create_from_format enforces 6 digits for 'u' format character)
H A Didate_variation6.phpt2 Test idate() function : usage variation - Checking return of year(1 or 2 digits) format starting wi…
/PHP-8.3/Zend/
H A Dzend_ini.c600 return digits; in zend_ini_consume_quantity_prefix()
622 char *digits = str; in zend_ini_parse_quantity_internal() local
631 while (digits < str_end && zend_is_whitespace(*digits)) {++digits;} in zend_ini_parse_quantity_internal()
636 if (digits == str_end) { in zend_ini_parse_quantity_internal()
642 if (digits[0] == '+') { in zend_ini_parse_quantity_internal()
643 ++digits; in zend_ini_parse_quantity_internal()
646 ++digits; in zend_ini_parse_quantity_internal()
664 if (digits[0] == '0' && !isdigit(digits[1])) { in zend_ini_parse_quantity_internal()
671 switch (digits[1]) { in zend_ini_parse_quantity_internal()
694 digits[1]); in zend_ini_parse_quantity_internal()
[all …]
/PHP-8.3/ext/mbstring/libmbfl/filters/
H A Dmbfilter_htmlent.c359 unsigned char *digits = p + 1; in mb_htmlent_to_wchar() local
360 if (*digits == 'x' || *digits == 'X') { in mb_htmlent_to_wchar()
362 digits++; in mb_htmlent_to_wchar()
363 if (digits == terminator) { in mb_htmlent_to_wchar()
366 while (digits < terminator) { in mb_htmlent_to_wchar()
367 unsigned char digit = *digits++; in mb_htmlent_to_wchar()
380 if (digits == terminator) { in mb_htmlent_to_wchar()
383 while (digits < terminator) { in mb_htmlent_to_wchar()
384 unsigned char digit = *digits++; in mb_htmlent_to_wchar()
/PHP-8.3/ext/bcmath/libbcmath/
H A DREADME.md29 GMP has "integers" (no digits after a decimal), "rational numbers" (stored as
33 of digits to represent after the decimal point. The multiplying two of these
34 numbers requires one to calculate an exact number of digits after the decimal
35 point regardless of the number of digits in the integer part. GMP floats have
37 dropping digits BC must calculate.
/PHP-8.3/ext/mbstring/tests/
H A Dmb_decode_numericentity.phpt46 echo "6: " . mb_decode_numericentity('&#10000000000', $convmap), "\n"; // Too many digits
47 echo "7: " . mb_decode_numericentity('&#100000000000', $convmap), "\n"; // Too many digits
48 echo "8: " . mb_decode_numericentity('&#000000000000', $convmap), "\n"; // Too many digits
49 echo "9: " . mb_decode_numericentity('&#00000000000', $convmap), "\n"; // Too many digits
56 echo "11e: " . mb_decode_numericentity('&#x000000000', $convmap), "\n"; // Too many digits
88 test("10 digits for decimal entity", "&#0000000065;", "A", [0, 0xFFFF, 0, 0xFFFF], 'ASCII');
91 test("8 digits for hex entity", "&#x00000041;", "A", [0, 0xFFFF, 0, 0xFFFF], 'ASCII');
159 die("Decimal entity with huge number of digits broken");
163 die("Hexadecimal entity with huge number of digits broken");
192 10 digits for decimal entity: string(13) "&#0000000065;" => string(1) "A" (Good)
[all …]
H A Dmb_ereg_variation4.phpt19 //contains japanese characters, ASCII digits and different, UTF-8 encoded digits
H A Dmb_encode_numericentity.phpt60 // Regression test; the old implementation could only emit decimal entities with about 7 digits
64 // Regression test; the old implementation could only emit hexadecimal entities with about 5 digits
/PHP-8.3/ext/json/
H A Djson_encoder.c32 static const char digits[] = "0123456789abcdef"; variable
417 dst[2] = digits[(us >> 12) & 0xf]; in php_json_escape_string()
418 dst[3] = digits[(us >> 8) & 0xf]; in php_json_escape_string()
419 dst[4] = digits[(us >> 4) & 0xf]; in php_json_escape_string()
420 dst[5] = digits[us & 0xf]; in php_json_escape_string()
426 dst[2] = digits[(us >> 12) & 0xf]; in php_json_escape_string()
427 dst[3] = digits[(us >> 8) & 0xf]; in php_json_escape_string()
428 dst[4] = digits[(us >> 4) & 0xf]; in php_json_escape_string()
429 dst[5] = digits[us & 0xf]; in php_json_escape_string()
516 dst[4] = digits[(us >> 4) & 0xf]; in php_json_escape_string()
[all …]
/PHP-8.3/ext/pcre/tests/
H A Dpreg_match_all_edit_basic.phpt7 …G_PATTERN_ORDER, -10)); //finds any digit that's not 4 10 digits from the end(1 mat…
16 var_dump(preg_match_all('/\d{2}$/', $string, $match4)); //tries to find 2 digits at the en…
H A Dpreg_match_all_basic.phpt9 …SET_CAPTURE|PREG_PATTERN_ORDER, -10)); //finds any digit that's not 4 10 digits from the end(1 mat…
15 var_dump(preg_match_all('/\d{2}$/', $string, $match4)); //tries to find 2 digits at the end of a st…
/PHP-8.3/ext/fileinfo/libmagic/
H A Dder.c186 uint8_t digits, i; in getlength() local
201 digits = c[(*p)++] & 0x7f; in getlength()
202 if (*p + digits >= l) { in getlength()
203 DPRINTF(("%s:[2] %zu + %u >= %zu\n", __func__, *p, digits, l)); in getlength()
208 return digits; in getlength()
215 for (i = 0; i < digits; i++) in getlength()
/PHP-8.3/ext/iconv/tests/
H A Dbug53304.phpt2 Bug #53304 (quot_print_decode does not handle lower-case hex digits)
/PHP-8.3/ext/ctype/tests/
H A Dctype_digit_variation2.phpt9 * valid decimal digits

Completed in 83 milliseconds

123