(source: string, start: number, limit = source.length)
| 150 | } |
| 151 | |
| 152 | function findJsonStringEnd(source: string, start: number, limit = source.length): number { |
| 153 | for (let i = start + 1; i < limit; i++) { |
| 154 | const ch = source.charCodeAt(i) |
| 155 | if (ch === 0x5c) { |
| 156 | i++ |
| 157 | continue |
| 158 | } |
| 159 | if (ch === 0x22) return i |
| 160 | } |
| 161 | return -1 |
| 162 | } |
| 163 | |
| 164 | function findJsonContainerEnd(source: string, start: number, open: number, close: number, limit = source.length): number { |
| 165 | let depth = 0 |
no outgoing calls
no test coverage detected