23#include "ParserEventGeneratorKit.h"
35void STRNCPY(T& dest,
const std::string& src)
37 std::strncpy(dest, src.c_str(),
sizeof(dest));
45#define ASSIGN(DEST, VALUE) DEST = (VALUE); DEST ## _valid = true
52#define ASSIGN_STRNCPY(DEST, VALUE) STRNCPY(DEST, VALUE); DEST ## _valid = true
55ostream &
operator<<(ostream &os, SGMLApplication::CharString s);
75int mkTempFileName(
const char *tmpl,
char *buffer,
unsigned int size);
wchar_t * CharStringtowchar_t(SGMLApplication::CharString source, wchar_t *dest)
Convert OpenSP CharString and put it in the C wchar_t string provided.
string strip_whitespace(const string para_string)
Sanitize a string coming from OpenSP.
void STRNCPY(T &dest, const std::string &src)
string AppendCharStringtostring(const SGMLApplication::CharString source, string &dest)
Append an OpenSP CharString to an existing C++ STL string.
ostream & operator<<(ostream &os, SGMLApplication::CharString s)
Convert OpenSP CharString to a C++ stream.
time_t ofxdate_to_time_t(const string &ofxdate)
Convert a C++ string containing a time in OFX format to a C time_t.
double ofxamount_to_double(const string ofxamount)
Convert OFX amount of money to double float.
string CharStringtostring(const SGMLApplication::CharString source, string &dest)
Convert OpenSP CharString to a C++ STL string.