Skip to content

About

Stringstream data structure

Topics

Resources

Stars

3 stars

Watchers

17 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

Php StringStream

Latest Stable Version Total Downloads Scrutinizer Code Quality 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());

License

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

About

Stringstream data structure

Topics

Resources

Stars

3 stars

Watchers

17 watching

Forks

Releases

Packages

Used by

Contributors

Languages