a5dccffa56
Add double and float support to scan test
...
- Add double_type and float_type to scan_type enum
- Add double* and float* pointers to scan_arg union
- Add constructors for double and float scan arguments
- Add switch cases for double and float types in visit()
- Implement basic read() functions for floating-point parsing
This partially resolves the TODO comment 'more types' in scan.h by adding
support for the two most commonly needed floating-point types.
2025-06-21 06:57:20 -07:00
8523dba2dc
Make constexpr precede explicit consistently
2024-11-02 11:03:03 -07:00
b310a0d48b
Simplify parse_format_string
2024-09-01 11:09:26 -07:00
b906c321f0
Get rid of bit fields
2024-08-11 10:28:09 -07:00
58d792b6d3
Apply minor optimizations
2024-07-14 07:05:18 -07:00
92227c77a4
Improve support for non-POSIX platforms more
2024-07-08 14:00:00 -07:00
2c0d9e9409
Add a define to force the use of fallback_file
2024-06-21 09:42:02 -07:00
c816fa6751
Fix a warning
2024-03-10 10:27:42 -07:00
91b30e5b4e
More API details
2024-02-10 08:10:59 -08:00
e17bc67547
Make scan variadic
2024-02-04 08:07:00 -08:00
6f260455aa
Add scan_data::make_args
2024-01-23 08:17:06 -08:00
2caf1b3b91
scan more
2024-01-21 08:02:54 -08:00
6b68dff901
Write directly to a stream buffer
2024-01-18 16:27:12 -08:00
8510838db1
Make format_specs not depend on code unit type
2024-01-17 07:50:52 -08:00
fe0d910a7d
Replace multiple error reporting mechanisms with report_error
2024-01-15 07:23:06 -08:00
f9294f0e60
Improve handling of format specs
2024-01-15 06:31:24 -08:00
3647feaad5
Improve scan
2024-01-14 09:30:45 -08:00
e420a58f24
Improve scan prototype
2024-01-14 08:51:33 -08:00
ca37503f93
scan -> scan_to
2024-01-14 08:30:42 -08:00
123e058eb3
Improve scan prototype
2024-01-14 08:11:13 -08:00
8875cf96c2
Fix spelling: othewise ==> otherwise ( #3791 )
2024-01-09 10:32:46 -08:00
0b39d67103
Remove detail::error_handler
2024-01-01 16:10:13 -08:00
ce3161887a
Add overflow check
2024-01-01 09:17:10 -08:00
e1aac42663
Implement hex specifier
2024-01-01 09:03:46 -08:00
1705600be3
Remove optional
2024-01-01 09:03:46 -08:00
d33731d202
Implement empty format specs
2024-01-01 07:54:02 -08:00
c068c7c622
Add sentinel support
2024-01-01 07:25:01 -08:00
f5ca178c12
Complete scan_handler
2023-12-31 18:00:14 -08:00
138a64bfb1
Privatization
2023-12-31 15:06:17 -08:00
4aa24f54cd
Implement visitor for scan
2023-12-31 09:53:24 -08:00
e33c1568c3
Implement scan argument access
2023-12-31 08:49:29 -08:00
5ddd0cad15
Add a visitor for scan arguments
2023-12-30 07:43:21 -08:00
d83c1b8d4a
Add initial specifier support to scan
2023-12-29 07:30:56 -08:00
bfba2f9e92
Improve iterator handling in scan
2023-12-29 06:34:49 -08:00
a3bf40838f
Initial range support in scan
2023-12-29 06:25:57 -08:00
4cbf6182ea
Remove peek
2023-12-25 10:47:45 -08:00
88d19f5de9
Cleanup scan
2023-12-25 10:28:50 -08:00
62529aad19
Apply coding conventions
2023-12-25 10:20:00 -08:00
eef6dbafbf
Refactor file layer in scan
2023-12-25 09:32:29 -08:00
41c2433358
clang-format
2023-12-25 09:09:20 -08:00
0a9d08fefd
Simplify fallback
2023-12-25 09:00:03 -08:00
e450b7aeb3
Implement locking
2023-12-25 08:48:45 -08:00
c5a85f8d7d
Handle end of input in scan
2023-12-25 07:18:23 -08:00
c4f2de4933
Improve scan
2023-12-25 06:34:15 -08:00
56d7a8c157
Simplify test
2023-12-23 07:02:58 -08:00
44dd6c0e09
Add glibc support to scan
2023-12-22 13:43:20 -08:00
3a0f4af4e9
Refactor file layer
2023-12-22 11:27:22 -08:00
1ca1a4a7a9
Update scan test
2023-12-22 08:22:00 -08:00
5d55375a8a
Experiment with scan buffering
2023-12-03 08:09:36 -08:00
5cfd28d476
Experiment with FILE in scan
2023-11-26 10:01:42 -08:00