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)
| 850 | |
| 851 | /** Whether `[at, at + length)` holds no line break, so a word written there keeps every line where it is. */ |
| 852 | function onOneLine(s: string, at: number, length: number): boolean { |
| 853 | for (let i = at; i < at + length; i++) { |
| 854 | const c = s.charCodeAt(i); |
| 855 | if (c === CH_LF || c === CH_CR) return false; |
| 856 | } |
| 857 | return true; |
| 858 | } |
| 859 | |
| 860 | /** |
| 861 | * Read as one statement each conditional whose branches are alternative statements where the grammar takes just |
no outgoing calls
no test coverage detected