You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: csdb/collection/date.ini
+34-38
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
8
8
[AddDays]
9
9
DescEx="<p>Adds the number of days, <var>Days</var>, to the given date, <var>DateTime</var> and returns the result.</p><p>To subtract days, pass a negative value for <var>Days</var>.</p>"
10
-
Credits="Contributed by Bill Miller."
10
+
Extra="<p>Contributed by Bill Miller.</p>"
11
11
SeeAlso=DiffDays
12
12
Snip=548.dat
13
13
Delphi2=Y
@@ -53,7 +53,7 @@ FPC=Y
53
53
54
54
[DateDay]
55
55
Desc="Extracts the day of the month from a specified date."
56
-
Credits="Adapted from code contributed by Bill Miller."
56
+
Extra="<p>Adapted from code contributed by Bill Miller.</p>"
57
57
Units=SysUtils
58
58
SeeAlso=DateMonth,DateYear,DayOfYear
59
59
TestInfo=advanced
@@ -78,7 +78,7 @@ FPC=Y
78
78
79
79
[DateMonth]
80
80
Desc="Extracts the month from a specified date."
81
-
Credits="Adapted from code contributed by Bill Miller."
81
+
Extra="<p>Adapted from code contributed by Bill Miller.</p>"
Desc="Returns the last day of the month containing the given date."
105
-
Comments="The date returned is midnight at the beginning of the last day of the month."
105
+
Extra="<p>The date returned is midnight at the beginning of the last day of the month.</p>"
106
106
Units=SysUtils
107
107
SeeAlso=DateMonth,DateMonthStart,DaysInMonth
108
108
Depends=DaysInMonth
@@ -128,8 +128,7 @@ FPC=Y
128
128
129
129
[DateMonthStart]
130
130
Desc="Returns the first day of the month containing the given date."
131
-
Credits="Slightly modified from code contributed by Bill Miller."
132
-
Comments="The date returned is midnight at the beginning of the first day of the month."
131
+
Extra="<p>The date returned is midnight at the beginning of the first day of the month.</p><p>Slightly modified from code contributed by Bill Miller.</p>"
133
132
Units="SysUtils"
134
133
SeeAlso=DateMonth,DateMonthEnd
135
134
TestInfo=advanced
@@ -154,7 +153,7 @@ FPC=Y
154
153
155
154
[DateQuarter]
156
155
Desc="Returns the number of the quarter containing a given date."
157
-
Credits="Based on code contributed by Homolibere."
156
+
Extra="<p>Based on code contributed by Homolibere.</p>"
158
157
Units=SysUtils
159
158
SeeAlso=DateQuarterStart,DateQuarterEnd
160
159
TestInfo=advanced
@@ -179,7 +178,7 @@ FPC=Y
179
178
180
179
[DateQuarterEnd]
181
180
Desc="Gets the date of the last day of the quarter containing a given date."
182
-
Credits="Modified from code contributed by Homolibere."
181
+
Extra="<p>Modified from code contributed by Homolibere.</p>"
183
182
Units=SysUtils
184
183
SeeAlso=DateQuarter,DateQuarterStart
185
184
TestInfo=advanced
@@ -204,7 +203,7 @@ FPC=Y
204
203
205
204
[DateQuarterStart]
206
205
Desc="Gets the date of the first day of the quarter containing a given date."
207
-
Credits="Modified from code contributed by Homolibere."
206
+
Extra="<p>Modified from code contributed by Homolibere.</p>"
208
207
Units=SysUtils
209
208
SeeAlso=DateQuarter,DateQuarterEnd
210
209
TestInfo=advanced
@@ -274,7 +273,7 @@ FPC=Y
274
273
275
274
[DateYear]
276
275
Desc="Extracts the year from a specified date."
277
-
Credits="Adapted from code contributed by Bill Miller."
276
+
Extra="<p>Adapted from code contributed by Bill Miller.</p>"
Desc="Returns the last day of the year containing the specified date."
301
-
Credits="Renamed routine from Bill Miller's snippets collection."
302
-
Comments="The date returned is midnight at the beginning of the last day of the year."
300
+
Extra="<p>The date returned is midnight at the beginning of the last day of the year.</p><p>Renamed routine from Bill Miller's snippets collection.</p>"
303
301
Units=SysUtils
304
302
SeeAlso=DateYear,DateYearStart
305
303
TestInfo=advanced
@@ -324,8 +322,7 @@ FPC=Y
324
322
325
323
[DateYearStart]
326
324
Desc="Returns the first day of the year containing the specified date."
327
-
Credits="Renamed from routine contributed by Bill Miller."
328
-
Comments="The date returned is midnight at the beginning of the first day of the year."
325
+
Extra="<p>The date returned is midnight at the beginning of the first day of the year.</p><p>Renamed from routine contributed by Bill Miller.</p>"
329
326
Units=SysUtils
330
327
SeeAlso=DateYear,DateYearEnd
331
328
TestInfo=advanced
@@ -350,7 +347,7 @@ FPC=Y
350
347
351
348
[DayOfYear]
352
349
Desc="Returns the day of the year for the given date."
353
-
Credits="From Bill Miller's snippets collection."
350
+
Extra="<p>From Bill Miller's snippets collection.</p>"
354
351
Depends=DateYearStart
355
352
SeeAlso=DateDay
356
353
Snip=550.dat
@@ -398,7 +395,7 @@ FPC=Y
398
395
399
396
[DiffDays]
400
397
Desc="Returns the whole number of days separating two given dates."
401
-
Credits="Contributed by Bill Miller."
398
+
Extra="<p>Contributed by Bill Miller.</p>"
402
399
SeeAlso=AddDays
403
400
Snip=549.dat
404
401
Delphi2=Y
@@ -421,7 +418,7 @@ FPC=Y
421
418
422
419
[Is24HourTimeFormat]
423
420
Desc="Checks if the 24 hour time format is being used by the current thread."
424
-
Credits="Contributed by Bill Miller."
421
+
Extra="<p>Contributed by Bill Miller.</p>"
425
422
Units=SysUtils,Windows
426
423
Snip=229.dat
427
424
Delphi2=Y
@@ -444,7 +441,7 @@ FPC=N
444
441
445
442
[IsDaylightSaving]
446
443
Desc="Checks if current local time is daylight saving time."
447
-
Comments="Raises exception if daylight saving information cannot be obtained from operating system."
444
+
Extra="<p>Raises exception if daylight saving information cannot be obtained from operating system.</p>"
Copy file name to clipboardExpand all lines: csdb/collection/encoding.ini
+1-2
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,7 @@
7
7
8
8
[BytesToAnsiString]
9
9
DescEx="Converts the given array of bytes to an ANSI raw byte string, which is returned. The returned string has the code page specified by <var>CodePage</var>."
10
-
Credits="Based on code from the Stack Overflow posting [How can I convert TBytes to RawByteString?]."
Extra="<p>Based on code from the Stack Overflow posting <a href="http://stackoverflow.com/questions/773297/how-can-i-convert-tbytes-to-rawbytestring">How can I convert TBytes to RawByteString?</a>.</p>"
Copy file name to clipboardExpand all lines: csdb/collection/file.ini
+8-11
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ FPC=Y
30
30
31
31
[CopyFiles]
32
32
DescEx="<p>Copies files from directory name <var>SrcDir</var> to directory named <var>DestDir</var>. Files to be copied are filtered using DOS wildcard mask in <var>WildCard</var>.</p><p>Sub-directories are not copied. <var>DestDir</var> must exist.</p>"
33
-
Credits="Contributed by Jan Roza."
33
+
Extra="<p>Contributed by Jan Roza.</p>"
34
34
Units=Classes,SysUtils,Windows
35
35
Depends=ListFiles,DirToPath
36
36
SeeAlso=CopyFile
@@ -124,7 +124,7 @@ FPC=Y
124
124
125
125
[DeleteFilesWithUndo]
126
126
Desc="Deletes a list of files and sends them all to the recycle bin. Returns True if the files were deleted successfully and False if the function fails."
127
-
Comments="If any of the listed files don't exist none will be deleted and the function will fail."
127
+
Extra="<p>If any of the listed files don't exist none will be deleted and the function will fail.</p>"
Desc="Returns the size of a file as a formatted string. For files larger than 1Kb the size is approximate. If the file size can't be read then the empty string is returned."
243
-
Credits="Modification of code contributed by Michael Rockett."
243
+
Extra="<p>Modification of code contributed by Michael Rockett.</p>"
244
244
Units=SysUtils
245
245
Depends=SizeOfFile64
246
246
Snip=407.dat
@@ -333,7 +333,7 @@ FPC=Y
333
333
334
334
[GetLastDirectory]
335
335
Desc="Returns the last directory in a specified path or the empty string if the given path is not a directory."
336
-
Credits="Modified from code contributed by Bill Miller."
336
+
Extra="<p>Modified from code contributed by Bill Miller.</p>"
337
337
Units=SysUtils
338
338
Depends=IsDirectory,PathToDir
339
339
Snip=408.dat
@@ -546,8 +546,7 @@ FPC=Y
546
546
547
547
[IsValidFileName]
548
548
Desc="Tests if a file name is a valid on Windows file systems."
549
-
Credits="Based on information contained in the [File Names, Paths and Namespaces] topic on the Microsoft Developer Network."
Extra="<p>Based on information contained in the <a href="http://msdn.microsoft.com/en-us/library/aa365247.aspx">File Names, Paths and Namespaces</a> topic on the Microsoft Developer Network.</p>"
551
550
Units=SysUtils
552
551
Depends=SizeOfFile64
553
552
Snip=260.dat
@@ -618,8 +617,7 @@ FPC=Y
618
617
619
618
[PathIsRoot]
620
619
Desc="Checks if the given path is a root directory."
621
-
Credits="Slightly modified from code created by Steve Moss, CoCo Systems Ltd. Contributed by Bill Miller."
622
-
Comments="Works with UNC paths and paths with drive specifiers."
620
+
Extra="<p>Works with UNC paths and paths with drive specifiers.</p><p>Slightly modified from code created by Steve Moss, CoCo Systems Ltd. Contributed by Bill Miller.</p>"
623
621
Units=SysUtils
624
622
Depends=DirToPath
625
623
Snip=354.dat
@@ -711,7 +709,7 @@ FPC=Y
711
709
712
710
[SizeOfFile64]
713
711
Desc="Gets the size of a file. Returns -1 if the file doesn't exist or can't be accessed."
714
-
Comments="Works with files larger than 2Gb."
712
+
Extra="<p>Works with files larger than 2Gb.</p>"
715
713
Units=SysUtils,Windows
716
714
SeeAlso=SizeOfFile
717
715
Snip=257.dat
@@ -757,8 +755,7 @@ FPC=Y
757
755
758
756
[URLFromShortcut]
759
757
Desc="Returns the URL referenced by the given URL shortcut file, or the empty string if the given file is not a shortcut file."
760
-
Credits="Derived from a similar function published on [Torry's Delphi Pages]."
761
-
Credits_URL="http://www.torry.net/"
758
+
Extra="<p>Derived from a similar function published on <a href="http://www.torry.net/">Torry's Delphi Pages</a>.</p>"
0 commit comments