MCPcopy Create free account
hub / github.com/cinience/RedisStudio / HasAttribute

Method HasAttribute

DuiLib/Core/UIMarkup.cpp:191–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191bool CMarkupNode::HasAttribute(LPCTSTR pstrName)
192{
193 if( m_pOwner == NULL ) return false;
194 if( m_nAttributes == 0 ) _MapAttributes();
195 for( int i = 0; i < m_nAttributes; i++ ) {
196 if( _tcscmp(m_pOwner->m_pstrXML + m_aAttributes[i].iName, pstrName) == 0 ) return true;
197 }
198 return false;
199}
200
201void CMarkupNode::_MapAttributes()
202{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected