ltd-beget / stringstream
Php Stringstream data structure.
Installs: 74 005
Dependents: 3
Suggesters: 0
Security: 0
Stars: 3
Watchers: 18
Forks: 4
Open Issues: 3
Requires
- php: >=7.4
- ltd-beget/ascii-table: 1.* || 2.*
Requires (Dev)
- phpunit/phpunit: ^9.5.0
This package is not auto-updated.
Last update: 2024-12-27 04:44:36 UTC
README
Php Stringstream data structure.
Installation
composer require ltd-beget/stringstream
Usage
<?php use LTDBeget\stringstream\StringStream; require(__DIR__ . '/vendor/autoload.php'); $stream = new StringStream("Hello, World!"); do { if($stream->currentAscii()->isWhiteSpace()) { $stream->ignoreWhitespace(); } else { echo $stream->current().PHP_EOL; $stream->next(); } } while (! $stream->isEnd());
License
released under the MIT License. See the bundled LICENSE file for details.