You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/07/01 11:08:00 UTC

[jira] [Commented] (ARROW-13234) [C++] Add string padding option to determine which side the extra space goes on

    [ https://issues.apache.org/jira/browse/ARROW-13234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17372648#comment-17372648 ] 

Antoine Pitrou commented on ARROW-13234:
----------------------------------------

In Python, the extra space is added to the right as well. Perhaps we can simply change the C++ behaviour? [~lidavidm]

> [C++] Add string padding option to determine which side the extra space goes on
> -------------------------------------------------------------------------------
>
>                 Key: ARROW-13234
>                 URL: https://issues.apache.org/jira/browse/ARROW-13234
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Nic Crane
>            Priority: Major
>
> 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?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)