webengine/osswebengine/WebCore/platform/TextEncodingRegistry.cpp
changeset 13 10e98eab6f85
parent 0 dd21522fd290
child 16 a359256acfc6
equal deleted inserted replaced
8:7c90e6132015 13:10e98eab6f85
    21  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    21  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    22  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    22  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    23  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    23  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    24  */
    24  */
    25 
    25 
    26 #include "config.h"
    26 
    27 #include "TextEncodingRegistry.h"
    27 #include "TextEncodingRegistry.h"
    28 
    28 
    29 #include "PlatformString.h"
    29 #include "PlatformString.h"
    30 #include "TextCodecLatin1.h"
    30 #include "TextCodecLatin1.h"
    31 #include "TextCodecUTF16.h"
    31 #include "TextCodecUTF16.h"
   246 bool noExtendedTextEncodingNameUsed()
   246 bool noExtendedTextEncodingNameUsed()
   247 {
   247 {
   248     return !didExtendTextCodecMaps;
   248     return !didExtendTextCodecMaps;
   249 }
   249 }
   250 
   250 
       
   251 #if PLATFORM(SYMBIAN)
       
   252 void deleteEncodingMaps()
       
   253 {
       
   254     delete textEncodingNameMap;
       
   255     textEncodingNameMap = NULL;
       
   256     delete textCodecMap;
       
   257     textCodecMap = NULL;
       
   258     didExtendTextCodecMaps = false;
       
   259 }
       
   260 #endif
       
   261 
   251 } // namespace WebCore
   262 } // namespace WebCore