-
-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed prefix preserve to include in new methods
- Loading branch information
Showing
7 changed files
with
61 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,13 +82,13 @@ $bom = $csv->getOutputBOM(); //returns "\xEF\xBB\xBF" | |
|
||
~~~php | ||
AbstractCsv::skipInputBOM(): self; | ||
AbstractCsv::preserveInputBOM(): self; | ||
AbstractCsv::isInputBOMSkipped(): bool; | ||
AbstractCsv::includeInputBOM(): self; | ||
AbstractCsv::isInputBOMIncluded(): bool; | ||
~~~ | ||
|
||
- `skipInputBOM`: enables skipping the input BOM from your CSV document. | ||
- `preserveInputBOM`: preserves the input BOM from your CSV document while accessing its content. | ||
- `isInputBOMSkipped`: tells whether skipping the input BOM will be done. | ||
- `includeInputBOM`: preserves the input BOM from your CSV document while accessing its content. | ||
- `isInputBOMIncluded`: tells whether skipping or including the input BOM will be done. | ||
|
||
<p class="message-notice">By default and to avoid BC Break, the Input BOM is skipped.</p> | ||
|
||
|
@@ -99,7 +99,7 @@ If your document does not contains any BOM sequence you can speed up the CSV ite | |
$raw_csv = Reader::BOM_UTF8."john,doe,[email protected]\njane,doe,[email protected]\n"; | ||
$csv = Reader::createFromString($raw_csv); | ||
$csv->setOutputBOM(Reader::BOM_UTF16_BE); | ||
$csv->preserveInputBOM(); | ||
$csv->includeInputBOM(); | ||
ob_start(); | ||
$csv->output(); | ||
$document = ob_get_clean(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters