mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Use parse_align
This commit is contained in:
@ -2439,7 +2439,7 @@ FMT_CONSTEXPR FMT_INLINE auto parse_format_specs(
|
|||||||
auto c = '\0';
|
auto c = '\0';
|
||||||
if (end - begin > 1) {
|
if (end - begin > 1) {
|
||||||
auto next = to_ascii(begin[1]);
|
auto next = to_ascii(begin[1]);
|
||||||
c = next == '<' || next == '>' || next == '^' ? '\0' : to_ascii(*begin);
|
c = parse_align(next) == align::none ? to_ascii(*begin) : '\0';
|
||||||
} else {
|
} else {
|
||||||
if (begin == end) return begin;
|
if (begin == end) return begin;
|
||||||
c = to_ascii(*begin);
|
c = to_ascii(*begin);
|
||||||
|
Reference in New Issue
Block a user