Home
last modified time | relevance | path

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

123

/php-src/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-src/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-src/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-src/Zend/tests/zend_ini/
H A Dzend_ini_parse_quantity_error.phpt11 'K', # No digits
14 '1.0K', # Non integral digits.
43 Warning: Invalid quantity "K": no valid leading digits, interpreting as "0" for backwards compatibi…
63 Warning: Invalid quantity "0X": no digits after base prefix, interpreting as "0" for backwards comp…
73 Warning: Invalid quantity "0XK": no valid leading digits, interpreting as "0" for backwards compati…
78 Warning: Invalid quantity "++": no valid leading digits, interpreting as "0" for backwards compatib…
83 Warning: Invalid quantity "-+": no valid leading digits, interpreting as "0" for backwards compatib…
88 Warning: Invalid quantity "+ 25": no valid leading digits, interpreting as "0" for backwards compat…
93 Warning: Invalid quantity "- 25": no valid leading digits, interpreting as "0" for backwards compat…
103 Warning: Invalid quantity "\x00 123K": no valid leading digits, interpreting as "0" for backwards c…
[all …]
H A Dgh11876.phpt24 Warning: Invalid quantity "0x0x12": no digits after base prefix, interpreting as "0" for backwards …
27 Warning: Invalid quantity "0b+10": no digits after base prefix, interpreting as "0" for backwards c…
30 Warning: Invalid quantity "0o+10": no digits after base prefix, interpreting as "0" for backwards c…
33 Warning: Invalid quantity "0x+10": no digits after base prefix, interpreting as "0" for backwards c…
36 Warning: Invalid quantity "0b 10": no digits after base prefix, interpreting as "0" for backwards c…
39 Warning: Invalid quantity "0o 10": no digits after base prefix, interpreting as "0" for backwards c…
42 Warning: Invalid quantity "0x 10": no digits after base prefix, interpreting as "0" for backwards c…
/php-src/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
81 test("10 digits for decimal entity", "A", "A", [0, 0xFFFF, 0, 0xFFFF], 'ASCII');
84 test("8 digits for hex entity", "A", "A", [0, 0xFFFF, 0, 0xFFFF], 'ASCII');
132 die("Decimal entity with huge number of digits broken");
136 die("Hexadecimal entity with huge number of digits broken");
164 10 digits for decimal entity: string(13) "A" => string(1) "A" (Good)
[all …]
H A Dmb_encode_numericentity_large_ints.phpt10 // Regression test; the old implementation could only emit hexadecimal entities with about 5 digits
H A Dmb_ereg_variation4.phpt19 //contains japanese characters, ASCII digits and different, UTF-8 encoded digits
/php-src/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-src/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-src/ext/mbstring/libmbfl/filters/
H A Dmbfilter_htmlent.c360 unsigned char *digits = p + 1; in mb_htmlent_to_wchar() local
361 if (*digits == 'x' || *digits == 'X') { in mb_htmlent_to_wchar()
363 digits++; in mb_htmlent_to_wchar()
364 if (digits == terminator) { in mb_htmlent_to_wchar()
367 while (digits < terminator) { in mb_htmlent_to_wchar()
368 unsigned char digit = *digits++; in mb_htmlent_to_wchar()
381 if (digits == terminator) { in mb_htmlent_to_wchar()
384 while (digits < terminator) { in mb_htmlent_to_wchar()
385 unsigned char digit = *digits++; in mb_htmlent_to_wchar()
/php-src/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-src/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-src/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-src/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-src/ext/iconv/tests/
H A Dbug53304.phpt2 Bug #53304 (quot_print_decode does not handle lower-case hex digits)
/php-src/ext/dom/lexbor/lexbor/core/
H A Dconv.c33 static const lxb_char_t *digits = (const lxb_char_t *) "0123456789"; in lexbor_conv_int64_to_data() local
82 buf[i] = digits[ num % 10 ]; in lexbor_conv_int64_to_data()

Completed in 41 milliseconds

123