forked from paws-r/paws
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRcppExports.cpp
More file actions
204 lines (198 loc) · 7.89 KB
/
RcppExports.cpp
File metadata and controls
204 lines (198 loc) · 7.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
// Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <Rcpp.h>
using namespace Rcpp;
#ifdef RCPP_USE_GLOBAL_ROSTREAM
Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get();
Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get();
#endif
// paws_url_encoder
CharacterVector paws_url_encoder(CharacterVector urls, CharacterVector safe);
RcppExport SEXP _paws_common_paws_url_encoder(SEXP urlsSEXP, SEXP safeSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< CharacterVector >::type urls(urlsSEXP);
Rcpp::traits::input_parameter< CharacterVector >::type safe(safeSEXP);
rcpp_result_gen = Rcpp::wrap(paws_url_encoder(urls, safe));
return rcpp_result_gen;
END_RCPP
}
// paws_url_unencoder
CharacterVector paws_url_unencoder(CharacterVector urls);
RcppExport SEXP _paws_common_paws_url_unencoder(SEXP urlsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< CharacterVector >::type urls(urlsSEXP);
rcpp_result_gen = Rcpp::wrap(paws_url_unencoder(urls));
return rcpp_result_gen;
END_RCPP
}
// fstring
std::string fstring(const std::string& templateStr, Rcpp::List variables);
RcppExport SEXP _paws_common_fstring(SEXP templateStrSEXP, SEXP variablesSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< const std::string& >::type templateStr(templateStrSEXP);
Rcpp::traits::input_parameter< Rcpp::List >::type variables(variablesSEXP);
rcpp_result_gen = Rcpp::wrap(fstring(templateStr, variables));
return rcpp_result_gen;
END_RCPP
}
// scan_ini_file
std::vector<std::string> scan_ini_file(const std::string& filename);
RcppExport SEXP _paws_common_scan_ini_file(SEXP filenameSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< const std::string& >::type filename(filenameSEXP);
rcpp_result_gen = Rcpp::wrap(scan_ini_file(filename));
return rcpp_result_gen;
END_RCPP
}
// process_profile_name
std::vector<std::string> process_profile_name(const std::vector<std::string>& vec);
RcppExport SEXP _paws_common_process_profile_name(SEXP vecSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< const std::vector<std::string>& >::type vec(vecSEXP);
rcpp_result_gen = Rcpp::wrap(process_profile_name(vec));
return rcpp_result_gen;
END_RCPP
}
// json_build_any
CharacterVector json_build_any(SEXP values);
RcppExport SEXP _paws_common_json_build_any(SEXP valuesSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< SEXP >::type values(valuesSEXP);
rcpp_result_gen = Rcpp::wrap(json_build_any(values));
return rcpp_result_gen;
END_RCPP
}
// json_convert_string
CharacterVector json_convert_string(CharacterVector x);
RcppExport SEXP _paws_common_json_convert_string(SEXP xSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< CharacterVector >::type x(xSEXP);
rcpp_result_gen = Rcpp::wrap(json_convert_string(x));
return rcpp_result_gen;
END_RCPP
}
// check_global
LogicalVector check_global(List endpoint);
RcppExport SEXP _paws_common_check_global(SEXP endpointSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< List >::type endpoint(endpointSEXP);
rcpp_result_gen = Rcpp::wrap(check_global(endpoint));
return rcpp_result_gen;
END_RCPP
}
// get_region_pattern_js
CharacterVector get_region_pattern_js(CharacterVector region_pattern, const std::string& region);
RcppExport SEXP _paws_common_get_region_pattern_js(SEXP region_patternSEXP, SEXP regionSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< CharacterVector >::type region_pattern(region_patternSEXP);
Rcpp::traits::input_parameter< const std::string& >::type region(regionSEXP);
rcpp_result_gen = Rcpp::wrap(get_region_pattern_js(region_pattern, region));
return rcpp_result_gen;
END_RCPP
}
// set_partition_name
std::string set_partition_name(const std::string& region);
RcppExport SEXP _paws_common_set_partition_name(SEXP regionSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< const std::string& >::type region(regionSEXP);
rcpp_result_gen = Rcpp::wrap(set_partition_name(region));
return rcpp_result_gen;
END_RCPP
}
// parse_query_string
List parse_query_string(std::string query);
RcppExport SEXP _paws_common_parse_query_string(SEXP querySEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< std::string >::type query(querySEXP);
rcpp_result_gen = Rcpp::wrap(parse_query_string(query));
return rcpp_result_gen;
END_RCPP
}
// parse_url
Rcpp::List parse_url(const std::string& url);
RcppExport SEXP _paws_common_parse_url(SEXP urlSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< const std::string& >::type url(urlSEXP);
rcpp_result_gen = Rcpp::wrap(parse_url(url));
return rcpp_result_gen;
END_RCPP
}
// build_url
std::string build_url(const Rcpp::List& url_components);
RcppExport SEXP _paws_common_build_url(SEXP url_componentsSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< const Rcpp::List& >::type url_components(url_componentsSEXP);
rcpp_result_gen = Rcpp::wrap(build_url(url_components));
return rcpp_result_gen;
END_RCPP
}
// char_sort
CharacterVector char_sort(CharacterVector str);
RcppExport SEXP _paws_common_char_sort(SEXP strSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< CharacterVector >::type str(strSEXP);
rcpp_result_gen = Rcpp::wrap(char_sort(str));
return rcpp_result_gen;
END_RCPP
}
// uuid_v4
CharacterVector uuid_v4(size_t n);
RcppExport SEXP _paws_common_uuid_v4(SEXP nSEXP) {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
Rcpp::traits::input_parameter< size_t >::type n(nSEXP);
rcpp_result_gen = Rcpp::wrap(uuid_v4(n));
return rcpp_result_gen;
END_RCPP
}
static const R_CallMethodDef CallEntries[] = {
{"_paws_common_paws_url_encoder", (DL_FUNC) &_paws_common_paws_url_encoder, 2},
{"_paws_common_paws_url_unencoder", (DL_FUNC) &_paws_common_paws_url_unencoder, 1},
{"_paws_common_fstring", (DL_FUNC) &_paws_common_fstring, 2},
{"_paws_common_scan_ini_file", (DL_FUNC) &_paws_common_scan_ini_file, 1},
{"_paws_common_process_profile_name", (DL_FUNC) &_paws_common_process_profile_name, 1},
{"_paws_common_json_build_any", (DL_FUNC) &_paws_common_json_build_any, 1},
{"_paws_common_json_convert_string", (DL_FUNC) &_paws_common_json_convert_string, 1},
{"_paws_common_check_global", (DL_FUNC) &_paws_common_check_global, 1},
{"_paws_common_get_region_pattern_js", (DL_FUNC) &_paws_common_get_region_pattern_js, 2},
{"_paws_common_set_partition_name", (DL_FUNC) &_paws_common_set_partition_name, 1},
{"_paws_common_parse_query_string", (DL_FUNC) &_paws_common_parse_query_string, 1},
{"_paws_common_parse_url", (DL_FUNC) &_paws_common_parse_url, 1},
{"_paws_common_build_url", (DL_FUNC) &_paws_common_build_url, 1},
{"_paws_common_char_sort", (DL_FUNC) &_paws_common_char_sort, 1},
{"_paws_common_uuid_v4", (DL_FUNC) &_paws_common_uuid_v4, 1},
{NULL, NULL, 0}
};
RcppExport void R_init_paws_common(DllInfo *dll) {
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
}