MCPcopy Create free account
hub / github.com/Grive/grive / AddText

Method AddText

libgrive/src/xml/Node.cc:283–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283Node Node::AddText( const std::string& str )
284{
285 assert( m_ptr != 0 ) ;
286 assert( IsCompatible( GetType(), text ) ) ;
287
288 Impl *child = new Impl( "#text", text, str ) ;
289 m_ptr->Add( child->AddRef() ) ;
290 return Node( child ) ;
291}
292
293void Node::AddAttribute( const std::string& name, const std::string& val )
294{

Callers 3

TestTreeMethod · 0.80
TestNormalMethod · 0.80
OnCharDataMethod · 0.80

Calls 3

AddRefMethod · 0.80
NodeClass · 0.70
AddMethod · 0.45

Tested by 2

TestTreeMethod · 0.64
TestNormalMethod · 0.64