CXXR (C++ R)
Namespaces | Functions | Variables

CachedString.cpp File Reference

($Id: CachedString.cpp 1275 2012-03-17 14:01:29Z arr $)

#include "CXXR/CachedString.h"
#include "CXXR/errors.h"
Include dependency graph for CachedString.cpp:

Namespaces

namespace  CXXR
 

Namespace for the CXXR project.


Functions

SEXP Rf_mkCharLenCE (const char *text, int length, cetype_t encoding)
 Create a CXXR::UncachedString object for specified text and encoding.

Variables

int(* CXXR::ForceNonInline::IS_CACHEDp )(SEXP) = IS_CACHED
SEXP(* CXXR::ForceNonInline::mkCharp )(const char *) = Rf_mkChar
SEXP(* CXXR::ForceNonInline::mkCharCEp )(const char *, cetype_t) = Rf_mkCharCE
SEXP(* CXXR::ForceNonInline::Rf_mkCharLenp )(const char *, int) = Rf_mkCharLen
SEXP R_BlankString = 0

Detailed Description

Implementation of class CXXR::CachedString and related functions.


Function Documentation

SEXP Rf_mkCharLenCE ( const char *  text,
int  length,
cetype_t  encoding 
)

Create a CXXR::UncachedString object for specified text and encoding.

Parameters:
textThe text of the string to be created, possibly including embedded null characters. The encoding is assumed to be CE_NATIVE.
lengthThe length of the string pointed to by text. Must be nonnegative. The created string will comprise the text plus an appended null byte.
encodingThe encoding of the required CachedString. Only CE_NATIVE, CE_UTF8 or CE_LATIN1 are permitted in this context (checked).
Returns:
Pointer to the created string.