Documentation for std::column
should state that it counts code points, not bytes or graphemes
#92301
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
std::column
counts the number of unicode characters that precede its invocation in that same line (then adds one). However, this behavior is not stated explicitly in its documentation. It's not unusual for programming languages or editors to use byte indexes for columns (vim does this for example), so I think it's worth clarifying.The text was updated successfully, but these errors were encountered: