find_unescaped_char() — svelte Function Reference
Architecture documentation for the find_unescaped_char() function in bracket.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD af15379d_007f_cd0a_40d8_8cf0839c87a8["find_unescaped_char()"] 0d221a90_b1cc_5826_235e_98f5216d6400["bracket.js"] af15379d_007f_cd0a_40d8_8cf0839c87a8 -->|defined in| 0d221a90_b1cc_5826_235e_98f5216d6400 bbaadf8f_cb8e_0082_28bb_f261c7f717f9["find_string_end()"] bbaadf8f_cb8e_0082_28bb_f261c7f717f9 -->|calls| af15379d_007f_cd0a_40d8_8cf0839c87a8 5a0d0871_ba0d_09d2_f4be_d2bedf1d0d6d["find_regex_end()"] 5a0d0871_ba0d_09d2_f4be_d2bedf1d0d6d -->|calls| af15379d_007f_cd0a_40d8_8cf0839c87a8 b161a806_74f8_1a37_2ba0_09c70e7b42f6["count_leading_backslashes()"] af15379d_007f_cd0a_40d8_8cf0839c87a8 -->|calls| b161a806_74f8_1a37_2ba0_09c70e7b42f6 style af15379d_007f_cd0a_40d8_8cf0839c87a8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/1-parse/utils/bracket.js lines 52–64
function find_unescaped_char(string, search_start_index, char) {
let i = search_start_index;
while (true) {
const found_index = string.indexOf(char, i);
if (found_index === -1) {
return Infinity;
}
if (count_leading_backslashes(string, found_index - 1) % 2 === 0) {
return found_index;
}
i = found_index + 1;
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does find_unescaped_char() do?
find_unescaped_char() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/1-parse/utils/bracket.js.
Where is find_unescaped_char() defined?
find_unescaped_char() is defined in packages/svelte/src/compiler/phases/1-parse/utils/bracket.js at line 52.
What does find_unescaped_char() call?
find_unescaped_char() calls 1 function(s): count_leading_backslashes.
What calls find_unescaped_char()?
find_unescaped_char() is called by 2 function(s): find_regex_end, find_string_end.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free