1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
|
---|
2 | <html>
|
---|
3 | <head>
|
---|
4 | <meta name="GENERATOR" content="PasDoc 0.9.0">
|
---|
5 | <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
|
---|
6 | <title>synautil</title>
|
---|
7 | <link rel="StyleSheet" type="text/css" href="pasdoc.css">
|
---|
8 | </head>
|
---|
9 | <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
|
---|
10 | <h1 class="unit">Unit synautil</h1>
|
---|
11 | <table class="sections">
|
---|
12 | <tr>
|
---|
13 | <td><a class="section" href="#@Description">Description</a></td><td><a class="section" href="#@Uses">uses</a></td><td>Classes, Interfaces, Objects and Records</td><td><a class="section" href="#@FuncsProcs">Functions and Procedures</a></td><td>Types</td><td>Constants</td><td><a class="section" href="#@Variables">Variables</a></td></tr></table>
|
---|
14 | <a name="@Description"></a><h2 class="description">Description</h2>
|
---|
15 | <a name="@Uses"></a><h2 class="uses">uses</h2>
|
---|
16 | <ul class="useslist"><li>Windows</li><li>SysUtils</li><li>Classes</li><li><a href="synafpc.html">SynaFpc</a></li></ul><h2 class="overview">Overview</h2>
|
---|
17 | <a name="@FuncsProcs"></a><h3 class="summary">Functions and Procedures</h3>
|
---|
18 | <table class="summary">
|
---|
19 | <tr class="list">
|
---|
20 | <td class="itemcode"><code>function <b><a href="synautil.html#TimeZoneBias">TimeZoneBias</a></b>: integer;</code></td>
|
---|
21 | </tr>
|
---|
22 | <tr class="list2">
|
---|
23 | <td class="itemcode"><code>function <b><a href="synautil.html#TimeZone">TimeZone</a></b>: string;</code></td>
|
---|
24 | </tr>
|
---|
25 | <tr class="list">
|
---|
26 | <td class="itemcode"><code>function <b><a href="synautil.html#Rfc822DateTime">Rfc822DateTime</a></b>(t: TDateTime): string;</code></td>
|
---|
27 | </tr>
|
---|
28 | <tr class="list2">
|
---|
29 | <td class="itemcode"><code>function <b><a href="synautil.html#CDateTime">CDateTime</a></b>(t: TDateTime): string;</code></td>
|
---|
30 | </tr>
|
---|
31 | <tr class="list">
|
---|
32 | <td class="itemcode"><code>function <b><a href="synautil.html#SimpleDateTime">SimpleDateTime</a></b>(t: TDateTime): string;</code></td>
|
---|
33 | </tr>
|
---|
34 | <tr class="list2">
|
---|
35 | <td class="itemcode"><code>function <b><a href="synautil.html#AnsiCDateTime">AnsiCDateTime</a></b>(t: TDateTime): string;</code></td>
|
---|
36 | </tr>
|
---|
37 | <tr class="list">
|
---|
38 | <td class="itemcode"><code>function <b><a href="synautil.html#GetMonthNumber">GetMonthNumber</a></b>(Value: String): integer;</code></td>
|
---|
39 | </tr>
|
---|
40 | <tr class="list2">
|
---|
41 | <td class="itemcode"><code>function <b><a href="synautil.html#GetTimeFromStr">GetTimeFromStr</a></b>(Value: string): TDateTime;</code></td>
|
---|
42 | </tr>
|
---|
43 | <tr class="list">
|
---|
44 | <td class="itemcode"><code>function <b><a href="synautil.html#GetDateMDYFromStr">GetDateMDYFromStr</a></b>(Value: string): TDateTime;</code></td>
|
---|
45 | </tr>
|
---|
46 | <tr class="list2">
|
---|
47 | <td class="itemcode"><code>function <b><a href="synautil.html#DecodeRfcDateTime">DecodeRfcDateTime</a></b>(Value: string): TDateTime;</code></td>
|
---|
48 | </tr>
|
---|
49 | <tr class="list">
|
---|
50 | <td class="itemcode"><code>function <b><a href="synautil.html#GetUTTime">GetUTTime</a></b>: TDateTime;</code></td>
|
---|
51 | </tr>
|
---|
52 | <tr class="list2">
|
---|
53 | <td class="itemcode"><code>function <b><a href="synautil.html#SetUTTime">SetUTTime</a></b>(Newdt: TDateTime): Boolean;</code></td>
|
---|
54 | </tr>
|
---|
55 | <tr class="list">
|
---|
56 | <td class="itemcode"><code>function <b><a href="synautil.html#GetTick">GetTick</a></b>: LongWord;</code></td>
|
---|
57 | </tr>
|
---|
58 | <tr class="list2">
|
---|
59 | <td class="itemcode"><code>function <b><a href="synautil.html#TickDelta">TickDelta</a></b>(TickOld, TickNew: LongWord): LongWord;</code></td>
|
---|
60 | </tr>
|
---|
61 | <tr class="list">
|
---|
62 | <td class="itemcode"><code>function <b><a href="synautil.html#CodeInt">CodeInt</a></b>(Value: Word): Ansistring;</code></td>
|
---|
63 | </tr>
|
---|
64 | <tr class="list2">
|
---|
65 | <td class="itemcode"><code>function <b><a href="synautil.html#DecodeInt">DecodeInt</a></b>(const Value: Ansistring; Index: Integer): Word;</code></td>
|
---|
66 | </tr>
|
---|
67 | <tr class="list">
|
---|
68 | <td class="itemcode"><code>function <b><a href="synautil.html#CodeLongInt">CodeLongInt</a></b>(Value: LongInt): Ansistring;</code></td>
|
---|
69 | </tr>
|
---|
70 | <tr class="list2">
|
---|
71 | <td class="itemcode"><code>function <b><a href="synautil.html#DecodeLongInt">DecodeLongInt</a></b>(const Value: Ansistring; Index: Integer): LongInt;</code></td>
|
---|
72 | </tr>
|
---|
73 | <tr class="list">
|
---|
74 | <td class="itemcode"><code>function <b><a href="synautil.html#DumpStr">DumpStr</a></b>(const Buffer: Ansistring): string;</code></td>
|
---|
75 | </tr>
|
---|
76 | <tr class="list2">
|
---|
77 | <td class="itemcode"><code>function <b><a href="synautil.html#DumpExStr">DumpExStr</a></b>(const Buffer: Ansistring): string;</code></td>
|
---|
78 | </tr>
|
---|
79 | <tr class="list">
|
---|
80 | <td class="itemcode"><code>procedure <b><a href="synautil.html#Dump">Dump</a></b>(const Buffer: AnsiString; DumpFile: string);</code></td>
|
---|
81 | </tr>
|
---|
82 | <tr class="list2">
|
---|
83 | <td class="itemcode"><code>procedure <b><a href="synautil.html#DumpEx">DumpEx</a></b>(const Buffer: AnsiString; DumpFile: string);</code></td>
|
---|
84 | </tr>
|
---|
85 | <tr class="list">
|
---|
86 | <td class="itemcode"><code>function <b><a href="synautil.html#TrimSPLeft">TrimSPLeft</a></b>(const S: string): string;</code></td>
|
---|
87 | </tr>
|
---|
88 | <tr class="list2">
|
---|
89 | <td class="itemcode"><code>function <b><a href="synautil.html#TrimSPRight">TrimSPRight</a></b>(const S: string): string;</code></td>
|
---|
90 | </tr>
|
---|
91 | <tr class="list">
|
---|
92 | <td class="itemcode"><code>function <b><a href="synautil.html#TrimSP">TrimSP</a></b>(const S: string): string;</code></td>
|
---|
93 | </tr>
|
---|
94 | <tr class="list2">
|
---|
95 | <td class="itemcode"><code>function <b><a href="synautil.html#SeparateLeft">SeparateLeft</a></b>(const Value, Delimiter: string): string;</code></td>
|
---|
96 | </tr>
|
---|
97 | <tr class="list">
|
---|
98 | <td class="itemcode"><code>function <b><a href="synautil.html#SeparateRight">SeparateRight</a></b>(const Value, Delimiter: string): string;</code></td>
|
---|
99 | </tr>
|
---|
100 | <tr class="list2">
|
---|
101 | <td class="itemcode"><code>function <b><a href="synautil.html#GetParameter">GetParameter</a></b>(const Value, Parameter: string): string;</code></td>
|
---|
102 | </tr>
|
---|
103 | <tr class="list">
|
---|
104 | <td class="itemcode"><code>procedure <b><a href="synautil.html#ParseParametersEx">ParseParametersEx</a></b>(Value, Delimiter: string; const Parameters: TStrings);</code></td>
|
---|
105 | </tr>
|
---|
106 | <tr class="list2">
|
---|
107 | <td class="itemcode"><code>procedure <b><a href="synautil.html#ParseParameters">ParseParameters</a></b>(Value: string; const Parameters: TStrings);</code></td>
|
---|
108 | </tr>
|
---|
109 | <tr class="list">
|
---|
110 | <td class="itemcode"><code>function <b><a href="synautil.html#IndexByBegin">IndexByBegin</a></b>(Value: string; const List: TStrings): integer;</code></td>
|
---|
111 | </tr>
|
---|
112 | <tr class="list2">
|
---|
113 | <td class="itemcode"><code>function <b><a href="synautil.html#GetEmailAddr">GetEmailAddr</a></b>(const Value: string): string;</code></td>
|
---|
114 | </tr>
|
---|
115 | <tr class="list">
|
---|
116 | <td class="itemcode"><code>function <b><a href="synautil.html#GetEmailDesc">GetEmailDesc</a></b>(Value: string): string;</code></td>
|
---|
117 | </tr>
|
---|
118 | <tr class="list2">
|
---|
119 | <td class="itemcode"><code>function <b><a href="synautil.html#StrToHex">StrToHex</a></b>(const Value: Ansistring): string;</code></td>
|
---|
120 | </tr>
|
---|
121 | <tr class="list">
|
---|
122 | <td class="itemcode"><code>function <b><a href="synautil.html#IntToBin">IntToBin</a></b>(Value: Integer; Digits: Byte): string;</code></td>
|
---|
123 | </tr>
|
---|
124 | <tr class="list2">
|
---|
125 | <td class="itemcode"><code>function <b><a href="synautil.html#BinToInt">BinToInt</a></b>(const Value: string): Integer;</code></td>
|
---|
126 | </tr>
|
---|
127 | <tr class="list">
|
---|
128 | <td class="itemcode"><code>function <b><a href="synautil.html#ParseURL">ParseURL</a></b>(URL: string; var Prot, User, Pass, Host, Port, Path, Para: string): string;</code></td>
|
---|
129 | </tr>
|
---|
130 | <tr class="list2">
|
---|
131 | <td class="itemcode"><code>function <b><a href="synautil.html#ReplaceString">ReplaceString</a></b>(Value, Search, Replace: AnsiString): AnsiString;</code></td>
|
---|
132 | </tr>
|
---|
133 | <tr class="list">
|
---|
134 | <td class="itemcode"><code>function <b><a href="synautil.html#RPosEx">RPosEx</a></b>(const Sub, Value: string; From: integer): Integer;</code></td>
|
---|
135 | </tr>
|
---|
136 | <tr class="list2">
|
---|
137 | <td class="itemcode"><code>function <b><a href="synautil.html#RPos">RPos</a></b>(const Sub, Value: String): Integer;</code></td>
|
---|
138 | </tr>
|
---|
139 | <tr class="list">
|
---|
140 | <td class="itemcode"><code>function <b><a href="synautil.html#FetchBin">FetchBin</a></b>(var Value: string; const Delimiter: string): string;</code></td>
|
---|
141 | </tr>
|
---|
142 | <tr class="list2">
|
---|
143 | <td class="itemcode"><code>function <b><a href="synautil.html#Fetch">Fetch</a></b>(var Value: string; const Delimiter: string): string;</code></td>
|
---|
144 | </tr>
|
---|
145 | <tr class="list">
|
---|
146 | <td class="itemcode"><code>function <b><a href="synautil.html#FetchEx">FetchEx</a></b>(var Value: string; const Delimiter, Quotation: string): string;</code></td>
|
---|
147 | </tr>
|
---|
148 | <tr class="list2">
|
---|
149 | <td class="itemcode"><code>function <b><a href="synautil.html#IsBinaryString">IsBinaryString</a></b>(const Value: AnsiString): Boolean;</code></td>
|
---|
150 | </tr>
|
---|
151 | <tr class="list">
|
---|
152 | <td class="itemcode"><code>function <b><a href="synautil.html#PosCRLF">PosCRLF</a></b>(const Value: AnsiString; var Terminator: AnsiString): integer;</code></td>
|
---|
153 | </tr>
|
---|
154 | <tr class="list2">
|
---|
155 | <td class="itemcode"><code>Procedure <b><a href="synautil.html#StringsTrim">StringsTrim</a></b>(const value: TStrings);</code></td>
|
---|
156 | </tr>
|
---|
157 | <tr class="list">
|
---|
158 | <td class="itemcode"><code>function <b><a href="synautil.html#PosFrom">PosFrom</a></b>(const SubStr, Value: String; From: integer): integer;</code></td>
|
---|
159 | </tr>
|
---|
160 | <tr class="list2">
|
---|
161 | <td class="itemcode"><code>function <b><a href="synautil.html#IncPoint">IncPoint</a></b>(const p: pointer; Value: integer): pointer;</code></td>
|
---|
162 | </tr>
|
---|
163 | <tr class="list">
|
---|
164 | <td class="itemcode"><code>function <b><a href="synautil.html#GetBetween">GetBetween</a></b>(const PairBegin, PairEnd, Value: string): string;</code></td>
|
---|
165 | </tr>
|
---|
166 | <tr class="list2">
|
---|
167 | <td class="itemcode"><code>function <b><a href="synautil.html#CountOfChar">CountOfChar</a></b>(const Value: string; Chr: char): integer;</code></td>
|
---|
168 | </tr>
|
---|
169 | <tr class="list">
|
---|
170 | <td class="itemcode"><code>function <b><a href="synautil.html#UnquoteStr">UnquoteStr</a></b>(const Value: string; Quote: Char): string;</code></td>
|
---|
171 | </tr>
|
---|
172 | <tr class="list2">
|
---|
173 | <td class="itemcode"><code>function <b><a href="synautil.html#QuoteStr">QuoteStr</a></b>(const Value: string; Quote: Char): string;</code></td>
|
---|
174 | </tr>
|
---|
175 | <tr class="list">
|
---|
176 | <td class="itemcode"><code>procedure <b><a href="synautil.html#HeadersToList">HeadersToList</a></b>(const Value: TStrings);</code></td>
|
---|
177 | </tr>
|
---|
178 | <tr class="list2">
|
---|
179 | <td class="itemcode"><code>procedure <b><a href="synautil.html#ListToHeaders">ListToHeaders</a></b>(const Value: TStrings);</code></td>
|
---|
180 | </tr>
|
---|
181 | <tr class="list">
|
---|
182 | <td class="itemcode"><code>function <b><a href="synautil.html#SwapBytes">SwapBytes</a></b>(Value: integer): integer;</code></td>
|
---|
183 | </tr>
|
---|
184 | <tr class="list2">
|
---|
185 | <td class="itemcode"><code>function <b><a href="synautil.html#ReadStrFromStream">ReadStrFromStream</a></b>(const Stream: TStream; len: integer): AnsiString;</code></td>
|
---|
186 | </tr>
|
---|
187 | <tr class="list">
|
---|
188 | <td class="itemcode"><code>procedure <b><a href="synautil.html#WriteStrToStream">WriteStrToStream</a></b>(const Stream: TStream; Value: AnsiString);</code></td>
|
---|
189 | </tr>
|
---|
190 | <tr class="list2">
|
---|
191 | <td class="itemcode"><code>function <b><a href="synautil.html#GetTempFile">GetTempFile</a></b>(const Dir, prefix: AnsiString): AnsiString;</code></td>
|
---|
192 | </tr>
|
---|
193 | <tr class="list">
|
---|
194 | <td class="itemcode"><code>function <b><a href="synautil.html#PadString">PadString</a></b>(const Value: AnsiString; len: integer; Pad: AnsiChar): AnsiString;</code></td>
|
---|
195 | </tr>
|
---|
196 | <tr class="list2">
|
---|
197 | <td class="itemcode"><code>function <b><a href="synautil.html#XorString">XorString</a></b>(Indata1, Indata2: AnsiString): AnsiString;</code></td>
|
---|
198 | </tr>
|
---|
199 | <tr class="list">
|
---|
200 | <td class="itemcode"><code>function <b><a href="synautil.html#NormalizeHeader">NormalizeHeader</a></b>(Value: TStrings; var Index: Integer): string;</code></td>
|
---|
201 | </tr>
|
---|
202 | <tr class="list2">
|
---|
203 | <td class="itemcode"><code>procedure <b><a href="synautil.html#SearchForLineBreak">SearchForLineBreak</a></b>(var APtr:PANSIChar; AEtx:PANSIChar; out ABol:PANSIChar; out ALength:integer);</code></td>
|
---|
204 | </tr>
|
---|
205 | <tr class="list">
|
---|
206 | <td class="itemcode"><code>procedure <b><a href="synautil.html#SkipLineBreak">SkipLineBreak</a></b>(var APtr:PANSIChar; AEtx:PANSIChar);</code></td>
|
---|
207 | </tr>
|
---|
208 | <tr class="list2">
|
---|
209 | <td class="itemcode"><code>procedure <b><a href="synautil.html#SkipNullLines">SkipNullLines</a></b> (var APtr:PANSIChar; AEtx:PANSIChar);</code></td>
|
---|
210 | </tr>
|
---|
211 | <tr class="list">
|
---|
212 | <td class="itemcode"><code>procedure <b><a href="synautil.html#CopyLinesFromStreamUntilNullLine">CopyLinesFromStreamUntilNullLine</a></b>(var APtr:PANSIChar; AEtx:PANSIChar; ALines:TStrings);</code></td>
|
---|
213 | </tr>
|
---|
214 | <tr class="list2">
|
---|
215 | <td class="itemcode"><code>procedure <b><a href="synautil.html#CopyLinesFromStreamUntilBoundary">CopyLinesFromStreamUntilBoundary</a></b>(var APtr:PANSIChar; AEtx:PANSIChar; ALines:TStrings; const ABoundary:ANSIString);</code></td>
|
---|
216 | </tr>
|
---|
217 | <tr class="list">
|
---|
218 | <td class="itemcode"><code>function <b><a href="synautil.html#SearchForBoundary">SearchForBoundary</a></b> (var APtr:PANSIChar; AEtx:PANSIChar; const ABoundary:ANSIString): PANSIChar;</code></td>
|
---|
219 | </tr>
|
---|
220 | <tr class="list2">
|
---|
221 | <td class="itemcode"><code>function <b><a href="synautil.html#MatchBoundary">MatchBoundary</a></b> (ABOL,AETX:PANSIChar; const ABoundary:ANSIString): PANSIChar;</code></td>
|
---|
222 | </tr>
|
---|
223 | <tr class="list">
|
---|
224 | <td class="itemcode"><code>function <b><a href="synautil.html#MatchLastBoundary">MatchLastBoundary</a></b> (ABOL,AETX:PANSIChar; const ABoundary:ANSIString): PANSIChar;</code></td>
|
---|
225 | </tr>
|
---|
226 | <tr class="list2">
|
---|
227 | <td class="itemcode"><code>function <b><a href="synautil.html#BuildStringFromBuffer">BuildStringFromBuffer</a></b> (AStx,AEtx:PANSIChar): ANSIString;</code></td>
|
---|
228 | </tr>
|
---|
229 | </table>
|
---|
230 | <a name="@Variables"></a><h3 class="summary">Variables</h3>
|
---|
231 | <table class="summary">
|
---|
232 | <tr class="list">
|
---|
233 | <td class="itemcode"><code><b><a href="synautil.html#CustomMonthNames">CustomMonthNames</a></b>: array[1..12] of string;</code></td>
|
---|
234 | </tr>
|
---|
235 | </table>
|
---|
236 | <h2 class="description">Description</h2>
|
---|
237 | <h3 class="detail">Functions and Procedures</h3>
|
---|
238 | <table class="detail">
|
---|
239 | <tr class="list">
|
---|
240 | <td class="itemcode"><a name="TimeZoneBias"></a><code>function <b>TimeZoneBias</b>: integer;</code></td>
|
---|
241 | </tr>
|
---|
242 | </table>
|
---|
243 | <p>
|
---|
244 | Return your timezone bias from UTC time in minutes.</p>
|
---|
245 | <table class="detail">
|
---|
246 | <tr class="list">
|
---|
247 | <td class="itemcode"><a name="TimeZone"></a><code>function <b>TimeZone</b>: string;</code></td>
|
---|
248 | </tr>
|
---|
249 | </table>
|
---|
250 | <p>
|
---|
251 | Return your timezone bias from UTC time in string representation like "+0200".</p>
|
---|
252 | <table class="detail">
|
---|
253 | <tr class="list">
|
---|
254 | <td class="itemcode"><a name="Rfc822DateTime"></a><code>function <b>Rfc822DateTime</b>(t: TDateTime): string;</code></td>
|
---|
255 | </tr>
|
---|
256 | </table>
|
---|
257 | <p>
|
---|
258 | Returns current time in format defined in RFC-822. Useful for SMTP messages, but other protocols use this time format as well. Results contains the timezone specification. Four digit year is used to break any Y2K concerns. (Example 'Fri, 15 Oct 1999 21:14:56 +0200')</p>
|
---|
259 | <table class="detail">
|
---|
260 | <tr class="list">
|
---|
261 | <td class="itemcode"><a name="CDateTime"></a><code>function <b>CDateTime</b>(t: TDateTime): string;</code></td>
|
---|
262 | </tr>
|
---|
263 | </table>
|
---|
264 | <p>
|
---|
265 | Returns date and time in format defined in C compilers in format "mmm dd hh:nn:ss"</p>
|
---|
266 | <table class="detail">
|
---|
267 | <tr class="list">
|
---|
268 | <td class="itemcode"><a name="SimpleDateTime"></a><code>function <b>SimpleDateTime</b>(t: TDateTime): string;</code></td>
|
---|
269 | </tr>
|
---|
270 | </table>
|
---|
271 | <p>
|
---|
272 | Returns date and time in format defined in format 'yymmdd hhnnss'</p>
|
---|
273 | <table class="detail">
|
---|
274 | <tr class="list">
|
---|
275 | <td class="itemcode"><a name="AnsiCDateTime"></a><code>function <b>AnsiCDateTime</b>(t: TDateTime): string;</code></td>
|
---|
276 | </tr>
|
---|
277 | </table>
|
---|
278 | <p>
|
---|
279 | Returns date and time in format defined in ANSI C compilers in format "ddd mmm d hh:nn:ss yyyy"</p>
|
---|
280 | <table class="detail">
|
---|
281 | <tr class="list">
|
---|
282 | <td class="itemcode"><a name="GetMonthNumber"></a><code>function <b>GetMonthNumber</b>(Value: String): integer;</code></td>
|
---|
283 | </tr>
|
---|
284 | </table>
|
---|
285 | <p>
|
---|
286 | Decode three-letter string with name of month to their month number. If string not match any month name, then is returned 0. For parsing are used predefined names for English, French and German and names from system locale too.</p>
|
---|
287 | <table class="detail">
|
---|
288 | <tr class="list">
|
---|
289 | <td class="itemcode"><a name="GetTimeFromStr"></a><code>function <b>GetTimeFromStr</b>(Value: string): TDateTime;</code></td>
|
---|
290 | </tr>
|
---|
291 | </table>
|
---|
292 | <p>
|
---|
293 | Return decoded time from given string. Time must be witch separator ':'. You can use "hh:mm" or "hh:mm:ss".</p>
|
---|
294 | <table class="detail">
|
---|
295 | <tr class="list">
|
---|
296 | <td class="itemcode"><a name="GetDateMDYFromStr"></a><code>function <b>GetDateMDYFromStr</b>(Value: string): TDateTime;</code></td>
|
---|
297 | </tr>
|
---|
298 | </table>
|
---|
299 | <p>
|
---|
300 | Decode string in format "m-d-y" to TDateTime type.</p>
|
---|
301 | <table class="detail">
|
---|
302 | <tr class="list">
|
---|
303 | <td class="itemcode"><a name="DecodeRfcDateTime"></a><code>function <b>DecodeRfcDateTime</b>(Value: string): TDateTime;</code></td>
|
---|
304 | </tr>
|
---|
305 | </table>
|
---|
306 | <p>
|
---|
307 | Decode various string representations of date and time to Tdatetime type. This function do all timezone corrections too! This function can decode lot of formats like: </p>
|
---|
308 |
|
---|
309 | <pre class="longcode">
|
---|
310 | ddd, d mmm yyyy hh:mm:ss
|
---|
311 | ddd, d mmm yy hh:mm:ss
|
---|
312 | ddd, mmm d yyyy hh:mm:ss
|
---|
313 | ddd mmm dd hh:mm:ss yyyy</pre>
|
---|
314 |
|
---|
315 | <p>
|
---|
316 |
|
---|
317 | <p>and more with lot of modifications, include: </p>
|
---|
318 |
|
---|
319 | <pre class="longcode">
|
---|
320 | Sun, <span class="pascal_numeric">06</span> Nov <span class="pascal_numeric">1994</span> 08:<span class="pascal_numeric">49</span>:37 GMT ; RFC <span class="pascal_numeric">822</span>, updated by RFC <span class="pascal_numeric">1123</span>
|
---|
321 | Sunday, <span class="pascal_numeric">06</span>-Nov-<span class="pascal_numeric">94</span> 08:<span class="pascal_numeric">49</span>:37 GMT ; RFC <span class="pascal_numeric">850</span>, obsoleted by RFC <span class="pascal_numeric">1036</span>
|
---|
322 | Sun Nov <span class="pascal_numeric">6</span> 08:<span class="pascal_numeric">49</span>:37 <span class="pascal_numeric">1994</span> ; ANSI C</pre>
|
---|
323 |
|
---|
324 | <p> Timezone corrections known lot of symbolic timezone names (like CEST, EDT, etc.) or numeric representation (like +0200). By convention defined in RFC timezone +0000 is GMT and -0000 is current your system timezone.</p>
|
---|
325 | <table class="detail">
|
---|
326 | <tr class="list">
|
---|
327 | <td class="itemcode"><a name="GetUTTime"></a><code>function <b>GetUTTime</b>: TDateTime;</code></td>
|
---|
328 | </tr>
|
---|
329 | </table>
|
---|
330 | <p>
|
---|
331 | Return current system date and time in UTC timezone.</p>
|
---|
332 | <table class="detail">
|
---|
333 | <tr class="list">
|
---|
334 | <td class="itemcode"><a name="SetUTTime"></a><code>function <b>SetUTTime</b>(Newdt: TDateTime): Boolean;</code></td>
|
---|
335 | </tr>
|
---|
336 | </table>
|
---|
337 | <p>
|
---|
338 | Set Newdt as current system date and time in UTC timezone. This function work only if you have administrator rights!</p>
|
---|
339 | <table class="detail">
|
---|
340 | <tr class="list">
|
---|
341 | <td class="itemcode"><a name="GetTick"></a><code>function <b>GetTick</b>: LongWord;</code></td>
|
---|
342 | </tr>
|
---|
343 | </table>
|
---|
344 | <p>
|
---|
345 | Return current value of system timer with precizion 1 millisecond. Good for measure time difference.</p>
|
---|
346 | <table class="detail">
|
---|
347 | <tr class="list">
|
---|
348 | <td class="itemcode"><a name="TickDelta"></a><code>function <b>TickDelta</b>(TickOld, TickNew: LongWord): LongWord;</code></td>
|
---|
349 | </tr>
|
---|
350 | </table>
|
---|
351 | <p>
|
---|
352 | Return difference between two timestamps. It working fine only for differences smaller then maxint. (difference must be smaller then 24 days.)</p>
|
---|
353 | <table class="detail">
|
---|
354 | <tr class="list">
|
---|
355 | <td class="itemcode"><a name="CodeInt"></a><code>function <b>CodeInt</b>(Value: Word): Ansistring;</code></td>
|
---|
356 | </tr>
|
---|
357 | </table>
|
---|
358 | <p>
|
---|
359 | Return two characters, which ordinal values represents the value in byte format. (High-endian)</p>
|
---|
360 | <table class="detail">
|
---|
361 | <tr class="list">
|
---|
362 | <td class="itemcode"><a name="DecodeInt"></a><code>function <b>DecodeInt</b>(const Value: Ansistring; Index: Integer): Word;</code></td>
|
---|
363 | </tr>
|
---|
364 | </table>
|
---|
365 | <p>
|
---|
366 | Decodes two characters located at "Index" offset position of the "Value" string to Word values.</p>
|
---|
367 | <table class="detail">
|
---|
368 | <tr class="list">
|
---|
369 | <td class="itemcode"><a name="CodeLongInt"></a><code>function <b>CodeLongInt</b>(Value: LongInt): Ansistring;</code></td>
|
---|
370 | </tr>
|
---|
371 | </table>
|
---|
372 | <p>
|
---|
373 | Return four characters, which ordinal values represents the value in byte format. (High-endian)</p>
|
---|
374 | <table class="detail">
|
---|
375 | <tr class="list">
|
---|
376 | <td class="itemcode"><a name="DecodeLongInt"></a><code>function <b>DecodeLongInt</b>(const Value: Ansistring; Index: Integer): LongInt;</code></td>
|
---|
377 | </tr>
|
---|
378 | </table>
|
---|
379 | <p>
|
---|
380 | Decodes four characters located at "Index" offset position of the "Value" string to LongInt values.</p>
|
---|
381 | <table class="detail">
|
---|
382 | <tr class="list">
|
---|
383 | <td class="itemcode"><a name="DumpStr"></a><code>function <b>DumpStr</b>(const Buffer: Ansistring): string;</code></td>
|
---|
384 | </tr>
|
---|
385 | </table>
|
---|
386 | <p>
|
---|
387 | Dump binary buffer stored in a string to a result string.</p>
|
---|
388 | <table class="detail">
|
---|
389 | <tr class="list">
|
---|
390 | <td class="itemcode"><a name="DumpExStr"></a><code>function <b>DumpExStr</b>(const Buffer: Ansistring): string;</code></td>
|
---|
391 | </tr>
|
---|
392 | </table>
|
---|
393 | <p>
|
---|
394 | Dump binary buffer stored in a string to a result string. All bytes with code of character is written as character, not as hexadecimal value.</p>
|
---|
395 | <table class="detail">
|
---|
396 | <tr class="list">
|
---|
397 | <td class="itemcode"><a name="Dump"></a><code>procedure <b>Dump</b>(const Buffer: AnsiString; DumpFile: string);</code></td>
|
---|
398 | </tr>
|
---|
399 | </table>
|
---|
400 | <p>
|
---|
401 | Dump binary buffer stored in a string to a file with DumpFile filename.</p>
|
---|
402 | <table class="detail">
|
---|
403 | <tr class="list">
|
---|
404 | <td class="itemcode"><a name="DumpEx"></a><code>procedure <b>DumpEx</b>(const Buffer: AnsiString; DumpFile: string);</code></td>
|
---|
405 | </tr>
|
---|
406 | </table>
|
---|
407 | <p>
|
---|
408 | Dump binary buffer stored in a string to a file with DumpFile filename. All bytes with code of character is written as character, not as hexadecimal value.</p>
|
---|
409 | <table class="detail">
|
---|
410 | <tr class="list">
|
---|
411 | <td class="itemcode"><a name="TrimSPLeft"></a><code>function <b>TrimSPLeft</b>(const S: string): string;</code></td>
|
---|
412 | </tr>
|
---|
413 | </table>
|
---|
414 | <p>
|
---|
415 | Like TrimLeft, but remove only spaces, not control characters!</p>
|
---|
416 | <table class="detail">
|
---|
417 | <tr class="list">
|
---|
418 | <td class="itemcode"><a name="TrimSPRight"></a><code>function <b>TrimSPRight</b>(const S: string): string;</code></td>
|
---|
419 | </tr>
|
---|
420 | </table>
|
---|
421 | <p>
|
---|
422 | Like TrimRight, but remove only spaces, not control characters!</p>
|
---|
423 | <table class="detail">
|
---|
424 | <tr class="list">
|
---|
425 | <td class="itemcode"><a name="TrimSP"></a><code>function <b>TrimSP</b>(const S: string): string;</code></td>
|
---|
426 | </tr>
|
---|
427 | </table>
|
---|
428 | <p>
|
---|
429 | Like Trim, but remove only spaces, not control characters!</p>
|
---|
430 | <table class="detail">
|
---|
431 | <tr class="list">
|
---|
432 | <td class="itemcode"><a name="SeparateLeft"></a><code>function <b>SeparateLeft</b>(const Value, Delimiter: string): string;</code></td>
|
---|
433 | </tr>
|
---|
434 | </table>
|
---|
435 | <p>
|
---|
436 | Returns a portion of the "Value" string located to the left of the "Delimiter" string. If a delimiter is not found, results is original string.</p>
|
---|
437 | <table class="detail">
|
---|
438 | <tr class="list">
|
---|
439 | <td class="itemcode"><a name="SeparateRight"></a><code>function <b>SeparateRight</b>(const Value, Delimiter: string): string;</code></td>
|
---|
440 | </tr>
|
---|
441 | </table>
|
---|
442 | <p>
|
---|
443 | Returns the portion of the "Value" string located to the right of the "Delimiter" string. If a delimiter is not found, results is original string.</p>
|
---|
444 | <table class="detail">
|
---|
445 | <tr class="list">
|
---|
446 | <td class="itemcode"><a name="GetParameter"></a><code>function <b>GetParameter</b>(const Value, Parameter: string): string;</code></td>
|
---|
447 | </tr>
|
---|
448 | </table>
|
---|
449 | <p>
|
---|
450 | Returns parameter value from string in format: parameter1="value1"; parameter2=value2</p>
|
---|
451 | <table class="detail">
|
---|
452 | <tr class="list">
|
---|
453 | <td class="itemcode"><a name="ParseParametersEx"></a><code>procedure <b>ParseParametersEx</b>(Value, Delimiter: string; const Parameters: TStrings);</code></td>
|
---|
454 | </tr>
|
---|
455 | </table>
|
---|
456 | <p>
|
---|
457 | parse value string with elements differed by Delimiter into stringlist.</p>
|
---|
458 | <table class="detail">
|
---|
459 | <tr class="list">
|
---|
460 | <td class="itemcode"><a name="ParseParameters"></a><code>procedure <b>ParseParameters</b>(Value: string; const Parameters: TStrings);</code></td>
|
---|
461 | </tr>
|
---|
462 | </table>
|
---|
463 | <p>
|
---|
464 | parse value string with elements differed by ';' into stringlist.</p>
|
---|
465 | <table class="detail">
|
---|
466 | <tr class="list">
|
---|
467 | <td class="itemcode"><a name="IndexByBegin"></a><code>function <b>IndexByBegin</b>(Value: string; const List: TStrings): integer;</code></td>
|
---|
468 | </tr>
|
---|
469 | </table>
|
---|
470 | <p>
|
---|
471 | Index of string in stringlist with same beginning as Value is returned.</p>
|
---|
472 | <table class="detail">
|
---|
473 | <tr class="list">
|
---|
474 | <td class="itemcode"><a name="GetEmailAddr"></a><code>function <b>GetEmailAddr</b>(const Value: string): string;</code></td>
|
---|
475 | </tr>
|
---|
476 | </table>
|
---|
477 | <p>
|
---|
478 | Returns only the e-mail portion of an address from the full address format. i.e. returns 'nobody@somewhere.com' from '"someone" <nobody@somewhere.com>'</p>
|
---|
479 | <table class="detail">
|
---|
480 | <tr class="list">
|
---|
481 | <td class="itemcode"><a name="GetEmailDesc"></a><code>function <b>GetEmailDesc</b>(Value: string): string;</code></td>
|
---|
482 | </tr>
|
---|
483 | </table>
|
---|
484 | <p>
|
---|
485 | Returns only the description part from a full address format. i.e. returns 'someone' from '"someone" <nobody@somewhere.com>'</p>
|
---|
486 | <table class="detail">
|
---|
487 | <tr class="list">
|
---|
488 | <td class="itemcode"><a name="StrToHex"></a><code>function <b>StrToHex</b>(const Value: Ansistring): string;</code></td>
|
---|
489 | </tr>
|
---|
490 | </table>
|
---|
491 | <p>
|
---|
492 | Returns a string with hexadecimal digits representing the corresponding values of the bytes found in "Value" string.</p>
|
---|
493 | <table class="detail">
|
---|
494 | <tr class="list">
|
---|
495 | <td class="itemcode"><a name="IntToBin"></a><code>function <b>IntToBin</b>(Value: Integer; Digits: Byte): string;</code></td>
|
---|
496 | </tr>
|
---|
497 | </table>
|
---|
498 | <p>
|
---|
499 | Returns a string of binary "Digits" representing "Value".</p>
|
---|
500 | <table class="detail">
|
---|
501 | <tr class="list">
|
---|
502 | <td class="itemcode"><a name="BinToInt"></a><code>function <b>BinToInt</b>(const Value: string): Integer;</code></td>
|
---|
503 | </tr>
|
---|
504 | </table>
|
---|
505 | <p>
|
---|
506 | Returns an integer equivalent of the binary string in "Value". (i.e. ('10001010') returns 138)</p>
|
---|
507 | <table class="detail">
|
---|
508 | <tr class="list">
|
---|
509 | <td class="itemcode"><a name="ParseURL"></a><code>function <b>ParseURL</b>(URL: string; var Prot, User, Pass, Host, Port, Path, Para: string): string;</code></td>
|
---|
510 | </tr>
|
---|
511 | </table>
|
---|
512 | <p>
|
---|
513 | Parses a URL to its various components.</p>
|
---|
514 | <table class="detail">
|
---|
515 | <tr class="list">
|
---|
516 | <td class="itemcode"><a name="ReplaceString"></a><code>function <b>ReplaceString</b>(Value, Search, Replace: AnsiString): AnsiString;</code></td>
|
---|
517 | </tr>
|
---|
518 | </table>
|
---|
519 | <p>
|
---|
520 | Replaces all "Search" string values found within "Value" string, with the "Replace" string value.</p>
|
---|
521 | <table class="detail">
|
---|
522 | <tr class="list">
|
---|
523 | <td class="itemcode"><a name="RPosEx"></a><code>function <b>RPosEx</b>(const Sub, Value: string; From: integer): Integer;</code></td>
|
---|
524 | </tr>
|
---|
525 | </table>
|
---|
526 | <p>
|
---|
527 | It is like RPos, but search is from specified possition.</p>
|
---|
528 | <table class="detail">
|
---|
529 | <tr class="list">
|
---|
530 | <td class="itemcode"><a name="RPos"></a><code>function <b>RPos</b>(const Sub, Value: String): Integer;</code></td>
|
---|
531 | </tr>
|
---|
532 | </table>
|
---|
533 | <p>
|
---|
534 | It is like POS function, but from right side of Value string.</p>
|
---|
535 | <table class="detail">
|
---|
536 | <tr class="list">
|
---|
537 | <td class="itemcode"><a name="FetchBin"></a><code>function <b>FetchBin</b>(var Value: string; const Delimiter: string): string;</code></td>
|
---|
538 | </tr>
|
---|
539 | </table>
|
---|
540 | <p>
|
---|
541 | Like <a class="normal" href="synautil.html#Fetch">Fetch</a>, but working with binary strings, not with text.</p>
|
---|
542 | <table class="detail">
|
---|
543 | <tr class="list">
|
---|
544 | <td class="itemcode"><a name="Fetch"></a><code>function <b>Fetch</b>(var Value: string; const Delimiter: string): string;</code></td>
|
---|
545 | </tr>
|
---|
546 | </table>
|
---|
547 | <p>
|
---|
548 | Fetch string from left of Value string.</p>
|
---|
549 | <table class="detail">
|
---|
550 | <tr class="list">
|
---|
551 | <td class="itemcode"><a name="FetchEx"></a><code>function <b>FetchEx</b>(var Value: string; const Delimiter, Quotation: string): string;</code></td>
|
---|
552 | </tr>
|
---|
553 | </table>
|
---|
554 | <p>
|
---|
555 | Fetch string from left of Value string. This function ignore delimitesr inside quotations.</p>
|
---|
556 | <table class="detail">
|
---|
557 | <tr class="list">
|
---|
558 | <td class="itemcode"><a name="IsBinaryString"></a><code>function <b>IsBinaryString</b>(const Value: AnsiString): Boolean;</code></td>
|
---|
559 | </tr>
|
---|
560 | </table>
|
---|
561 | <p>
|
---|
562 | If string is binary string (contains non-printable characters), then is returned true.</p>
|
---|
563 | <table class="detail">
|
---|
564 | <tr class="list">
|
---|
565 | <td class="itemcode"><a name="PosCRLF"></a><code>function <b>PosCRLF</b>(const Value: AnsiString; var Terminator: AnsiString): integer;</code></td>
|
---|
566 | </tr>
|
---|
567 | </table>
|
---|
568 | <p>
|
---|
569 | return position of string terminator in string. If terminator found, then is returned in terminator parameter. Possible line terminators are: CRLF, LFCR, CR, LF</p>
|
---|
570 | <table class="detail">
|
---|
571 | <tr class="list">
|
---|
572 | <td class="itemcode"><a name="StringsTrim"></a><code>Procedure <b>StringsTrim</b>(const value: TStrings);</code></td>
|
---|
573 | </tr>
|
---|
574 | </table>
|
---|
575 | <p>
|
---|
576 | Delete empty strings from end of stringlist.</p>
|
---|
577 | <table class="detail">
|
---|
578 | <tr class="list">
|
---|
579 | <td class="itemcode"><a name="PosFrom"></a><code>function <b>PosFrom</b>(const SubStr, Value: String; From: integer): integer;</code></td>
|
---|
580 | </tr>
|
---|
581 | </table>
|
---|
582 | <p>
|
---|
583 | Like Pos function, buf from given string possition.</p>
|
---|
584 | <table class="detail">
|
---|
585 | <tr class="list">
|
---|
586 | <td class="itemcode"><a name="IncPoint"></a><code>function <b>IncPoint</b>(const p: pointer; Value: integer): pointer;</code></td>
|
---|
587 | </tr>
|
---|
588 | </table>
|
---|
589 | <p>
|
---|
590 | Increase pointer by value.</p>
|
---|
591 | <table class="detail">
|
---|
592 | <tr class="list">
|
---|
593 | <td class="itemcode"><a name="GetBetween"></a><code>function <b>GetBetween</b>(const PairBegin, PairEnd, Value: string): string;</code></td>
|
---|
594 | </tr>
|
---|
595 | </table>
|
---|
596 | <p>
|
---|
597 | Get string between PairBegin and PairEnd. This function respect nesting. For example: </p>
|
---|
598 |
|
---|
599 | <pre class="longcode">
|
---|
600 | Value <span class="pascal_keyword">is</span>: <span class="pascal_string">'Hi! (hello(yes!))'</span>
|
---|
601 | pairbegin <span class="pascal_keyword">is</span>: <span class="pascal_string">'('</span>
|
---|
602 | pairend <span class="pascal_keyword">is</span>: <span class="pascal_string">')'</span>
|
---|
603 | <span class="pascal_keyword">In</span> this <span class="pascal_keyword">case</span> result <span class="pascal_keyword">is</span>: <span class="pascal_string">'hello(yes!)'</span></pre>
|
---|
604 |
|
---|
605 | <p></p>
|
---|
606 | <table class="detail">
|
---|
607 | <tr class="list">
|
---|
608 | <td class="itemcode"><a name="CountOfChar"></a><code>function <b>CountOfChar</b>(const Value: string; Chr: char): integer;</code></td>
|
---|
609 | </tr>
|
---|
610 | </table>
|
---|
611 | <p>
|
---|
612 | Return count of Chr in Value string.</p>
|
---|
613 | <table class="detail">
|
---|
614 | <tr class="list">
|
---|
615 | <td class="itemcode"><a name="UnquoteStr"></a><code>function <b>UnquoteStr</b>(const Value: string; Quote: Char): string;</code></td>
|
---|
616 | </tr>
|
---|
617 | </table>
|
---|
618 | <p>
|
---|
619 | Remove quotation from Value string. If Value is not quoted, then return same string without any modification.</p>
|
---|
620 | <table class="detail">
|
---|
621 | <tr class="list">
|
---|
622 | <td class="itemcode"><a name="QuoteStr"></a><code>function <b>QuoteStr</b>(const Value: string; Quote: Char): string;</code></td>
|
---|
623 | </tr>
|
---|
624 | </table>
|
---|
625 | <p>
|
---|
626 | Quote Value string. If Value contains some Quote chars, then it is doubled.</p>
|
---|
627 | <table class="detail">
|
---|
628 | <tr class="list">
|
---|
629 | <td class="itemcode"><a name="HeadersToList"></a><code>procedure <b>HeadersToList</b>(const Value: TStrings);</code></td>
|
---|
630 | </tr>
|
---|
631 | </table>
|
---|
632 | <p>
|
---|
633 | Convert lines in stringlist from 'name: value' form to 'name=value' form.</p>
|
---|
634 | <table class="detail">
|
---|
635 | <tr class="list">
|
---|
636 | <td class="itemcode"><a name="ListToHeaders"></a><code>procedure <b>ListToHeaders</b>(const Value: TStrings);</code></td>
|
---|
637 | </tr>
|
---|
638 | </table>
|
---|
639 | <p>
|
---|
640 | Convert lines in stringlist from 'name=value' form to 'name: value' form.</p>
|
---|
641 | <table class="detail">
|
---|
642 | <tr class="list">
|
---|
643 | <td class="itemcode"><a name="SwapBytes"></a><code>function <b>SwapBytes</b>(Value: integer): integer;</code></td>
|
---|
644 | </tr>
|
---|
645 | </table>
|
---|
646 | <p>
|
---|
647 | swap bytes in integer.</p>
|
---|
648 | <table class="detail">
|
---|
649 | <tr class="list">
|
---|
650 | <td class="itemcode"><a name="ReadStrFromStream"></a><code>function <b>ReadStrFromStream</b>(const Stream: TStream; len: integer): AnsiString;</code></td>
|
---|
651 | </tr>
|
---|
652 | </table>
|
---|
653 | <p>
|
---|
654 | read string with requested length form stream.</p>
|
---|
655 | <table class="detail">
|
---|
656 | <tr class="list">
|
---|
657 | <td class="itemcode"><a name="WriteStrToStream"></a><code>procedure <b>WriteStrToStream</b>(const Stream: TStream; Value: AnsiString);</code></td>
|
---|
658 | </tr>
|
---|
659 | </table>
|
---|
660 | <p>
|
---|
661 | write string to stream.</p>
|
---|
662 | <table class="detail">
|
---|
663 | <tr class="list">
|
---|
664 | <td class="itemcode"><a name="GetTempFile"></a><code>function <b>GetTempFile</b>(const Dir, prefix: AnsiString): AnsiString;</code></td>
|
---|
665 | </tr>
|
---|
666 | </table>
|
---|
667 | <p>
|
---|
668 | Return filename of new temporary file in Dir (if empty, then default temporary directory is used) and with optional filename prefix.</p>
|
---|
669 | <table class="detail">
|
---|
670 | <tr class="list">
|
---|
671 | <td class="itemcode"><a name="PadString"></a><code>function <b>PadString</b>(const Value: AnsiString; len: integer; Pad: AnsiChar): AnsiString;</code></td>
|
---|
672 | </tr>
|
---|
673 | </table>
|
---|
674 | <p>
|
---|
675 | Return padded string. If length is greater, string is truncated. If length is smaller, string is padded by Pad character.</p>
|
---|
676 | <table class="detail">
|
---|
677 | <tr class="list">
|
---|
678 | <td class="itemcode"><a name="XorString"></a><code>function <b>XorString</b>(Indata1, Indata2: AnsiString): AnsiString;</code></td>
|
---|
679 | </tr>
|
---|
680 | </table>
|
---|
681 | <p>
|
---|
682 | XOR each byte in the strings</p>
|
---|
683 | <table class="detail">
|
---|
684 | <tr class="list">
|
---|
685 | <td class="itemcode"><a name="NormalizeHeader"></a><code>function <b>NormalizeHeader</b>(Value: TStrings; var Index: Integer): string;</code></td>
|
---|
686 | </tr>
|
---|
687 | </table>
|
---|
688 | <p>
|
---|
689 | Read header from "Value" stringlist beginning at "Index" position. If header is Splitted into multiple lines, then this procedure de-split it into one line.</p>
|
---|
690 | <table class="detail">
|
---|
691 | <tr class="list">
|
---|
692 | <td class="itemcode"><a name="SearchForLineBreak"></a><code>procedure <b>SearchForLineBreak</b>(var APtr:PANSIChar; AEtx:PANSIChar; out ABol:PANSIChar; out ALength:integer);</code></td>
|
---|
693 | </tr>
|
---|
694 | </table>
|
---|
695 | <p>
|
---|
696 | Search for one of line terminators CR, LF or NUL. Return position of the line beginning and length of text.</p>
|
---|
697 | <table class="detail">
|
---|
698 | <tr class="list">
|
---|
699 | <td class="itemcode"><a name="SkipLineBreak"></a><code>procedure <b>SkipLineBreak</b>(var APtr:PANSIChar; AEtx:PANSIChar);</code></td>
|
---|
700 | </tr>
|
---|
701 | </table>
|
---|
702 | <p>
|
---|
703 | Skip both line terminators CR LF (if any). Move APtr position forward.</p>
|
---|
704 | <table class="detail">
|
---|
705 | <tr class="list">
|
---|
706 | <td class="itemcode"><a name="SkipNullLines"></a><code>procedure <b>SkipNullLines</b> (var APtr:PANSIChar; AEtx:PANSIChar);</code></td>
|
---|
707 | </tr>
|
---|
708 | </table>
|
---|
709 | <p>
|
---|
710 | Skip all blank lines in a buffer starting at APtr and move APtr position forward.</p>
|
---|
711 | <table class="detail">
|
---|
712 | <tr class="list">
|
---|
713 | <td class="itemcode"><a name="CopyLinesFromStreamUntilNullLine"></a><code>procedure <b>CopyLinesFromStreamUntilNullLine</b>(var APtr:PANSIChar; AEtx:PANSIChar; ALines:TStrings);</code></td>
|
---|
714 | </tr>
|
---|
715 | </table>
|
---|
716 | <p>
|
---|
717 | Copy all lines from a buffer starting at APtr to ALines until empty line or end of the buffer is reached. Move APtr position forward).</p>
|
---|
718 | <table class="detail">
|
---|
719 | <tr class="list">
|
---|
720 | <td class="itemcode"><a name="CopyLinesFromStreamUntilBoundary"></a><code>procedure <b>CopyLinesFromStreamUntilBoundary</b>(var APtr:PANSIChar; AEtx:PANSIChar; ALines:TStrings; const ABoundary:ANSIString);</code></td>
|
---|
721 | </tr>
|
---|
722 | </table>
|
---|
723 | <p>
|
---|
724 | Copy all lines from a buffer starting at APtr to ALines until ABoundary or end of the buffer is reached. Move APtr position forward).</p>
|
---|
725 | <table class="detail">
|
---|
726 | <tr class="list">
|
---|
727 | <td class="itemcode"><a name="SearchForBoundary"></a><code>function <b>SearchForBoundary</b> (var APtr:PANSIChar; AEtx:PANSIChar; const ABoundary:ANSIString): PANSIChar;</code></td>
|
---|
728 | </tr>
|
---|
729 | </table>
|
---|
730 | <p>
|
---|
731 | Search ABoundary in a buffer starting at APtr. Return beginning of the ABoundary. Move APtr forward behind a trailing CRLF if any).</p>
|
---|
732 | <table class="detail">
|
---|
733 | <tr class="list">
|
---|
734 | <td class="itemcode"><a name="MatchBoundary"></a><code>function <b>MatchBoundary</b> (ABOL,AETX:PANSIChar; const ABoundary:ANSIString): PANSIChar;</code></td>
|
---|
735 | </tr>
|
---|
736 | </table>
|
---|
737 | <p>
|
---|
738 | Compare a text at position ABOL with ABoundary and return position behind the match (including a trailing CRLF if any).</p>
|
---|
739 | <table class="detail">
|
---|
740 | <tr class="list">
|
---|
741 | <td class="itemcode"><a name="MatchLastBoundary"></a><code>function <b>MatchLastBoundary</b> (ABOL,AETX:PANSIChar; const ABoundary:ANSIString): PANSIChar;</code></td>
|
---|
742 | </tr>
|
---|
743 | </table>
|
---|
744 | <p>
|
---|
745 | Compare a text at position ABOL with ABoundary + the last boundary suffix and return position behind the match (including a trailing CRLF if any).</p>
|
---|
746 | <table class="detail">
|
---|
747 | <tr class="list">
|
---|
748 | <td class="itemcode"><a name="BuildStringFromBuffer"></a><code>function <b>BuildStringFromBuffer</b> (AStx,AEtx:PANSIChar): ANSIString;</code></td>
|
---|
749 | </tr>
|
---|
750 | </table>
|
---|
751 | <p>
|
---|
752 | Copy data from a buffer starting at position APtr and delimited by AEtx position into ANSIString.</p>
|
---|
753 | <h3 class="detail">Variables</h3>
|
---|
754 | <table class="detail">
|
---|
755 | <tr class="list">
|
---|
756 | <td class="itemcode"><a name="CustomMonthNames"></a><code><b>CustomMonthNames</b>: array[1..12] of string;</code></td>
|
---|
757 | </tr>
|
---|
758 | </table>
|
---|
759 | <p>
|
---|
760 | can be used for your own months strings for <a class="normal" href="synautil.html#GetMonthNumber">GetMonthNumber</a></p>
|
---|
761 | <hr noshade size="1"><span class="appinfo"><em>Generated by <a target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.9.0</a> on 2012-04-23 21:38:52</em>
|
---|
762 | </span>
|
---|
763 | </body></html>
|
---|