blob: ba216b13fd0ead4cdcee6bb70cfdc8ecf2b354f2 (
plain)
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
|
%{
#include "stringmgr.h"
class PyStringMgr : public sword::StringMgr
{
public:
char *upperUTF8(char *text, unsigned int max = 0) const
{
sword::SWBuf buf=(const char*)text;
getUpper(&buf);
strncpy(text, buf.c_str(), (max) ? max : strlen(text));
return text;
}
virtual void getUpper(sword::SWBuf* test) const = 0;
};
%}
%include "stringmgr.h"
class PyStringMgr : public sword::StringMgr
{
public:
char *upperUTF8(char *text, unsigned int max = 0) const;
virtual void getUpper(sword::SWBuf* test) const = 0;
};
|