search

package
v0.0.0-...-cfec6bc Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: AGPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	TermSep         = "__term@sep__"
	SearchMarkLeft  = "__@mark__"
	SearchMarkRight = "__mark@__"
)
View Source
const (
	MarkDataType            = "search-mark"
	VirtualBlockRefDataType = "virtual-block-ref"
)

Variables

This section is empty.

Functions

func EncloseHighlighting

func EncloseHighlighting(text string, keywords []string, openMark, closeMark string, caseSensitive, splitWords bool) (ret string)

func GetMarkSpanEnd

func GetMarkSpanEnd() string

func GetMarkSpanStart

func GetMarkSpanStart(dataType string) string

func MarkText

func MarkText(text string, keyword string, beforeLen int, caseSensitive bool) (pos int, marked string)

func SplitKeyword

func SplitKeyword(keyword string) (keywords []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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