scanner

package
v0.0.0-...-461a5da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

This package provides Ruby's StringScanner-like functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func NewScanner

func NewScanner(input string) *Scanner

func (*Scanner) Getch

func (scn *Scanner) Getch() (rtn string, ok bool)

func (*Scanner) IsBol

func (scn *Scanner) IsBol() bool

func (*Scanner) IsEos

func (scn *Scanner) IsEos() bool

func (*Scanner) Peek

func (scn *Scanner) Peek(length int) string

func (*Scanner) Scan

func (scn *Scanner) Scan(regExpStr string) (rtn string, ok bool)

func (*Scanner) ScanUntil

func (scn *Scanner) ScanUntil(regExpStr string) (rtn string, ok bool)

func (*Scanner) SkipUntil

func (scn *Scanner) SkipUntil(regExpStr string) (rtn int, ok bool)

func (*Scanner) Terminate

func (scn *Scanner) Terminate()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL