Section: User Contributed Perl Documentation (3pm)
# For compatibility with Perl 5.005 and earlier, you must # *use* the module before inheriting from it! use qw (Locale::RecodeData); use base qw (Locale::RecodeData);
Adding new conversion modules is currently not straightforward, and you will have to edit the sources of some modules for that purpose.
First, you have to add your new converter class to the list found in Locale::_Conversions?(3), so that Locale::Recode?(3) knows about its presence. If there are valid aliases for the codeset of your converter, you will also have to edit Locale::_Aliases?(3).
:You normally don't have to implement the constructor. The default constructor implemented here will store the source and destination codesets in the protected members
The class implements one method:
New conversion classes must provide the following interface:
This method is implemented in the base class already.
"STRINGREF"in-place. In case of failure, return false, and make provisions that the method
"_getError()"returns an informative error message.:
Copyright (C) 2002-2013, Guido Flohr <firstname.lastname@example.org>, all rights reserved. See the source code for details.
This software is contributed to the Perl community by Imperia (<http://www.imperia.net/>).
Hey! The above document had some coding errors, which are explained below:
Tutoriais de Tecnologia Web