(content: string, startIndex: number, endIndex: number)
| 100 | } |
| 101 | |
| 102 | function sliceUtf8(content: string, startIndex: number, endIndex: number): string { |
| 103 | const utf8 = Buffer.from(content, 'utf8'); |
| 104 | return utf8.subarray(startIndex, endIndex).toString('utf8'); |
| 105 | } |
| 106 | |
| 107 | function extractNodeContent(node: Node, content: string): string { |
| 108 | const byteSlice = sliceUtf8(content, node.startIndex, node.endIndex); |
no outgoing calls
no test coverage detected