Documentation

strings.php

This file is part of the Parsica library.

Copyright (c) 2020 Mathias Verraes mathias@verraes.net

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Table of Contents

Functions

string()  : Parser
Parse a non-empty string.
stringI()  : Parser
Parse a non-empty string, case-insensitive, and case-preserving. On success, it returns the string cased as the actually parsed input.

Functions

string()

Parse a non-empty string.

string(string $str) : Parser
Parameters
$str : string
Tags
psalm-return

Parser

see
stringI()
psalm-pure
Return values
Parser

stringI()

Parse a non-empty string, case-insensitive, and case-preserving. On success, it returns the string cased as the actually parsed input.

stringI(string $str) : Parser

eg stringI("foobar")->tryString("foObAr") will succeed with "foObAr"

Parameters
$str : string
Tags
TODO

The implementation could be replaced using Stream::takeWhile

psalm-return

Parser

see
string()
psalm-pure
Return values
Parser

        
On this page

Search results