rfc5234

package
v0.0.0-...-2b86a76 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package rfc5234 implements an RFC 5234 parser which provides basic productions used by the RFC 5322 parser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchAlpha

func MatchAlpha(cs []byte) (*rd.Match, []byte)

MatchAlpha matches a single ASCII alphabetical character.

// ALPHA          =  %x41-5A / %x61-7A   ; A-Z / a-z

func MatchCR

func MatchCR(cs []byte) (*rd.Match, []byte)

MatchCR matches a single carriage return.

// CR             =  %x0D
//                        ; carriage return

func MatchCRLF

func MatchCRLF(cs []byte) (*rd.Match, []byte)

MatchCRLF matches a network new line: a carriage return followed by a line feed.

// CRLF           =  CR LF
//                        ; Internet standard newline

func MatchDQuote

func MatchDQuote(cs []byte) (*rd.Match, []byte)

MatchDQuote matches a single double quote.

// DQUOTE         =  %x22
// 					; " (Double Quote)

func MatchDigit

func MatchDigit(cs []byte) (*rd.Match, []byte)

MatchDigit matches a single ASCII digit.

// DIGIT          =  %x30-39
//                        ; 0-9

func MatchHTab

func MatchHTab(cs []byte) (*rd.Match, []byte)

MatchHTab matches a single tab.

// HTAB           =  %x09
//                   ; horizontal tab

func MatchLF

func MatchLF(cs []byte) (*rd.Match, []byte)

MatchLF matches a single newline character.

// LF             =  %x0A
//                        ; linefeed

func MatchSP

func MatchSP(cs []byte) (*rd.Match, []byte)

MatchSP matches a single space.

// SP             =  %x20

func MatchVChar

func MatchVChar(cs []byte) (*rd.Match, []byte)

MatchVChar matches a single visible ASCII character.

// VCHAR          =  %x21-7E
//                        ; visible (printing) characters

func MatchWSP

func MatchWSP(cs []byte) (*rd.Match, []byte)

MatchWSP matches either a single space or tab.

// WSP            =  SP / HTAB
//                        ; white space

Types

This section is empty.

Jump to

Keyboard shortcuts

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