Documentation
¶
Overview ¶
editorleaf/search/search.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FoundPosition ¶
type FoundPosition struct {
Start editbuffer.Cursor
Stop editbuffer.Cursor
}
Position found in search results
func NewFoundPosition ¶
func NewFoundPosition(startRowIndex, startColIndex, stopRowIndex, stopColIndex int) FoundPosition
type SearchStruct ¶
type SearchStruct struct {
CurrentSearchIndex int
Indexes []FoundPosition
}
func NewSearch ¶
func NewSearch() *SearchStruct
func (*SearchStruct) GetFindIndexes ¶
func (ss *SearchStruct) GetFindIndexes() []FoundPosition
func (*SearchStruct) GetFoundPosition ¶
func (ss *SearchStruct) GetFoundPosition(rowIndex int) int
Returns the first index of the found search position that matches the row index. Return -1, not found match position.
Click to show internal directories.
Click to hide internal directories.