Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

P2675R1 <format> generator converted from C++ to Python #3994

Merged
merged 24 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
7d2a326
P2675R1 <format> generator converted from C++ to Python
fsb4000 Aug 26, 2023
2ba4369
change a comment
fsb4000 Aug 26, 2023
aec3166
add some spaces
fsb4000 Aug 26, 2023
0956d67
remove unneded if
fsb4000 Aug 26, 2023
6daea61
use a slice instead of a custom class, also remove input
fsb4000 Sep 17, 2023
83ef03a
use enumerate
fsb4000 Sep 17, 2023
207e428
apply code review suggestions
fsb4000 Sep 21, 2023
7c75b61
rephrase some comments
fsb4000 Sep 21, 2023
c8b9454
change the comments a bit
fsb4000 Sep 21, 2023
294f157
> restore the location of `LINE_REGEX`
achabense Sep 21, 2023
c1f1aa6
Merge pull request #1 from achabense/review3994
fsb4000 Sep 21, 2023
6e2c760
> simplify `print_ranges_1_vs_2`
achabense Sep 24, 2023
77ce232
> add documentation for `print_width_estimate_intervals`
achabense Sep 24, 2023
8e88bb8
> update regex to support both `15.0.0` and `15.1.0`
achabense Sep 24, 2023
59615a2
Merge pull request #2 from achabense/pr_to_3994_2
fsb4000 Sep 24, 2023
6fab139
Merge branch 'main' into fix3908
StephanTLavavej Sep 24, 2023
e4f8665
Print the filename, timestamp, and C++ array.
StephanTLavavej Sep 24, 2023
15320fa
Don't bother carefully wrapping; we need to clang-format anyways.
StephanTLavavej Sep 24, 2023
9d7958c
Use `join` to avoid a trailing comma interfering with clang-format.
StephanTLavavej Sep 24, 2023
8ebce49
Use a template string to make the C++ output clearer, like the other …
StephanTLavavej Sep 24, 2023
ab8a275
Format with Prettier.
StephanTLavavej Sep 24, 2023
398e37d
Regenerate, capturing the filename and timestamp.
StephanTLavavej Sep 24, 2023
13e3197
Cite the Standardese.
StephanTLavavej Sep 24, 2023
fa0b783
Update tools/unicode_properties_parse/format_width_estimate_intervals.py
strega-nil-ms Oct 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion stl/inc/format
Original file line number Diff line number Diff line change
Expand Up @@ -987,8 +987,11 @@ _NODISCARD constexpr bool _Is_execution_charset_self_synchronizing() {
#endif // ^^^ EDG workaround ^^^
}

// Generated per N4950 [format.string.std]/13, by tools/unicode_properties_parse/format_width_estimate_intervals.cpp
// Generated per N4950 [format.string.std]/13, by tools/unicode_properties_parse/format_width_estimate_intervals.py
// in the https://github.com/microsoft/stl repository.

// EastAsianWidth-15.0.0.txt
// Date: 2022-05-24, 17:40:20 GMT [KW, LI]
inline constexpr char32_t _Width_estimate_intervals_v2[] = { //
0x1100u, 0x1160u, 0x231Au, 0x231Cu, 0x2329u, 0x232Bu, 0x23E9u, 0x23EDu, 0x23F0u, 0x23F1u, 0x23F3u, 0x23F4u, 0x25FDu,
0x25FFu, 0x2614u, 0x2616u, 0x2648u, 0x2654u, 0x267Fu, 0x2680u, 0x2693u, 0x2694u, 0x26A1u, 0x26A2u, 0x26AAu, 0x26ACu,
Expand Down
209 changes: 0 additions & 209 deletions tools/unicode_properties_parse/format_width_estimate_intervals.cpp

This file was deleted.

Loading