Whether `[at, at + length)` holds no line break, so a word written there keeps every line where it is.
(s: string, at: number, length: number)
| 780 | |
| 781 | /** Whether `[at, at + length)` holds no line break, so a word written there keeps every line where it is. */ |
| 782 | function onOneLine(s: string, at: number, length: number): boolean { |
| 783 | for (let i = at; i < at + length; i++) { |
| 784 | const c = s.charCodeAt(i); |
| 785 | if (c === CH_LF || c === CH_CR) return false; |
| 786 | } |
| 787 | return true; |
| 788 | } |
| 789 | |
| 790 | /** |
| 791 | * Read as one statement each conditional whose branches are alternative statements where the grammar takes just |
no outgoing calls
no test coverage detected