Stringstream data structure
PHP
Latest commit 881d35a Aug 25, 2016 @voksiv voksiv Remove check on empty string
Permalink
Failed to load latest commit information.
src/LTDBeget/stringstream Remove check on empty string Aug 25, 2016
.gitignore init project Mar 18, 2016
LICENSE Initial commit Mar 18, 2016
README.md edit readme Mar 18, 2016
composer.json unicode Mar 24, 2016
phpdox.xml init project Mar 18, 2016

README.md

Php StringStream

Latest Stable Version Total Downloads Scrutinizer Code Quality Documentation License MIT

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());

Developers

Regenerate documentation

$ ./vendor/bin/phpdox

License

released under the MIT License. See the bundled LICENSE file for details.