23 #include "ParserEventGeneratorKit.h"
35 void 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
55 std::ostream &
operator<<(std::ostream &os, SGMLApplication::CharString s);
61 std::string
CharStringtostring(
const SGMLApplication::CharString source, std::string &dest);
75 int 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.
std::string CharStringtostring(const SGMLApplication::CharString source, std::string &dest)
Convert OpenSP CharString to a C++ STL string.
void STRNCPY(T &dest, const std::string &src)
std::string AppendCharStringtostring(const SGMLApplication::CharString source, std::string &dest)
Append an OpenSP CharString to an existing C++ STL string.
std::string strip_whitespace(const std::string para_string)
Sanitize a string coming from OpenSP.
std::ostream & operator<<(std::ostream &os, SGMLApplication::CharString s)
Convert OpenSP CharString to a C++ stream.
double ofxamount_to_double(const std::string ofxamount)
Convert OFX amount of money to double float.
time_t ofxdate_to_time_t(const std::string &ofxdate)
Convert a C++ string containing a time in OFX format to a C time_t.