You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++] Add string padding option to determine which side the extra space goes on #28919
I'm trying to implement R bindings for the compute function "utf8_center" but in cases where there are an odd number of spaces in total, the extra space is added to the left. However, in R, the extra space is added to the right.
Please can we have another string pad option to determine which side the extra space goes, so I can make the functionality match?
Activity
asfimport commentedon Jul 1, 2021
Antoine Pitrou / @pitrou:
In Python, the extra space is added to the right as well. Perhaps we can simply change the C++ behaviour? @lidavidm
asfimport commentedon Jul 1, 2021
Antoine Pitrou / @pitrou:
asfimport commentedon Jul 1, 2021
David Li / @lidavidm:
I'll change it to put it on the right, yes.
asfimport commentedon Jul 1, 2021
Nicola Crane / @thisisnic:
Awesome, thanks!
asfimport commentedon Jul 1, 2021
Antoine Pitrou / @pitrou:
Issue resolved by pull request 10639
#10639