MCPcopy Create free account
hub / github.com/MapServer/MapServer / text

Method text

renderers/agg/src/agg_gsv_text.cpp:566–581  ·  view source on GitHub ↗

-------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

564
565 //-------------------------------------------------------------------------
566 void gsv_text::text(const char* text)
567 {
568 if(text == 0)
569 {
570 m_chr[0] = 0;
571 m_text = m_chr;
572 return;
573 }
574 unsigned new_size = strlen(text) + 1;
575 if(new_size > m_text_buf.size())
576 {
577 m_text_buf.resize(new_size);
578 }
579 memcpy(&m_text_buf[0], text, new_size);
580 m_text = &m_text_buf[0];
581 }
582
583 //-------------------------------------------------------------------------
584 void gsv_text::rewind(unsigned)

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected