marker

package
v2.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// For simplificity we are using a rune that is one byte wide. A character
	// that is not used widely (apart from cli's) is the bell character (7).
	MarkerEscaping rune = '\a'

	// Marker1                rune = '\uF000' // 61440
	MarkerLineBreak        rune = '\uF001' // 61441
	MarkerCodeBlockNewline rune = '\uF002' // 61442
)

Variables

View Source
var (
	BytesMarkerEscaping = []byte{7}

	// BytesMarker1                = []byte{239, 128, 128}
	BytesMarkerLineBreak        = []byte{239, 128, 129}
	BytesTWICEMarkerLineBreak   = []byte{239, 128, 129, 239, 128, 129}
	BytesMarkerCodeBlockNewline = []byte{239, 128, 130}
)

Functions

func GetMarker

func GetMarker(p []byte, i int) (marker rune, size int)

func IsSpace

func IsSpace(r rune) bool

func SplitFunc

func SplitFunc(str []byte, fn func(rune) bool) [][]byte

TODO: should this be in another package?

Types

This section is empty.

Jump to

Keyboard shortcuts

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