MCPcopy Create free account
hub / github.com/Qinbf/groundmap / line_char_end

Function line_char_end

scripts/section_parser.py:122–126  ·  view source on GitHub ↗
(idx: int)

Source from the content-addressed store, hash-verified

120 text_len = len(text)
121
122 def line_char_end(idx: int) -> int:
123 # idx 行末字符偏移(不含换行符)
124 if idx < n - 1:
125 return starts[idx + 1] - 1
126 return text_len
127
128 blocks: list[Block] = []
129 i = 0

Callers 1

split_blocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected