golding / stringstream
PHP Stringstream 数据结构。
v1.0.0
2022-05-18 13:19 UTC
Requires
- php: >=8.0
- golding/ascii-table: 1.* || v1.* || 2.*
README
PHP Stringstream 数据结构。
安装
composer require golding/stringstream
用法
<?php use Golding\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());
许可证
在MIT许可证下发布。有关详细信息,请参阅捆绑的LICENSE文件。