You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Ian Cook (Jira)" <ji...@apache.org> on 2021/04/03 15:45:00 UTC

[jira] [Comment Edited] (ARROW-11513) [R] Bindings for sub/gsub

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

Ian Cook edited comment on ARROW-11513 at 4/3/21, 3:44 PM:
-----------------------------------------------------------

- For {{ignore.case = TRUE && fixed == FALSE}}, the re2 syntax is {{paste0("(?i)", pattern)}}
- We can support the {{ignore.case = TRUE && fixed == TRUE}} by using re2 with {{paste0("(?i)\Q", pattern, "\E")}} (except double the backslashes which Jira markup can't do)
- I don't think it's worth handling {{useBytes}} or {{perl}}. I believe the only practical result of handling those arguments would be to detect conditions that R doesn't support when they are {{FALSE}} and throw various errors when they're set to {{FALSE}}. Since they both default to {{FALSE}}, I suspect this would be more annoying than valuable.



was (Author: icook):
- For {{ignore.case = TRUE && fixed == FALSE}}, the re2 syntax is {{paste0("(?i)", pattern)}}
- We can support the {{ignore.case = TRUE && fixed == TRUE}} case by converting the input and pattern both to lowercase or both to uppercase
- I don't think it's worth handling {{useBytes}} or {{perl}}. I believe the only practical result of handling those arguments would be to detect conditions that R doesn't support when they are {{FALSE}} and throw various errors when they're set to {{FALSE}}. Since they both default to {{FALSE}}, I suspect this would be more annoying than valuable.


> [R] Bindings for sub/gsub
> -------------------------
>
>                 Key: ARROW-11513
>                 URL: https://issues.apache.org/jira/browse/ARROW-11513
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: R
>            Reporter: Neal Richardson
>            Assignee: Ian Cook
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>




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