Source File
parser.go
Belonging Package
github.com/vmihailenco/tagparser/v2/internal/parser
package parserimport ()type Parser struct {b []bytei int}func ( []byte) *Parser {return &Parser{b: ,}}func ( string) *Parser {return New(internal.StringToBytes())}func ( *Parser) () []byte {return .b[.i:]}func ( *Parser) () bool {return .i < len(.b)}func ( *Parser) () byte {if .Valid() {:= .b[.i].Advance()return}return 0}func ( *Parser) () byte {if .Valid() {return .b[.i]}return 0}func ( *Parser) () {.i++}func ( *Parser) ( byte) bool {if .Peek() == {.Advance()return true}return false}func ( *Parser) ( []byte) bool {if len() > len(.b[.i:]) {return false}if !bytes.Equal(.b[.i:.i+len()], ) {return false}.i += len()return true}func ( *Parser) ( byte) ([]byte, bool) {:= bytes.IndexByte(.b[.i:], )if == -1 {:= .b[.i:].i = len(.b)return , false}:= .b[.i : .i+].i += + 1return , true}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |