Lines Matching defs:pAllocator

584 CXML_Element* CXML_Element::Parse(const void* pBuffer, size_t size, FX_BOOL bSaveSpaceChars, FX_FILESIZE* pParsedSize, IFX_Allocator* pAllocator)

586 CXML_Parser parser(pAllocator);
592 CXML_Element* CXML_Element::Parse(IFX_FileRead *pFile, FX_BOOL bSaveSpaceChars, FX_FILESIZE* pParsedSize, IFX_Allocator* pAllocator)
594 CXML_Parser parser(pAllocator);
600 CXML_Element* CXML_Element::Parse(IFX_BufferRead *pBuffer, FX_BOOL bSaveSpaceChars, FX_FILESIZE* pParsedSize, IFX_Allocator* pAllocator)
602 CXML_Parser parser(pAllocator);
608 CXML_Element::CXML_Element(IFX_Allocator* pAllocator)
613 , m_Children(pAllocator)
616 CXML_Element::CXML_Element(FX_BSTR qSpace, FX_BSTR tagName, IFX_Allocator* pAllocator)
621 , m_Children(pAllocator)
623 m_QSpaceName.Set(qSpace, pAllocator);
624 m_TagName.Set(tagName, pAllocator);
626 CXML_Element::CXML_Element(FX_BSTR qTagName, IFX_Allocator* pAllocator)
631 , m_Children(pAllocator)
641 IFX_Allocator* pAllocator = m_Children.m_pAllocator;
642 m_QSpaceName.Empty(pAllocator);
643 m_TagName.Empty(pAllocator);
644 m_AttrMap.RemoveAll(pAllocator);
649 IFX_Allocator* pAllocator = m_Children.m_pAllocator;
654 if (pAllocator) {
655 FX_DeleteAtAllocator(content, pAllocator, CXML_Content);
662 if (pAllocator) {
663 FX_DeleteAtAllocator(child, pAllocator, CXML_Element);
683 IFX_Allocator* pAllocator = m_Children.m_pAllocator;
685 tagName.Set(m_TagName, pAllocator);
688 FX_LPSTR str = tagName.AllocBuffer(m_QSpaceName.GetLength() + m_TagName.GetLength() + 2, pAllocator);
709 IFX_Allocator* pAllocator = m_Children.m_pAllocator;
711 nameSpace.Set(m_QSpaceName, pAllocator);
735 IFX_Allocator* pAllocator = m_Children.m_pAllocator;
750 FX_UTF8Encode(pwsSpace->GetPtr(), pwsSpace->GetLength(), uri, pAllocator);
768 IFX_Allocator* pAllocator = m_Children.m_pAllocator;
770 space.Set(item.m_QSpaceName, pAllocator);
771 name.Set(item.m_AttrName, pAllocator);
772 value.Set(item.m_Value, pAllocator);
951 void CXML_AttrMap::SetAt(FX_BSTR space, FX_BSTR name, FX_WSTR value, IFX_Allocator* pAllocator)
956 item.m_Value.Set(value, pAllocator);
961 if (pAllocator) {
962 m_pMap = FX_NewAtAllocator(pAllocator)CFX_ObjectArray<CXML_AttrItem>(pAllocator);
974 pItem->m_QSpaceName.Set(space, pAllocator);
975 pItem->m_AttrName.Set(name, pAllocator);
976 pItem->m_Value.Set(value, pAllocator);
978 void CXML_AttrMap::RemoveAt(FX_BSTR space, FX_BSTR name, IFX_Allocator* pAllocator)
986 item.Empty(pAllocator);
1001 void CXML_AttrMap::RemoveAll(IFX_Allocator* pAllocator)
1008 item.Empty(pAllocator);
1011 if (pAllocator) {
1012 FX_DeleteAtAllocator(m_pMap, pAllocator, CFX_ObjectArray<CXML_AttrItem>);