Skip to content

Commit c6a3662

Browse files
authored
Merge pull request #43 from ws-garcia/encoding_autodetection
Encoding auto-detection
2 parents 95d99f7 + d5f27b9 commit c6a3662

11 files changed

+602
-438
lines changed

docs/api/csvtextstream.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ Easy-to-use class module developed to enable I/O operations over "big" text file
2929
<td style="text-align: left;">Gets the overall state of the pointer on the text stream. Returns <code>True</code> if the file pointer is at the end of a file, and <code>False</code> otherwise.</td>
3030
</tr>
3131
<tr>
32+
<td style="text-align: left; color:blue;"><em>autoDetectEncoding</em></td>
33+
<td style="text-align: left;">Property</td>
34+
<td style="text-align: left;">Indicates when to perform automatic encoding detection over the target file. Use <code>True</code> to encoding detection at stream open stage, and <code>False</code> otherwise.</td>
35+
</tr>
36+
<tr>
3237
<td style="text-align: left; color:blue;"><em>bufferLength</em></td>
3338
<td style="text-align: left;">Property</td>
3439
<td style="text-align: left;">Gets the number of string characters in the buffer.</td>
@@ -49,6 +54,16 @@ Easy-to-use class module developed to enable I/O operations over "big" text file
4954
<td style="text-align: left;">Closes the current text file stream. After close the current stream, user will lose the connection to CSV file.</td>
5055
</tr>
5156
<tr>
57+
<td style="text-align: left; color:blue;"><em>detectedEncoding</em></td>
58+
<td style="text-align: left;">Property</td>
59+
<td style="text-align: left;">String representation of the auto-detected encoding.</td>
60+
</tr>
61+
<tr>
62+
<td style="text-align: left; color:blue;"><em>DetectEncoding</em></td>
63+
<td style="text-align: left;">Method</td>
64+
<td style="text-align: left;">Determines the file encoding.</td>
65+
</tr>
66+
<tr>
5267
<td style="text-align: left; color:blue;"><em>endStreamOnLineBreak</em></td>
5368
<td style="text-align: left;">Property</td>
5469
<td style="text-align: left;">Allows to end buffer just after the first, from right to left, line break character.</td>

src/CSVArrayList.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Attribute VB_PredeclaredId = False
99
Attribute VB_Exposed = False
1010
'#
1111
'////////////////////////////////////////////////////////////////////////////////////////////
12-
' Copyright © 2021-2023 W. García
12+
' Copyright © 2021-2025 W. García
1313
' GPL-3.0 license | https://www.gnu.org/licenses/gpl-3.0.html/
1414
' https://ingwilfredogarcia.wordpress.com
1515
'#

0 commit comments

Comments
 (0)