ltd-beget / stringstream
PHP 字符串流数据结构。
v2.0.0
2022-01-26 16:24 UTC
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-09-20 03:28:19 UTC
README
PHP 字符串流数据结构。
安装
composer require ltd-beget/stringstream
使用
<?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());
许可协议
在MIT许可下发布。有关详细信息,请参阅附带的LICENSE文件。