File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,16 @@ std::vector<std::tuple<double,double>> make_tuple_vector()
66
66
return result;
67
67
}
68
68
69
+ std::string catstrings (jlcxx::ArrayRef<const char *> strings)
70
+ {
71
+ std::string result;
72
+ for (const char * s : strings)
73
+ {
74
+ result += std::string (s);
75
+ }
76
+ return result;
77
+ }
78
+
69
79
JLCXX_MODULE define_julia_module (jlcxx::Module& containers)
70
80
{
71
81
using namespace jlcxx ;
@@ -133,4 +143,5 @@ JLCXX_MODULE define_julia_module(jlcxx::Module& containers)
133
143
containers.method (" make_array_tuple" , &make_array_tuple);
134
144
containers.method (" read_array_tuple" , &read_array_tuple);
135
145
containers.method (" make_tuple_vector" , &make_tuple_vector);
146
+ containers.method (" catstrings" , &catstrings);
136
147
}
You can’t perform that action at this time.
0 commit comments