MCPcopy Create free account
hub / github.com/QNapi/qnapi / encodeToken

Method encodeToken

libqnapi/src/subconvert/formats/tmplayer.cpp:87–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87QString 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected