[Libreoffice] [PATCH] Use generic base64 encoder

KUROSAWA, Takeshi taken.spc at gmail.com
Tue Feb 1 19:44:59 PST 2011


Hi,

SVG export filter has own Base64 encoder in FastString class.
But we have several more generic Base64 encoders in the code tree. e.g.

* Converter::encodeBase64
    http://opengrok.go-oo.org/xref/libs-gui/sax/source/tools/converter.cxx#encodeBase64
* SvXMLUnitConverter::encodeBase64
    http://opengrok.go-oo.org/xref/libs-core/xmloff/source/core/xmluconv.cxx#encodeBase64
* Base64Codec::encodeBase64
    http://opengrok.go-oo.org/xref/filters/filter/source/placeware/Base64Codec.cxx#encodeBase64
* Base64Codec::encodeBase64
   http://opengrok.go-oo.org/xref/components/package/source/manifest/Base64Codec.cxx#133

We can replace FastString's encoder by an another.
The patche uses SvXMLUnitConverter's because SVG Import filter also
uses SvXMLUnitConverter::decodeBase64.

The patch is under the LGPLv3+ / MPL.

Cheers,
--
KUROSAWA Takeshi <taken.spc at gmail.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Use-SvXMLUnitConverter-s-base64-encoder.patch
Type: text/x-patch
Size: 9966 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110202/ffda8390/attachment-0001.bin>


More information about the LibreOffice mailing list