crash.software
Projects
Pull Requests
Issues
Builds
termdash
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
termdash
Files
🤬
Sign In
9a82474a
ROOT
/
internal
/
wrap
/
wrap.go
Search
History
410 lines
|
ISO-8859-1
|
10 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
Mode
String
()
:
string
modeNames
Never
:
Mode
AtRunes
AtWords
ValidText
(text string)
:
error
ValidCells
(cells []*buffer.Cell)
:
error
Cells
(cells []*buffer.Cell, width int, m Mode)
:
([][]*buffer.Cell, error)
cellScannerState
cellScanner
cells
:
[]*buffer.Cell
nextIdx
:
int
wordStartIdx
:
int
wordEndIdx
:
int
width
:
int
posX
:
int
mode
:
Mode
atRunesInWord
:
bool
lines
:
[][]*buffer.Cell
line
:
[]*buffer.Cell
newCellScanner
(cells []*buffer.Cell, width int, m Mode)
:
*cellScanner
scanCellRunes
(cs *cellScanner)
:
cellScannerState
runeToCurrentLine
(cs *cellScanner)
:
cellScannerState
newLineForLineBreak
(cs *cellScanner)
:
cellScannerState
newLineForAtRunes
(cs *cellScanner)
:
cellScannerState
scanEOF
(cs *cellScanner)
:
cellScannerState
markWordStart
(cs *cellScanner)
:
cellScannerState
scanWord
(cs *cellScanner)
:
cellScannerState
wordToCurrentLine
(cs *cellScanner)
:
cellScannerState
wrapWord
(cs *cellScanner)
:
cellScannerState
isWordCell
(c *buffer.Cell)
:
bool
runeWrapNeeded
(r rune, posX, width int)
:
bool
*cellScanner
next
()
:
*buffer.Cell
peek
()
:
*buffer.Cell
peekPrev
()
:
*buffer.Cell
wordCells
()
:
[]*buffer.Cell
wordWidth
()
:
int
isWordStart
()
:
bool
All occurrences
Please wait...
Page is in error, reload to recover