We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URLdecode
Sometimes, I might want to have those %.
ada_url_parse <- function(url, decode = TRUE) { url <- stringi::stri_enc_toutf8(url) url_parsed <- Rcpp_ada_parse(url, nchar(url, type = "bytes")) if (isTRUE(decode)) { return(lapply(url_parsed, URLdecode)) } return(url_parsed) }
ada_url_parse("https://www.google.co.jp/search?q=ドイツ")$search ## [1] "?q=ドイツ" ada_url_parse("https://www.google.co.jp/search?q=ドイツ", decode = FALSE)$search ## [1] "?q=%E3%83%89%E3%82%A4%E3%83%84"
The text was updated successfully, but these errors were encountered:
eb72d6c
Merge pull request #6 from chainsawriot/fix5
d4ad19d
Fix #5
No branches or pull requests
Sometimes, I might want to have those %.
The text was updated successfully, but these errors were encountered: