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

Function check_start

src/command/edit.cpp:946–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

944}
945
946bool check_start(AssDialogue *d1, AssDialogue *d2) {
947 if (boost::starts_with(d1->Text.get(), d2->Text.get())) {
948 d1->Text = trim_text(d1->Text.get().substr(d2->Text.get().size()));
949 expand_times(d1, d2);
950 return true;
951 }
952 return false;
953}
954
955bool check_end(AssDialogue *d1, AssDialogue *d2) {
956 if (boost::ends_with(d1->Text.get(), d2->Text.get())) {

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