| 1938 | } |
| 1939 | |
| 1940 | bool CodeEdit::is_line_code_region_start(int p_line) const { |
| 1941 | ERR_FAIL_INDEX_V(p_line, get_line_count(), false); |
| 1942 | if (code_region_start_string.is_empty()) { |
| 1943 | return false; |
| 1944 | } |
| 1945 | if (is_in_string(p_line) != -1) { |
| 1946 | return false; |
| 1947 | } |
| 1948 | Vector<String> split = get_line(p_line).strip_edges().split_spaces(1); |
| 1949 | return split.size() > 0 && split[0] == code_region_start_string; |
| 1950 | } |
| 1951 | |
| 1952 | bool CodeEdit::is_line_code_region_end(int p_line) const { |
| 1953 | ERR_FAIL_INDEX_V(p_line, get_line_count(), false); |
no test coverage detected