| 944 | } |
| 945 | |
| 946 | bool 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 | |
| 955 | bool check_end(AssDialogue *d1, AssDialogue *d2) { |
| 956 | if (boost::ends_with(d1->Text.get(), d2->Text.get())) { |
no test coverage detected