~mterry/ubuntu/natty/libofx/libofx.new-upstream-benoit-sru

« back to all changes in this revision

Viewing changes to doc/html/ofx__utilities_8cpp.html

  • Committer: Bazaar Package Importer
  • Author(s): Saïvann Carignan
  • Date: 2008-02-06 17:25:16 UTC
  • mto: (3.1.2 lenny)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20080206172516-bnzxb29igye8um9h
Tags: upstream-0.9.0
Import upstream version 0.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
 
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
 
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
3
<title>LibOFX: ofx_utilities.cpp File Reference</title>
4
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
5
<link href="tabs.css" rel="stylesheet" type="text/css">
6
6
</head><body>
7
 
<!-- Generated by Doxygen 1.4.6 -->
 
7
<!-- Generated by Doxygen 1.5.3 -->
8
8
<div class="tabs">
9
9
  <ul>
10
10
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
11
11
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
12
12
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
13
 
    <li id="current"><a href="files.html"><span>Files</span></a></li>
14
 
  </ul></div>
15
 
<div class="tabs">
16
 
  <ul>
17
 
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
18
 
    <li><a href="globals.html"><span>Globals</span></a></li>
19
 
  </ul></div>
 
13
    <li class="current"><a href="files.html"><span>Files</span></a></li>
 
14
  </ul>
 
15
</div>
20
16
<h1>ofx_utilities.cpp File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
21
17
Various simple functions for type conversion &amp; al. 
22
18
<p>
23
19
 
24
 
<p>
25
 
Definition in file <a class="el" href="ofx__utilities_8cpp-source.html">ofx_utilities.cpp</a>.
 
20
<p>Definition in file <a class="el" href="ofx__utilities_8cpp-source.html">ofx_utilities.cpp</a>.</p>
 
21
 
26
22
<p>
27
23
 
28
24
<p>
29
25
<a href="ofx__utilities_8cpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
30
26
<tr><td></td></tr>
 
27
<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
 
28
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2c89f3449c0cc91f289ecbef54188d8d"></a><!-- doxytag: member="ofx_utilities.cpp::DIRSEP" ref="2c89f3449c0cc91f289ecbef54188d8d" args="" -->
 
29
#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ofx__utilities_8cpp.html#2c89f3449c0cc91f289ecbef54188d8d">DIRSEP</a>&nbsp;&nbsp;&nbsp;&quot;/&quot;</td></tr>
 
30
 
31
31
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
32
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ofx__utilities_8cpp.html#0d78db2f18e9d8b4a9916b90819d073e">CharStringtostring</a> (const SGMLApplication::CharString source, string &amp;dest)</td></tr>
 
32
<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ofx__utilities_8cpp.html#e7575392f9f9c464ede10057dec0e8e4">CharStringtostring</a> (const SGMLApplication::CharString source, string &amp;dest)</td></tr>
33
33
 
34
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert OpenSP CharString to a C++ STL string.  <a href="#0d78db2f18e9d8b4a9916b90819d073e"></a><br></td></tr>
35
 
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f54953e915499daefb8959d8b15fa6f0"></a><!-- doxytag: member="ofx_utilities.cpp::AppendCharStringtostring" ref="f54953e915499daefb8959d8b15fa6f0" args="(const SGMLApplication::CharString source, string &amp;dest)" -->
36
 
string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ofx__utilities_8cpp.html#f54953e915499daefb8959d8b15fa6f0">AppendCharStringtostring</a> (const SGMLApplication::CharString source, string &amp;dest)</td></tr>
 
34
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert OpenSP CharString to a C++ STL string.  <a href="#e7575392f9f9c464ede10057dec0e8e4"></a><br></td></tr>
 
35
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="50b88c84b759d3058397336e7ea42c32"></a><!-- doxytag: member="ofx_utilities.cpp::AppendCharStringtostring" ref="50b88c84b759d3058397336e7ea42c32" args="(const SGMLApplication::CharString source, string &amp;dest)" -->
 
36
string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ofx__utilities_8cpp.html#50b88c84b759d3058397336e7ea42c32">AppendCharStringtostring</a> (const SGMLApplication::CharString source, string &amp;dest)</td></tr>
37
37
 
38
38
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Append an OpenSP CharString to an existing C++ STL string. <br></td></tr>
39
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">time_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ofx__utilities_8cpp.html#a82c89f166fafe7ac376f2ecc7f1059a">ofxdate_to_time_t</a> (const string ofxdate)</td></tr>
40
 
 
41
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert a C++ string containing a time in OFX format to a C time_t.  <a href="#a82c89f166fafe7ac376f2ecc7f1059a"></a><br></td></tr>
42
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ofx__utilities_8cpp.html#ca59f589043d9d418168b8092809d0a1">ofxamount_to_double</a> (const string ofxamount)</td></tr>
43
 
 
44
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert OFX amount of money to double float.  <a href="#ca59f589043d9d418168b8092809d0a1"></a><br></td></tr>
45
 
<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ofx__utilities_8cpp.html#eb4379d3bf0c6900bda8b5f2feb9db92">strip_whitespace</a> (const string para_string)</td></tr>
46
 
 
47
 
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sanitize a string coming from OpenSP.  <a href="#eb4379d3bf0c6900bda8b5f2feb9db92"></a><br></td></tr>
 
39
<tr><td class="memItemLeft" nowrap align="right" valign="top">time_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ofx__utilities_8cpp.html#5fdbbc08f8d80a534f8db03d25316d7a">ofxdate_to_time_t</a> (const string ofxdate)</td></tr>
 
40
 
 
41
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert a C++ string containing a time in OFX format to a C time_t.  <a href="#5fdbbc08f8d80a534f8db03d25316d7a"></a><br></td></tr>
 
42
<tr><td class="memItemLeft" nowrap align="right" valign="top">double&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ofx__utilities_8cpp.html#bfca5b423e5d7b194eb53c53f706f6ba">ofxamount_to_double</a> (const string ofxamount)</td></tr>
 
43
 
 
44
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert OFX amount of money to double float.  <a href="#bfca5b423e5d7b194eb53c53f706f6ba"></a><br></td></tr>
 
45
<tr><td class="memItemLeft" nowrap align="right" valign="top">string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ofx__utilities_8cpp.html#34933785dd934134973847e58a700733">strip_whitespace</a> (const string para_string)</td></tr>
 
46
 
 
47
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sanitize a string coming from OpenSP.  <a href="#34933785dd934134973847e58a700733"></a><br></td></tr>
 
48
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a0e945c824a3012017b4babd721d9f38"></a><!-- doxytag: member="ofx_utilities.cpp::mkTempFileName" ref="a0e945c824a3012017b4babd721d9f38" args="(const char *tmpl, char *buffer, unsigned int size)" -->
 
49
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="ofx__utilities_8cpp.html#a0e945c824a3012017b4babd721d9f38">mkTempFileName</a> (const char *tmpl, char *buffer, unsigned int size)</td></tr>
 
50
 
48
51
</table>
49
52
<hr><h2>Function Documentation</h2>
50
 
<a class="anchor" name="0d78db2f18e9d8b4a9916b90819d073e"></a><!-- doxytag: member="ofx_utilities.cpp::CharStringtostring" ref="0d78db2f18e9d8b4a9916b90819d073e" args="(const SGMLApplication::CharString source, string &amp;dest)" --><p>
51
 
<table class="mdTable" cellpadding="2" cellspacing="0">
52
 
  <tr>
53
 
    <td class="mdRow">
54
 
      <table cellpadding="0" cellspacing="0" border="0">
55
 
        <tr>
56
 
          <td class="md" nowrap valign="top">string CharStringtostring           </td>
57
 
          <td class="md" valign="top">(&nbsp;</td>
58
 
          <td class="md" nowrap valign="top">const SGMLApplication::CharString&nbsp;</td>
59
 
          <td class="mdname" nowrap> <em>source</em>, </td>
60
 
        </tr>
61
 
        <tr>
62
 
          <td class="md" nowrap align="right"></td>
63
 
          <td class="md"></td>
64
 
          <td class="md" nowrap>string &amp;&nbsp;</td>
65
 
          <td class="mdname" nowrap> <em>dest</em></td>
66
 
        </tr>
67
 
        <tr>
68
 
          <td class="md"></td>
69
 
          <td class="md">)&nbsp;</td>
70
 
          <td class="md" colspan="2"></td>
 
53
<a class="anchor" name="e7575392f9f9c464ede10057dec0e8e4"></a><!-- doxytag: member="ofx_utilities.cpp::CharStringtostring" ref="e7575392f9f9c464ede10057dec0e8e4" args="(const SGMLApplication::CharString source, string &amp;dest)" -->
 
54
<div class="memitem">
 
55
<div class="memproto">
 
56
      <table class="memname">
 
57
        <tr>
 
58
          <td class="memname">string CharStringtostring           </td>
 
59
          <td>(</td>
 
60
          <td class="paramtype">const SGMLApplication::CharString&nbsp;</td>
 
61
          <td class="paramname"> <em>source</em>, </td>
 
62
        </tr>
 
63
        <tr>
 
64
          <td class="paramkey"></td>
 
65
          <td></td>
 
66
          <td class="paramtype">string &amp;&nbsp;</td>
 
67
          <td class="paramname"> <em>dest</em></td><td>&nbsp;</td>
 
68
        </tr>
 
69
        <tr>
 
70
          <td></td>
 
71
          <td>)</td>
 
72
          <td></td><td></td><td width="100%"></td>
71
73
        </tr>
72
74
      </table>
73
 
    </td>
74
 
  </tr>
75
 
</table>
76
 
<table cellspacing="5" cellpadding="0" border="0">
77
 
  <tr>
78
 
    <td>
79
 
      &nbsp;
80
 
    </td>
81
 
    <td>
 
75
</div>
 
76
<div class="memdoc">
82
77
 
83
78
<p>
84
79
Convert OpenSP CharString to a C++ STL string. 
85
80
<p>
86
81
Convert an OpenSP CharString directly to a C++ stream, to enable the use of cout directly for debugging. 
87
 
<p>
88
 
Definition at line <a class="el" href="ofx__utilities_8cpp-source.html#l00060">60</a> of file <a class="el" href="ofx__utilities_8cpp-source.html">ofx_utilities.cpp</a>.
89
 
<p>
90
 
Referenced by <a class="el" href="ofx__sgml_8cpp-source.html#l00211">OFXApplication::endElement()</a>, <a class="el" href="ofc__sgml_8cpp-source.html#l00204">OFCApplication::endElement()</a>, <a class="el" href="ofx__sgml_8cpp-source.html#l00295">OFXApplication::error()</a>, <a class="el" href="ofc__sgml_8cpp-source.html#l00288">OFCApplication::error()</a>, <a class="el" href="ofx__sgml_8cpp-source.html#l00071">OFXApplication::startElement()</a>, and <a class="el" href="ofc__sgml_8cpp-source.html#l00064">OFCApplication::startElement()</a>.    </td>
91
 
  </tr>
92
 
</table>
93
 
<a class="anchor" name="ca59f589043d9d418168b8092809d0a1"></a><!-- doxytag: member="ofx_utilities.cpp::ofxamount_to_double" ref="ca59f589043d9d418168b8092809d0a1" args="(const string ofxamount)" --><p>
94
 
<table class="mdTable" cellpadding="2" cellspacing="0">
95
 
  <tr>
96
 
    <td class="mdRow">
97
 
      <table cellpadding="0" cellspacing="0" border="0">
 
82
<p>Definition at line <a class="el" href="ofx__utilities_8cpp-source.html#l00069">69</a> of file <a class="el" href="ofx__utilities_8cpp-source.html">ofx_utilities.cpp</a>.</p>
 
83
 
 
84
<p>Referenced by <a class="el" href="ofx__sgml_8cpp-source.html#l00211">OFXApplication::endElement()</a>, <a class="el" href="ofc__sgml_8cpp-source.html#l00204">OFCApplication::endElement()</a>, <a class="el" href="ofx__sgml_8cpp-source.html#l00295">OFXApplication::error()</a>, <a class="el" href="ofc__sgml_8cpp-source.html#l00288">OFCApplication::error()</a>, <a class="el" href="ofx__sgml_8cpp-source.html#l00071">OFXApplication::startElement()</a>, and <a class="el" href="ofc__sgml_8cpp-source.html#l00064">OFCApplication::startElement()</a>.</p>
 
85
 
 
86
</div>
 
87
</div><p>
 
88
<a class="anchor" name="bfca5b423e5d7b194eb53c53f706f6ba"></a><!-- doxytag: member="ofx_utilities.cpp::ofxamount_to_double" ref="bfca5b423e5d7b194eb53c53f706f6ba" args="(const string ofxamount)" -->
 
89
<div class="memitem">
 
90
<div class="memproto">
 
91
      <table class="memname">
98
92
        <tr>
99
 
          <td class="md" nowrap valign="top">double ofxamount_to_double           </td>
100
 
          <td class="md" valign="top">(&nbsp;</td>
101
 
          <td class="md" nowrap valign="top">const string&nbsp;</td>
102
 
          <td class="mdname1" valign="top" nowrap> <em>ofxamount</em>          </td>
103
 
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
104
 
          <td class="md" nowrap></td>
 
93
          <td class="memname">double ofxamount_to_double           </td>
 
94
          <td>(</td>
 
95
          <td class="paramtype">const string&nbsp;</td>
 
96
          <td class="paramname"> <em>ofxamount</em>          </td>
 
97
          <td>&nbsp;)&nbsp;</td>
 
98
          <td width="100%"></td>
105
99
        </tr>
106
100
      </table>
107
 
    </td>
108
 
  </tr>
109
 
</table>
110
 
<table cellspacing="5" cellpadding="0" border="0">
111
 
  <tr>
112
 
    <td>
113
 
      &nbsp;
114
 
    </td>
115
 
    <td>
 
101
</div>
 
102
<div class="memdoc">
116
103
 
117
104
<p>
118
105
Convert OFX amount of money to double float. 
119
106
<p>
120
 
Convert a C++ string containing an amount of money as specified by the OFX standard and convert it to a double float. <dl compact><dt><b>Note:</b></dt><dd>The ofx number format is the following: "." or "," as decimal separator, NO thousands separator. </dd></dl>
121
 
 
122
 
<p>
123
 
Definition at line <a class="el" href="ofx__utilities_8cpp-source.html#l00165">165</a> of file <a class="el" href="ofx__utilities_8cpp-source.html">ofx_utilities.cpp</a>.
124
 
<p>
125
 
Referenced by <a class="el" href="ofx__containers__misc_8cpp-source.html#l00156">OfxBalanceContainer::add_attribute()</a>, <a class="el" href="ofx__container__transaction_8cpp-source.html#l00333">OfxInvestmentTransactionContainer::add_attribute()</a>, <a class="el" href="ofx__container__transaction_8cpp-source.html#l00161">OfxBankTransactionContainer::add_attribute()</a>, and <a class="el" href="ofx__container__security_8cpp-source.html#l00045">OfxSecurityContainer::add_attribute()</a>.    </td>
126
 
  </tr>
127
 
</table>
128
 
<a class="anchor" name="a82c89f166fafe7ac376f2ecc7f1059a"></a><!-- doxytag: member="ofx_utilities.cpp::ofxdate_to_time_t" ref="a82c89f166fafe7ac376f2ecc7f1059a" args="(const string ofxdate)" --><p>
129
 
<table class="mdTable" cellpadding="2" cellspacing="0">
130
 
  <tr>
131
 
    <td class="mdRow">
132
 
      <table cellpadding="0" cellspacing="0" border="0">
 
107
Convert a C++ string containing an amount of money as specified by the OFX standard and convert it to a double float. <dl class="note" compact><dt><b>Note:</b></dt><dd>The ofx number format is the following: "." or "," as decimal separator, NO thousands separator. </dd></dl>
 
108
 
 
109
<p>Definition at line <a class="el" href="ofx__utilities_8cpp-source.html#l00174">174</a> of file <a class="el" href="ofx__utilities_8cpp-source.html">ofx_utilities.cpp</a>.</p>
 
110
 
 
111
<p>Referenced by <a class="el" href="ofx__containers__misc_8cpp-source.html#l00156">OfxBalanceContainer::add_attribute()</a>, <a class="el" href="ofx__container__transaction_8cpp-source.html#l00333">OfxInvestmentTransactionContainer::add_attribute()</a>, <a class="el" href="ofx__container__transaction_8cpp-source.html#l00161">OfxBankTransactionContainer::add_attribute()</a>, and <a class="el" href="ofx__container__security_8cpp-source.html#l00045">OfxSecurityContainer::add_attribute()</a>.</p>
 
112
 
 
113
</div>
 
114
</div><p>
 
115
<a class="anchor" name="5fdbbc08f8d80a534f8db03d25316d7a"></a><!-- doxytag: member="ofx_utilities.cpp::ofxdate_to_time_t" ref="5fdbbc08f8d80a534f8db03d25316d7a" args="(const string ofxdate)" -->
 
116
<div class="memitem">
 
117
<div class="memproto">
 
118
      <table class="memname">
133
119
        <tr>
134
 
          <td class="md" nowrap valign="top">time_t ofxdate_to_time_t           </td>
135
 
          <td class="md" valign="top">(&nbsp;</td>
136
 
          <td class="md" nowrap valign="top">const string&nbsp;</td>
137
 
          <td class="mdname1" valign="top" nowrap> <em>ofxdate</em>          </td>
138
 
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
139
 
          <td class="md" nowrap></td>
 
120
          <td class="memname">time_t ofxdate_to_time_t           </td>
 
121
          <td>(</td>
 
122
          <td class="paramtype">const string&nbsp;</td>
 
123
          <td class="paramname"> <em>ofxdate</em>          </td>
 
124
          <td>&nbsp;)&nbsp;</td>
 
125
          <td width="100%"></td>
140
126
        </tr>
141
127
      </table>
142
 
    </td>
143
 
  </tr>
144
 
</table>
145
 
<table cellspacing="5" cellpadding="0" border="0">
146
 
  <tr>
147
 
    <td>
148
 
      &nbsp;
149
 
    </td>
150
 
    <td>
 
128
</div>
 
129
<div class="memdoc">
151
130
 
152
131
<p>
153
132
Convert a C++ string containing a time in OFX format to a C time_t. 
157
136
    <tr><td valign="top"></td><td valign="top"><em>ofxdate</em>&nbsp;</td><td>date from the YYYYMMDDHHMMSS.XXX[gmt offset:tz name] OFX format </td></tr>
158
137
  </table>
159
138
</dl>
160
 
<dl compact><dt><b>Returns:</b></dt><dd>C time_t in the local time zone </dd></dl>
161
 
<dl compact><dt><b>Note:</b></dt><dd><ul>
 
139
<dl class="return" compact><dt><b>Returns:</b></dt><dd>C time_t in the local time zone </dd></dl>
 
140
<dl class="note" compact><dt><b>Note:</b></dt><dd><ul>
162
141
<li>The library always returns the time in the systems local time </li>
163
142
<li>OFX defines the date up to the millisecond. The library ignores those milliseconds, since ANSI C does not handle such precision cleanly. The date provided by LibOFX is precise to the second, assuming that information this precise was provided in the ofx file. So you wont know the millisecond you were ruined...</li>
164
143
</ul>
173
152
<br>
174
153
 -When a timezone is specified, it is always used to properly convert in local time, following the spec. </dd></dl>
175
154
 
176
 
<p>
177
 
Definition at line <a class="el" href="ofx__utilities_8cpp-source.html#l00097">97</a> of file <a class="el" href="ofx__utilities_8cpp-source.html">ofx_utilities.cpp</a>.
178
 
<p>
179
 
Referenced by <a class="el" href="ofx__containers__misc_8cpp-source.html#l00156">OfxBalanceContainer::add_attribute()</a>, <a class="el" href="ofx__container__transaction_8cpp-source.html#l00333">OfxInvestmentTransactionContainer::add_attribute()</a>, <a class="el" href="ofx__container__transaction_8cpp-source.html#l00093">OfxTransactionContainer::add_attribute()</a>, <a class="el" href="ofx__container__statement_8cpp-source.html#l00050">OfxStatementContainer::add_attribute()</a>, and <a class="el" href="ofx__container__security_8cpp-source.html#l00045">OfxSecurityContainer::add_attribute()</a>.    </td>
180
 
  </tr>
181
 
</table>
182
 
<a class="anchor" name="eb4379d3bf0c6900bda8b5f2feb9db92"></a><!-- doxytag: member="ofx_utilities.cpp::strip_whitespace" ref="eb4379d3bf0c6900bda8b5f2feb9db92" args="(const string para_string)" --><p>
183
 
<table class="mdTable" cellpadding="2" cellspacing="0">
184
 
  <tr>
185
 
    <td class="mdRow">
186
 
      <table cellpadding="0" cellspacing="0" border="0">
 
155
<p>Definition at line <a class="el" href="ofx__utilities_8cpp-source.html#l00106">106</a> of file <a class="el" href="ofx__utilities_8cpp-source.html">ofx_utilities.cpp</a>.</p>
 
156
 
 
157
<p>Referenced by <a class="el" href="ofx__containers__misc_8cpp-source.html#l00156">OfxBalanceContainer::add_attribute()</a>, <a class="el" href="ofx__container__transaction_8cpp-source.html#l00333">OfxInvestmentTransactionContainer::add_attribute()</a>, <a class="el" href="ofx__container__transaction_8cpp-source.html#l00093">OfxTransactionContainer::add_attribute()</a>, <a class="el" href="ofx__container__statement_8cpp-source.html#l00050">OfxStatementContainer::add_attribute()</a>, and <a class="el" href="ofx__container__security_8cpp-source.html#l00045">OfxSecurityContainer::add_attribute()</a>.</p>
 
158
 
 
159
</div>
 
160
</div><p>
 
161
<a class="anchor" name="34933785dd934134973847e58a700733"></a><!-- doxytag: member="ofx_utilities.cpp::strip_whitespace" ref="34933785dd934134973847e58a700733" args="(const string para_string)" -->
 
162
<div class="memitem">
 
163
<div class="memproto">
 
164
      <table class="memname">
187
165
        <tr>
188
 
          <td class="md" nowrap valign="top">string strip_whitespace           </td>
189
 
          <td class="md" valign="top">(&nbsp;</td>
190
 
          <td class="md" nowrap valign="top">const string&nbsp;</td>
191
 
          <td class="mdname1" valign="top" nowrap> <em>para_string</em>          </td>
192
 
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
193
 
          <td class="md" nowrap></td>
 
166
          <td class="memname">string strip_whitespace           </td>
 
167
          <td>(</td>
 
168
          <td class="paramtype">const string&nbsp;</td>
 
169
          <td class="paramname"> <em>para_string</em>          </td>
 
170
          <td>&nbsp;)&nbsp;</td>
 
171
          <td width="100%"></td>
194
172
        </tr>
195
173
      </table>
196
 
    </td>
197
 
  </tr>
198
 
</table>
199
 
<table cellspacing="5" cellpadding="0" border="0">
200
 
  <tr>
201
 
    <td>
202
 
      &nbsp;
203
 
    </td>
204
 
    <td>
 
174
</div>
 
175
<div class="memdoc">
205
176
 
206
177
<p>
207
178
Sanitize a string coming from OpenSP. 
208
179
<p>
209
180
Many weird caracters can be present inside a SGML element, as a result on the transfer protocol, or for any reason. This function greatly enhances the reliability of the library by zapping those gremlins (backspace,formfeed,newline,carriage return, horizontal and vertical tabs) as well as removing whitespace at the begining and end of the string. Otherwise, many problems will occur during stringmatching. 
210
 
<p>
211
 
Definition at line <a class="el" href="ofx__utilities_8cpp-source.html#l00186">186</a> of file <a class="el" href="ofx__utilities_8cpp-source.html">ofx_utilities.cpp</a>.
212
 
<p>
213
 
Referenced by <a class="el" href="ofx__sgml_8cpp-source.html#l00211">OFXApplication::endElement()</a>, and <a class="el" href="ofc__sgml_8cpp-source.html#l00204">OFCApplication::endElement()</a>.    </td>
214
 
  </tr>
215
 
</table>
216
 
<hr size="1"><address style="align: right;"><small>Generated on Fri Aug 25 13:25:22 2006 for LibOFX by&nbsp;
 
181
<p>Definition at line <a class="el" href="ofx__utilities_8cpp-source.html#l00195">195</a> of file <a class="el" href="ofx__utilities_8cpp-source.html">ofx_utilities.cpp</a>.</p>
 
182
 
 
183
<p>Referenced by <a class="el" href="ofx__sgml_8cpp-source.html#l00211">OFXApplication::endElement()</a>, and <a class="el" href="ofc__sgml_8cpp-source.html#l00204">OFCApplication::endElement()</a>.</p>
 
184
 
 
185
</div>
 
186
</div><p>
 
187
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Nov 19 20:28:00 2007 for LibOFX by&nbsp;
217
188
<a href="http://www.doxygen.org/index.html">
218
 
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
 
189
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
219
190
</body>
220
191
</html>