开发者

compare two CGPDFDictionary

开发者 https://www.devze.com 2023-01-08 03:30 出处:网络
Is the a way to compare two CGPDFDictionaries? There is a function memcmp, but it doesn\'t work for me, because dictionaries are in diffe开发者_运维问答rent memory cells.Can you use the CGPDFDictionar

Is the a way to compare two CGPDFDictionaries? There is a function memcmp, but it doesn't work for me, because dictionaries are in diffe开发者_运维问答rent memory cells.


Can you use the CGPDFDictionaryApplyFunction function ?

It seems like if you supply a callback function , it will be called for every key-value pair.

void CGPDFDictionaryApplyFunction (
   CGPDFDictionaryRef dict,
   CGPDFDictionaryApplierFunction function,
   void *info
);

So you can pass your second dictionary ( say dict2 ) as info. In your CGPDFDictionaryApplierFunction you can see if the current key being enumerated is also in dict2

0

精彩评论

暂无评论...
验证码 换一张
取 消