MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / check_end

Function check_end

src/command/edit.cpp:955–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

953}
954
955bool check_end(AssDialogue *d1, AssDialogue *d2) {
956 if (boost::ends_with(d1->Text.get(), d2->Text.get())) {
957 d1->Text = trim_text(d1->Text.get().substr(0, d1->Text.get().size() - d2->Text.get().size()));
958 expand_times(d1, d2);
959 return true;
960 }
961 return false;
962}
963
964}
965

Callers 1

operator()Function · 0.85

Calls 4

trim_textFunction · 0.85
expand_timesFunction · 0.85
getMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected