00001 /*************************************************************************** 00002 ofx_util.h 00003 ------------------- 00004 copyright : (C) 2002 by Benoit Grégoire 00005 email : bock@step.polymtl.ca 00006 ***************************************************************************/ 00010 /*************************************************************************** 00011 * * 00012 * This program is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU General Public License as published by * 00014 * the Free Software Foundation; either version 2 of the License, or * 00015 * (at your option) any later version. * 00016 * * 00017 ***************************************************************************/ 00018 #ifndef OFX_UTIL_H 00019 #define OFX_UTIL_H 00020 #include <string.h> 00021 #include "ParserEventGeneratorKit.h" 00022 using namespace std; 00023 /* This file contains various simple functions for type conversion & al */ 00024 00025 /*wostream &operator<<(wostream &os, SGMLApplication::CharString s); */ 00026 00028 ostream &operator<<(ostream &os, SGMLApplication::CharString s); 00029 00031 wchar_t* CharStringtowchar_t(SGMLApplication::CharString source, wchar_t *dest); 00032 00034 string CharStringtostring(const SGMLApplication::CharString source, string &dest); 00035 00037 string AppendCharStringtostring(const SGMLApplication::CharString source, string &dest); 00038 00040 time_t ofxdate_to_time_t(const string ofxdate); 00041 00043 double ofxamount_to_double(const string ofxamount); 00044 00046 string strip_whitespace(const string para_string); 00047 #endif