| 1 | // Generated by using Rcpp::compileAttributes() -> do not edit by hand |
| 2 | // Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 |
| 3 | |
| 4 | #include <Rcpp.h> |
| 5 | |
| 6 | using namespace Rcpp; |
| 7 | |
| 8 | #ifdef RCPP_USE_GLOBAL_ROSTREAM |
| 9 | Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get(); |
| 10 | Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(); |
| 11 | #endif |
| 12 | |
| 13 | // splitLine_cpp |
| 14 | std::string splitLine_cpp(std::string str, int max_width, bool use_hyphening, Rcpp::Function hyphen); |
| 15 | RcppExport SEXP _pander_splitLine_cpp(SEXP strSEXP, SEXP max_widthSEXP, SEXP use_hypheningSEXP, SEXP hyphenSEXP) { |
| 16 | BEGIN_RCPP |
| 17 | Rcpp::RObject rcpp_result_gen; |
| 18 | Rcpp::RNGScope rcpp_rngScope_gen; |
| 19 | Rcpp::traits::input_parameter< std::string >::type str(strSEXP); |
| 20 | Rcpp::traits::input_parameter< int >::type max_width(max_widthSEXP); |
| 21 | Rcpp::traits::input_parameter< bool >::type use_hyphening(use_hypheningSEXP); |
| 22 | Rcpp::traits::input_parameter< Rcpp::Function >::type hyphen(hyphenSEXP); |
| 23 | rcpp_result_gen = Rcpp::wrap(splitLine_cpp(str, max_width, use_hyphening, hyphen)); |
| 24 | return rcpp_result_gen; |
| 25 | END_RCPP |
| 26 | } |
| 27 | // tableExpand_cpp |
| 28 | std::string tableExpand_cpp(CharacterVector cells, IntegerVector colsWidth, CharacterVector justify, CharacterVector sepCols, std::string style); |
| 29 | RcppExport SEXP _pander_tableExpand_cpp(SEXP cellsSEXP, SEXP colsWidthSEXP, SEXP justifySEXP, SEXP sepColsSEXP, SEXP styleSEXP) { |
| 30 | BEGIN_RCPP |
| 31 | Rcpp::RObject rcpp_result_gen; |
| 32 | Rcpp::RNGScope rcpp_rngScope_gen; |
| 33 | Rcpp::traits::input_parameter< CharacterVector >::type cells(cellsSEXP); |
| 34 | Rcpp::traits::input_parameter< IntegerVector >::type colsWidth(colsWidthSEXP); |
| 35 | Rcpp::traits::input_parameter< CharacterVector >::type justify(justifySEXP); |
| 36 | Rcpp::traits::input_parameter< CharacterVector >::type sepCols(sepColsSEXP); |
| 37 | Rcpp::traits::input_parameter< std::string >::type style(styleSEXP); |
| 38 | rcpp_result_gen = Rcpp::wrap(tableExpand_cpp(cells, colsWidth, justify, sepCols, style)); |
| 39 | return rcpp_result_gen; |
| 40 | END_RCPP |
| 41 | } |
| 42 | |
| 43 | static const R_CallMethodDef CallEntries[] = { |
| 44 | {"_pander_splitLine_cpp", (DL_FUNC) &_pander_splitLine_cpp, 4}, |
| 45 | {"_pander_tableExpand_cpp", (DL_FUNC) &_pander_tableExpand_cpp, 5}, |
| 46 | {NULL, NULL, 0} |
| 47 | }; |
| 48 | |
| 49 | RcppExport void R_init_pander(DllInfo *dll) { |
| 50 | R_registerRoutines(dll, NULL, CallEntries, NULL, NULL); |
| 51 | R_useDynamicSymbols(dll, FALSE); |
| 52 | } |