Skip to content

GB225 20.20.02.2 Format alignment specifiers vs. text direction LWG 3327 #222

@wg21bot

Description

@wg21bot

std::format() alignment specifiers should be independent of text direction
The align specifiers for formatting standard integer and string types are expressed in terms of "left" and "right". However, "left alignment" as currently defined in the format() specification might end up being right-aligned when the resulting string is displayed in a RTL or bidirectional locale.
This ambiguity can be resolved by removing "left" and "right" and replacing with "start" and "end", without changing any existing implementation and without changing the intent of the feature.

Proposed change:
In [tab:format.align]:
Forces the field to be left-aligned within aligned to the start of the available space
and
Forces the field to be right-aligned within aligned to the end of the available space

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions