stri_*_fixed: add an option to take into account overlapping pattern matches #23

Closed
gagolews opened this Issue May 21, 2013 · 6 comments

Comments

Projects
None yet
2 participants
@gagolews
Owner

gagolews commented May 21, 2013

it'll be easy :)

@gagolews gagolews added to do - later and removed enhancement labels Mar 25, 2014

@gagolews

This comment has been minimized.

Show comment
Hide comment
@gagolews

gagolews Oct 26, 2014

Owner

BTW, playing with that using positive look-aheads:

stri_locate_all_regex("ACAGAGACTTTAGATAGAGAAGA", "(?=AGA)")
Owner

gagolews commented Oct 26, 2014

BTW, playing with that using positive look-aheads:

stri_locate_all_regex("ACAGAGACTTTAGATAGAGAAGA", "(?=AGA)")
@bartektartanus

This comment has been minimized.

Show comment
Hide comment

@bartektartanus bartektartanus self-assigned this Oct 28, 2014

@bartektartanus

This comment has been minimized.

Show comment
Hide comment
@bartektartanus

bartektartanus Oct 28, 2014

Contributor

Work ongoing:

> stri_count_fixed("AAAAA",c("A","AA","AAA"),rep(0:1,each=3))
[1] 5 2 1 5 4 3
> stri_count_fixed("AAA","AA",overlap=c(T,F))
[1] 2 1
Contributor

bartektartanus commented Oct 28, 2014

Work ongoing:

> stri_count_fixed("AAAAA",c("A","AA","AAA"),rep(0:1,each=3))
[1] 5 2 1 5 4 3
> stri_count_fixed("AAA","AA",overlap=c(T,F))
[1] 2 1
@gagolews

This comment has been minimized.

Show comment
Hide comment
@gagolews

gagolews Oct 31, 2014

Owner

BTW, for *_coll this'll be very easy (I'll take care of it when stringi 0.3 will be on CRAN): we have USEARCH_OVERLAP with options USEARCH_OFF and USEARCH_ON; UStringSearch has a usearch_setAttribute function

Owner

gagolews commented Oct 31, 2014

BTW, for *_coll this'll be very easy (I'll take care of it when stringi 0.3 will be on CRAN): we have USEARCH_OVERLAP with options USEARCH_OFF and USEARCH_ON; UStringSearch has a usearch_setAttribute function

@gagolews

This comment has been minimized.

Show comment
Hide comment
@gagolews

gagolews Oct 31, 2014

Owner

A list of functions that need the overlap arg:

  • count
  • locate_all
  • extract_all

Don't need:

  • detect
  • startswith, endswith
  • subset
  • extract_first, extract_last
  • locate_first, locate_last
  • split
  • replace
  • split
Owner

gagolews commented Oct 31, 2014

A list of functions that need the overlap arg:

  • count
  • locate_all
  • extract_all

Don't need:

  • detect
  • startswith, endswith
  • subset
  • extract_first, extract_last
  • locate_first, locate_last
  • split
  • replace
  • split

@gagolews gagolews modified the milestone: stringi-0.4 Nov 6, 2014

@gagolews gagolews removed this from the stringi-0.4 milestone Nov 27, 2014

@gagolews gagolews removed the high priority label Nov 27, 2014

@gagolews

This comment has been minimized.

Show comment
Hide comment
@gagolews

gagolews Nov 28, 2014

Owner

if stri_opts_fixed will be introduced, put this option here ===> depends on #110

Owner

gagolews commented Nov 28, 2014

if stri_opts_fixed will be introduced, put this option here ===> depends on #110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment