Comments (3)
Sorry that I forgot about the argument! Thank you very much.
from stringi.
It was my bad but I think the ICU rules have been updated about colons and at marks. Great to see the rules are still evolving.
require(stringi)
#> Loading required package: stringi
word <- readLines("https://raw.githubusercontent.com/unicode-org/icu/main/icu4c/source/data/brkitr/rules/word.txt")
txt <- "aaa@bbb @cc"
stri_split_boundaries(txt, type = paste0(word, collapse = "\n"))
#> [[1]]
#> [1] "aaa@bbb" " " "@cc"
stri_split_boundaries(txt, type = "word")
#> [[1]]
#> [1] "aaa" "@" "bbb" " " "@" "cc"
Created on 2023-03-20 with reprex v2.0.2
from stringi.
They are the same, if you set the type
explicitly:
stri_split_boundaries(txt, type="word")
## [[1]]
## [1] "übër" " " "übër" " ̈" "ubër"
The default type is line_break
.
from stringi.
Related Issues (20)
- unable to install stringi in cluster HOT 4
- stri_dup causes SIGABRT when used with very large strings HOT 2
- Building in ALT-REP to stringi HOT 8
- configuration failed for package ‘stringi’ HOT 1
- No warning for invalid locales HOT 3
- Sprintf doesn't care about OutDec option HOT 5
- Special UTF Code Points: Enhancements to UTF HOT 1
- The tip information when install the stringi: stringi cannot be built with these settings in place. HOT 2
- Unable to build stringi: ‘isNull’ was not declared in this scope HOT 6
- neither conda R version nor base R installed stringi successfully HOT 9
- Unable to install stringi HOT 1
- DOI not found: https://dx.doi.org/10.18637/jss.v103.i02 HOT 2
- Timout downloading ICU at stringi installation HOT 12
- unable to install stringi via http_proxy HOT 7
- libicui18n.so.71: cannot open shared object file HOT 2
- stri_detect_regex gives non-intuitive error (U_ILLEGAL_ARGUMENT_ERROR) with strings longer than 858993457 characters HOT 1
- `stri_(any|all)_(regex|fixed)` HOT 1
- [Feature] Convert String to Code Points HOT 2
- [Feature] Extract Non-ASCII Characters HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stringi.