-
Would it be possible to get the length of an attribute value?
I'm thinking about on how to get the length of base64 encoded data within an svg file.
Many thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
pugixml stores all values as zero-terminated strings so strlen is the only option if you do need the length. Note that to decode the BASE64 contents you don't necessarily need the length - you can just parse the string character by character until reaching the null terminator. |
Beta Was this translation helpful? Give feedback.
pugixml stores all values as zero-terminated strings so strlen is the only option if you do need the length.
Note that to decode the BASE64 contents you don't necessarily need the length - you can just parse the string character by character until reaching the null terminator.