2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-07-04 15:25:45 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2006-07-14 07:23:39 +00:00
|
|
|
|
|
|
|
#include <types.hxx>
|
2010-10-07 11:02:05 +01:00
|
|
|
#include <osl/diagnose.h>
|
2006-07-14 07:23:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
sal_Unicode ConvertMathPrivateUseAreaToUnicode( sal_Unicode cChar )
|
|
|
|
{
|
2009-11-12 15:30:38 +01:00
|
|
|
sal_Unicode cRes = cChar;
|
2006-07-14 07:23:39 +00:00
|
|
|
if (IsInPrivateUseArea( cChar ))
|
|
|
|
{
|
2011-03-12 12:11:06 +01:00
|
|
|
OSL_FAIL( "Error: private use area characters should no longer be in use!" );
|
2010-07-23 17:21:05 +02:00
|
|
|
cRes = (sal_Unicode) '@'; // just some character that should easily be notice as odd in the context
|
2006-07-14 07:23:39 +00:00
|
|
|
}
|
|
|
|
return cRes;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sal_Unicode ConvertMathToMathML( sal_Unicode cChar )
|
|
|
|
{
|
2009-11-12 15:30:38 +01:00
|
|
|
sal_Unicode cRes = ConvertMathPrivateUseAreaToUnicode( cChar );
|
2006-07-14 07:23:39 +00:00
|
|
|
return cRes;
|
|
|
|
}
|
|
|
|
|
2010-10-14 08:30:41 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|