RTF parsing
Set of functions used to parse RTF strings.
RTF strings can be present in:c:struct:~A3DMDFCFDraftingRowData,:c:struct:~A3DMarkupGDTData,:c:struct:~A3DMarkupRichTextData
Sample code
/*codetogeteachindependentfieldofRTFstring*/
/*pRTF_UTF8isanRTFstring**/
A3DVoid*pRTF=NULL;
if(A3DMkpRTFInit(pRTF_UTF8,pRTF)==A3D_SUCCESS)
{
A3DRTFFieldDatasRTFFieldData=A3D_MAKE_DATA(A3DRTFFieldData);
while(A3DMkpRTFGetField(pRTF,&sRTFFieldData)==A3D_SUCCESS)
{
//.......
//TODO:processsRTFFieldData
//.......
A3DMkpRTFGetField(A3D_NULL_HANDLE,&sRTFFieldData)//memorycleanupofthesRTFFieldDatastructure
}
A3DMkpRTFDelete(pRTF);
}
Returns
A3D_SUCCESSon success, or an error code on failure
Structures
Enumerations
Functions