| 930 | |
| 931 | namespace { |
| 932 | std::string trim_text(std::string text) { |
| 933 | boost::regex start(R"(^( | |\\[nNh])+)"); |
| 934 | boost::regex end(R"(( | |\\[nNh])+$)"); |
| 935 | |
| 936 | text = regex_replace(text, start, "", boost::format_first_only); |
| 937 | text = regex_replace(text, end, "", boost::format_first_only); |
| 938 | return text; |
| 939 | } |
| 940 | |
| 941 | void expand_times(AssDialogue *src, AssDialogue *dst) { |
| 942 | dst->Start = std::min(dst->Start, src->Start); |
no test coverage detected