gagolews / gagolews/stringi

? stri_ranges_union(), stri_ranges_intersect(), stri_ranges_diff() ?

Open
#48 0 comments 0 reactions 1 assignee Claimed by @gagolews View on GitHub
question
Dominant language
C++
Stars
318
Forks
48
PR merge metrics
No merged PRs in 30d

Description

These functions may be useful when operating on results of stri_locate_*

e.g.
x <- stri_locate_all_charclass(str, "WHITESPACE")
y <- stri_locate_all_charclass(str, "L")
stri_sub(str, stri_ranges_union(x, y)) # extract whitespaces and letters

some options:
- operate row by row on a single matrix (stri_locate_first/last)
- operate on all rows on a matrix or a list of matrices (stri_locate_all)

these may be auto-detected, i.e. whether we have a list of matrices or a single matrix

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.