Menu

[r2392]: / framework / trunk / tests / test_plugin_so.cpp  Maximize  Restore  History

Download this file

15 lines (12 with data), 250 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#include <cppcms/plugin.h>
#include <ctype.h>
struct foo {
static std::string lower(std::string f)
{
for(size_t i=0;i<f.size();i++) {
f[i]=tolower(f[i]);
}
return f;
}
};
CPPCMS_PLUGIN_ENTRY(std::string(std::string const &),foo::lower)
MongoDB Logo MongoDB