MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / is_line_code_region_end

Method is_line_code_region_end

scene/gui/code_edit.cpp:1952–1962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1950}
1951
1952bool CodeEdit::is_line_code_region_end(int p_line) const {
1953 ERR_FAIL_INDEX_V(p_line, get_line_count(), false);
1954 if (code_region_start_string.is_empty()) {
1955 return false;
1956 }
1957 if (is_in_string(p_line) != -1) {
1958 return false;
1959 }
1960 Vector<String> split = get_line(p_line).strip_edges().split_spaces(1);
1961 return split.size() > 0 && split[0] == code_region_end_string;
1962}
1963
1964/* Delimiters */
1965// Strings

Callers 1

test_code_edit.hFile · 0.80

Calls 4

split_spacesMethod · 0.80
strip_edgesMethod · 0.80
sizeMethod · 0.65
is_emptyMethod · 0.45

Tested by

no test coverage detected