| 85 | } |
| 86 | |
| 87 | QString TMPlayerSubtitleFormat::encodeToken(const SubToken &entry) const { |
| 88 | switch (entry.type) { |
| 89 | case STT_WS: |
| 90 | return " "; |
| 91 | case STT_WORD: |
| 92 | return entry.payload; |
| 93 | case STT_NEWLINE: |
| 94 | return "|"; |
| 95 | case STT_BOLD: |
| 96 | return "{y:b}"; |
| 97 | case STT_ITALIC: |
| 98 | return "{y:i}"; |
| 99 | case STT_UNDERLINE: |
| 100 | return "{y:u}"; |
| 101 | case STT_FONTCOLOR: |
| 102 | return QString("{c:$%1}").arg(entry.payload); |
| 103 | default: |
| 104 | return ""; |
| 105 | } |
| 106 | } |
nothing calls this directly
no outgoing calls
no test coverage detected