Collection of methods for parsing Segments.
- internal
CloneableInstantiable
| Methods |
| public static parseSegments(?string $path = NULL) Parses a path into an array of segments.
|
| Methods |
| private static isValidLiteral(string $literal) Check if $literal is a valid segment literal. Segment literals may only contain numbers, letters, and any of the following: .-~_
|
private static parse(string $segmentString, string $path, int $index)
|
| private static parseError(string $path, int $index, string $reason) |
private static parseLiteralFromPath(string $literal, string $path, int $index)
|
| private static parseSegmentFromPath(string $path, string $nextLiteral, int $index) Given a path and an index, reads a Segment from the path and updates the index.
|
private static parseVariableSegment(string $segmentStringWithoutBraces, string $separatorLiteral)
|
| Methods |
| private static isValidLiteral(string $literal) Check if $literal is a valid segment literal. Segment literals may only contain numbers, letters, and any of the following: .-~_
|
private static parse(string $segmentString, string $path, int $index)
|
| private static parseError(string $path, int $index, string $reason) |
private static parseLiteralFromPath(string $literal, string $path, int $index)
|
| private static parseSegmentFromPath(string $path, string $nextLiteral, int $index) Given a path and an index, reads a Segment from the path and updates the index.
|
| public static parseSegments(?string $path = NULL) Parses a path into an array of segments.
|
private static parseVariableSegment(string $segmentStringWithoutBraces, string $separatorLiteral)
|