|
Rcpp Version 1.0.14
|
#include <String.h>
Public Types | |
| typedef internal::string_proxy< STRSXP > | StringProxy |
| typedef internal::const_string_proxy< STRSXP > | const_StringProxy |
Private Member Functions | |
| template<typename T > | |
| String & | assign_wide_string (const T &s) |
| template<typename T > | |
| String & | append_wide_string (const T &s) |
| bool | is_na () const |
| void | setBuffer () |
| void | setData () |
| template<typename T > | |
| void | append (const T &s) |
Private Attributes | |
| SEXP | data |
| SEXP | token |
| std::string | buffer |
| bool | valid |
| bool | buffer_ready |
| cetype_t | enc |
A single string, i.e. an element of a character vector. This represents CHARSXP SEXP
|
inline |
default constructor
Definition at line 55 of file String.h.
References data, Rcpp::Rcpp_PreciousPreserve(), RCPP_STRING_DEBUG, and token.
Referenced by replace_all().

copy constructor
Definition at line 61 of file String.h.
References Rcpp::as(), buffer_ready, data, Rcpp::Rcpp_PreciousPreserve(), RCPP_STRING_DEBUG, and token.

|
inline |
construct a string from a single CHARSXP SEXP
Definition at line 70 of file String.h.
References Rcpp::as(), buffer_ready, data, enc, Rcpp::Rcpp_PreciousPreserve(), RCPP_STRING_DEBUG, token, and valid.

|
inline |
from string proxy
Definition at line 93 of file String.h.
References data, Rcpp::Rcpp_PreciousPreserve(), RCPP_STRING_DEBUG, and token.

|
inline |
Definition at line 98 of file String.h.
References data, enc, Rcpp::Rcpp_PreciousPreserve(), RCPP_STRING_DEBUG, set_encoding(), and token.

|
inline |
from string proxy
Definition at line 105 of file String.h.
References data, Rcpp::Rcpp_PreciousPreserve(), RCPP_STRING_DEBUG, and token.

|
inline |
Definition at line 110 of file String.h.
References data, enc, Rcpp::Rcpp_PreciousPreserve(), RCPP_STRING_DEBUG, set_encoding(), and token.

Definition at line 138 of file String.h.
References data, Rcpp::Rcpp_PreciousPreserve(), RCPP_STRING_DEBUG, and token.

from a const char*
Definition at line 144 of file String.h.
References Rcpp::as(), data, RCPP_STRING_DEBUG, and token.

Definition at line 150 of file String.h.
References data, Rcpp::Rcpp_PreciousPreserve(), RCPP_STRING_DEBUG, and token.

|
inline |
|
inline |
Definition at line 159 of file String.h.
References data, Rcpp::Rcpp_PreciousPreserve(), and token.

|
inline |
Definition at line 162 of file String.h.
References data, Rcpp::Rcpp_PreciousPreserve(), and token.

|
inline |
Definition at line 165 of file String.h.
References data, Rcpp::Rcpp_PreciousPreserve(), and token.

|
inline |
Definition at line 168 of file String.h.
References data, Rcpp::Rcpp_PreciousPreserve(), and token.

|
inline |
Definition at line 172 of file String.h.
References Rcpp::as(), data, Rcpp::Rcpp_PreciousRelease(), and token.

Definition at line 672 of file String.h.
References Rcpp::as(), and buffer.

Definition at line 331 of file String.h.
References Rcpp::as(), Rcpp::internal::as(), buffer_ready, data, DEMANGLE, is_na(), Rcpp::Rcpp_PreciousPreserve(), Rcpp::Rcpp_PreciousRelease(), RCPP_STRING_DEBUG_1, setData(), token, and valid.
Referenced by operator+=(), and operator+=().

Definition at line 303 of file String.h.
References Rcpp::as(), Rcpp::internal::as(), buffer_ready, data, Rcpp::Rcpp_PreciousPreserve(), Rcpp::Rcpp_PreciousRelease(), token, and valid.
Referenced by operator=(), and operator=().

Definition at line 576 of file String.h.
References Rcpp::as(), buffer, buffer_ready, and data.
Referenced by operator std::string(), operator std::wstring(), operator<(), and operator>().

|
inline |
|
inline |
|
inline |
Definition at line 557 of file String.h.
References data, get_sexp_impl(), RCPP_STRING_DEBUG_1, and valid.
Referenced by operator!=(), operator!=(), operator!=(), operator!=(), operator==(), operator==(), operator==(), operator==(), and Rcpp::internal::range_wrap_dispatch___impl__pair().

|
inline |
Definition at line 544 of file String.h.
References Rcpp::as(), buffer, and enc.
Referenced by get_sexp(), set_encoding(), and setData().

|
inlineprivate |
Definition at line 657 of file String.h.
References Rcpp::as(), and data.
Referenced by append_wide_string(), operator+=(), operator+=(), operator+=(), operator+=(), operator+=(), operator+=(), push_back(), push_back(), push_front(), push_front(), replace_all(), replace_first(), and replace_last().

|
inline |
Definition at line 567 of file String.h.
References get_cstring().

|
inline |
Definition at line 571 of file String.h.
References Rcpp::as(), and get_cstring().

|
inline |
Definition at line 623 of file String.h.
References Rcpp::as(), and get_sexp().

|
inline |
Definition at line 607 of file String.h.
References Rcpp::as(), and get_sexp().

|
inline |
Definition at line 615 of file String.h.
References Rcpp::as(), and get_sexp().

Definition at line 635 of file String.h.
References Rcpp::as(), and get_sexp().

Definition at line 323 of file String.h.
References Rcpp::as(), buffer, is_na(), RCPP_STRING_DEBUG, setBuffer(), and valid.

|
inline |
Definition at line 380 of file String.h.
References Rcpp::as(), buffer, buffer_ready, data, is_na(), Rcpp::Rcpp_PreciousPreserve(), Rcpp::Rcpp_PreciousRelease(), RCPP_STRING_DEBUG, setBuffer(), token, and valid.

Definition at line 316 of file String.h.
References Rcpp::as(), buffer, is_na(), RCPP_STRING_DEBUG, setBuffer(), and valid.

Definition at line 348 of file String.h.
References append_wide_string(), and Rcpp::as().

Definition at line 351 of file String.h.
References Rcpp::as(), buffer, buffer_ready, data, is_na(), Rcpp::Rcpp_PreciousPreserve(), Rcpp::Rcpp_PreciousRelease(), RCPP_STRING_DEBUG, setBuffer(), token, and valid.

|
inline |
Definition at line 365 of file String.h.
References Rcpp::as(), buffer, buffer_ready, data, is_na(), Rcpp::Rcpp_PreciousPreserve(), Rcpp::Rcpp_PreciousRelease(), RCPP_STRING_DEBUG, setBuffer(), token, and valid.

Definition at line 349 of file String.h.
References append_wide_string(), and Rcpp::as().

Definition at line 395 of file String.h.
References Rcpp::as(), buffer, buffer_ready, data, is_na(), Rcpp::Rcpp_PreciousPreserve(), Rcpp::Rcpp_PreciousRelease(), RCPP_STRING_DEBUG, setBuffer(), token, and valid.

|
inline |
Definition at line 600 of file String.h.
References Rcpp::as(), and get_cstring().

Definition at line 203 of file String.h.
References Rcpp::internal::as(), buffer_ready, data, Rcpp::Rcpp_PreciousPreserve(), Rcpp::Rcpp_PreciousRelease(), token, and valid.

Definition at line 294 of file String.h.
References Rcpp::as(), buffer, buffer_ready, and valid.

Definition at line 264 of file String.h.
References Rcpp::as(), buffer, buffer_ready, and valid.

Definition at line 313 of file String.h.
References Rcpp::as(), and assign_wide_string().

Definition at line 240 of file String.h.
References Rcpp::as(), buffer, buffer_ready, data, enc, Rcpp::Rcpp_PreciousPreserve(), Rcpp::Rcpp_PreciousRelease(), token, and valid.

|
inline |
Definition at line 229 of file String.h.
References Rcpp::as(), buffer_ready, data, Rcpp::internal::string_proxy< RTYPE, StoragePolicy >::get(), Rcpp::Rcpp_PreciousPreserve(), Rcpp::Rcpp_PreciousRelease(), token, and valid.

Definition at line 314 of file String.h.
References Rcpp::as(), and assign_wide_string().

Definition at line 187 of file String.h.
References Rcpp::internal::as(), buffer_ready, data, Rcpp::Rcpp_PreciousPreserve(), Rcpp::Rcpp_PreciousRelease(), token, and valid.

Definition at line 179 of file String.h.
References Rcpp::internal::as(), buffer_ready, data, Rcpp::Rcpp_PreciousPreserve(), Rcpp::Rcpp_PreciousRelease(), token, and valid.

Definition at line 195 of file String.h.
References Rcpp::internal::as(), buffer_ready, data, Rcpp::Rcpp_PreciousPreserve(), Rcpp::Rcpp_PreciousRelease(), token, and valid.

Definition at line 211 of file String.h.
References Rcpp::internal::as(), buffer_ready, data, Rcpp::Rcpp_PreciousPreserve(), Rcpp::Rcpp_PreciousRelease(), token, and valid.

Definition at line 219 of file String.h.
References buffer_ready, data, Rcpp::Rcpp_PreciousPreserve(), Rcpp::Rcpp_PreciousRelease(), token, and valid.

|
inline |
Definition at line 619 of file String.h.
References Rcpp::as(), and get_sexp().

|
inline |
Definition at line 604 of file String.h.
References Rcpp::as(), and get_sexp().

|
inline |
Definition at line 611 of file String.h.
References Rcpp::as(), and get_sexp().

Definition at line 631 of file String.h.
References Rcpp::as(), and get_sexp().

|
inline |
Definition at line 627 of file String.h.
References Rcpp::as(), and get_cstring().

Definition at line 506 of file String.h.
References Rcpp::as(), buffer, is_na(), setBuffer(), and valid.
Referenced by push_back(), and push_back().

|
inline |
Definition at line 514 of file String.h.
References Rcpp::as(), is_na(), push_back(), and set_na().

Definition at line 511 of file String.h.
References Rcpp::as(), and push_back().

Definition at line 520 of file String.h.
References Rcpp::as(), buffer, is_na(), setBuffer(), and valid.
Referenced by push_front(), and push_front().

|
inline |
Definition at line 528 of file String.h.
References Rcpp::as(), is_na(), push_front(), and set_na().

Definition at line 525 of file String.h.
References Rcpp::as(), and push_front().

Definition at line 469 of file String.h.
References Rcpp::as(), buffer, is_na(), RCPP_STRING_DEBUG_2, setBuffer(), and valid.
Referenced by replace_all(), replace_all(), replace_all(), and replace_all().

|
inline |
Definition at line 495 of file String.h.
References Rcpp::as(), and replace_all().

Definition at line 486 of file String.h.
References Rcpp::as(), replace_all(), and String().

|
inline |
Definition at line 490 of file String.h.
References Rcpp::as(), and replace_all().

|
inline |
Definition at line 500 of file String.h.
References Rcpp::as(), and replace_all().

Definition at line 416 of file String.h.
References Rcpp::as(), buffer, is_na(), RCPP_STRING_DEBUG_2, setBuffer(), and valid.
Referenced by replace_first(), replace_first(), and replace_first().

|
inline |
Definition at line 431 of file String.h.
References Rcpp::as(), and replace_first().

|
inline |
Definition at line 426 of file String.h.
References Rcpp::as(), and replace_first().

|
inline |
Definition at line 436 of file String.h.
References Rcpp::as(), and replace_first().

Definition at line 442 of file String.h.
References Rcpp::as(), buffer, is_na(), RCPP_STRING_DEBUG_2, setBuffer(), and valid.
Referenced by replace_last(), replace_last(), and replace_last().

|
inline |
Definition at line 457 of file String.h.
References Rcpp::as(), and replace_last().

|
inline |
Definition at line 452 of file String.h.
References Rcpp::as(), and replace_last().

|
inline |
Definition at line 462 of file String.h.
References Rcpp::as(), and replace_last().

Definition at line 584 of file String.h.
References Rcpp::as(), data, enc, get_sexp_impl(), Rcpp::Rcpp_PreciousPreserve(), Rcpp::Rcpp_PreciousRelease(), token, and valid.
Referenced by String(), and String().

|
inline |
Definition at line 535 of file String.h.
References Rcpp::as(), buffer_ready, data, Rcpp::Rcpp_PreciousPreserve(), Rcpp::Rcpp_PreciousRelease(), token, and valid.
Referenced by push_back(), and push_front().

|
inlineprivate |
Definition at line 658 of file String.h.
References buffer, buffer_ready, char_nocheck(), and data.
Referenced by operator+=(), operator+=(), operator+=(), operator+=(), operator+=(), operator+=(), push_back(), push_front(), replace_all(), replace_first(), and replace_last().

|
inlineprivate |
Definition at line 664 of file String.h.
References data, get_sexp_impl(), Rcpp::Rcpp_PreciousPreserve(), RCPP_STRING_DEBUG, token, and valid.
Referenced by append_wide_string(), and get_sexp().

|
private |
a buffer used to do string operations withough going back to the SEXP
Definition at line 646 of file String.h.
Referenced by append(), get_cstring(), get_sexp_impl(), operator+=(), operator+=(), operator+=(), operator+=(), operator+=(), operator+=(), operator=(), operator=(), operator=(), push_back(), push_front(), replace_all(), replace_first(), replace_last(), and setBuffer().
|
private |
is the buffer initialized
Definition at line 652 of file String.h.
Referenced by append_wide_string(), assign_wide_string(), get_cstring(), operator+=(), operator+=(), operator+=(), operator+=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), set_na(), setBuffer(), String(), and String().
|
private |
the CHARSXP this String encapsulates
Definition at line 642 of file String.h.
Referenced by append_wide_string(), assign_wide_string(), get_cstring(), get_sexp(), get_sexp(), is_na(), operator+=(), operator+=(), operator+=(), operator+=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), set_encoding(), set_na(), setBuffer(), setData(), String(), String(), String(), String(), String(), String(), String(), String(), String(), String(), String(), String(), String(), String(), String(), and ~String().
|
private |
the encoding of encapsulated CHARSXP
Definition at line 655 of file String.h.
Referenced by get_encoding(), get_sexp_impl(), operator=(), set_encoding(), String(), String(), and String().
|
private |
Definition at line 643 of file String.h.
Referenced by append_wide_string(), assign_wide_string(), operator+=(), operator+=(), operator+=(), operator+=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), set_encoding(), set_na(), setData(), String(), String(), String(), String(), String(), String(), String(), String(), String(), String(), String(), String(), String(), String(), String(), and ~String().
|
private |
is data in sync with buffer
Definition at line 649 of file String.h.
Referenced by append_wide_string(), assign_wide_string(), get_sexp(), get_sexp(), operator+=(), operator+=(), operator+=(), operator+=(), operator+=(), operator+=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), operator=(), push_back(), push_front(), replace_all(), replace_first(), replace_last(), set_encoding(), set_na(), setData(), and String().