| 2862 | } |
| 2863 | |
| 2864 | static unsigned LodePNGIText_copy(LodePNGInfo* dest, const LodePNGInfo* source) |
| 2865 | { |
| 2866 | size_t i = 0; |
| 2867 | dest->itext_keys = 0; |
| 2868 | dest->itext_langtags = 0; |
| 2869 | dest->itext_transkeys = 0; |
| 2870 | dest->itext_strings = 0; |
| 2871 | dest->itext_num = 0; |
| 2872 | for(i = 0; i != source->itext_num; ++i) |
| 2873 | { |
| 2874 | CERROR_TRY_RETURN(lodepng_add_itext(dest, source->itext_keys[i], source->itext_langtags[i], |
| 2875 | source->itext_transkeys[i], source->itext_strings[i])); |
| 2876 | } |
| 2877 | return 0; |
| 2878 | } |
| 2879 | |
| 2880 | void lodepng_clear_itext(LodePNGInfo* info) |
| 2881 | { |
no test coverage detected