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

Method encodeToken

libqnapi/src/subconvert/formats/microdvd.cpp:71–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71QString MicroDVDSubtitleFormat::encodeToken(const SubToken &entry) const {
72 switch (entry.type) {
73 case STT_WS:
74 return " ";
75 case STT_WORD:
76 return entry.payload;
77 case STT_NEWLINE:
78 return "|";
79 case STT_BOLD:
80 return "{y:b}";
81 case STT_ITALIC:
82 return "{y:i}";
83 case STT_UNDERLINE:
84 return "{y:u}";
85 case STT_FONTCOLOR:
86 return QString("{c:$%1}").arg(entry.payload);
87 default:
88 return "";
89 }
90}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected