MCPcopy Create free account
hub / github.com/cuberite/cuberite / ExtractText

Method ExtractText

src/CompositeChat.cpp:317–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315
316
317AString cCompositeChat::ExtractText(void) const
318{
319 AString Msg;
320 for (cParts::const_iterator itr = m_Parts.begin(), end = m_Parts.end(); itr != end; ++itr)
321 {
322 switch ((*itr)->m_PartType)
323 {
324 case ptText:
325 case ptClientTranslated:
326 case ptRunCommand:
327 case ptSuggestCommand:
328 {
329 Msg.append((*itr)->m_Text);
330 break;
331 }
332 case ptUrl:
333 {
334 Msg.append(((cUrlPart *)(*itr))->m_Url);
335 break;
336 }
337 } // switch (PartType)
338 } // for itr - m_Parts[]
339 return Msg;
340}
341
342
343

Callers 3

GetLogMessageFunction · 0.80
SendChatMethod · 0.80
SendChatMethod · 0.80

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected