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

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

{code:python}
>>> s = "xxx"
>>> s.center(5)
' xxx '
>>> s.center(6)
' xxx  '
>>> s.center(7)
'  xxx  '
{code}

> [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)

Reply via email to