Files
compiler-explorer/test
narpfel 10c6074073 Add digit separators to long numbers in numeric tooltip (#6221)
Long numbers are sometimes hard to read in the numeric tooltip. To
improve readability, this PR adds language-specific digit separators to
the numeric tooltip.

Decimal numbers are grouped into chunks of three digits while
hexadecimal numbers are grouped into chunks of length four.

The digit separator is language-specific and chosen so that the number
is a valid token in the source language.

[Examples](https://godbolt.org/z/s86cMbjeK):
* for C++, hovering the number `8583909746840200552` shows this tooltip:
`8'583'909'746'840'200'552 = 0x7720'2C6F'6C6C'6568 =
6.5188685003648344e+265`
* for Python, hovering the number `-12345678` shows this tooltip:
`-123_456_789 = 0xFFFF_FFFF_F8A4_32EB = -2.66427945e+34f`

For languages that don’t have a `digitSeparator` set, the tooltip is not
changed.
2024-03-05 20:11:39 -06:00
..
2023-11-27 10:33:03 -05:00
2023-11-11 13:56:25 +01:00
2023-11-07 23:59:40 +01:00
2021-10-05 01:45:05 +02:00
2019-08-21 01:26:16 +02:00
2021-09-13 20:22:27 +02:00
2023-02-02 21:37:22 -05:00
2023-02-26 12:21:35 -05:00
2024-01-01 20:18:23 +01:00
2023-11-03 12:44:46 -04:00
2024-01-01 20:18:23 +01:00
2023-11-04 20:54:24 +01:00
2024-01-01 20:18:23 +01:00
2023-10-22 12:18:14 +02:00
2023-07-10 21:31:04 -05:00
2024-01-01 20:18:23 +01:00
2023-10-22 12:15:44 +02:00
2024-01-01 20:18:23 +01:00
2023-12-18 20:11:11 -06:00
2024-01-01 20:18:23 +01:00
2023-05-16 03:53:57 +02:00
2024-01-28 18:50:46 -06:00