1*d107581fSAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*d107581fSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*d107581fSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*d107581fSAndrew Rist * distributed with this work for additional information 6*d107581fSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*d107581fSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*d107581fSAndrew Rist * "License"); you may not use this file except in compliance 9*d107581fSAndrew Rist * with the License. You may obtain a copy of the License at 10*d107581fSAndrew Rist * 11*d107581fSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*d107581fSAndrew Rist * 13*d107581fSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*d107581fSAndrew Rist * software distributed under the License is distributed on an 15*d107581fSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*d107581fSAndrew Rist * KIND, either express or implied. See the License for the 17*d107581fSAndrew Rist * specific language governing permissions and limitations 18*d107581fSAndrew Rist * under the License. 19*d107581fSAndrew Rist * 20*d107581fSAndrew Rist *************************************************************/ 21*d107581fSAndrew Rist 22*d107581fSAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir // MARKER(update_precomp.py): autogen include statement, do not remove 25cdf0e10cSrcweir #include "precompiled_starmath.hxx" 26cdf0e10cSrcweir 27cdf0e10cSrcweir 28cdf0e10cSrcweir #include <types.hxx> 29cdf0e10cSrcweir 30cdf0e10cSrcweir ConvertMathPrivateUseAreaToUnicode(sal_Unicode cChar)31cdf0e10cSrcweirsal_Unicode ConvertMathPrivateUseAreaToUnicode( sal_Unicode cChar ) 32cdf0e10cSrcweir { 33cdf0e10cSrcweir sal_Unicode cRes = cChar; 34cdf0e10cSrcweir if (IsInPrivateUseArea( cChar )) 35cdf0e10cSrcweir { 36cdf0e10cSrcweir DBG_ASSERT( 0, "Error: private use area characters should no longer be in use!" ); 37cdf0e10cSrcweir cRes = (sal_Unicode) '@'; // just some character that should easily be notice as odd in the context 38cdf0e10cSrcweir } 39cdf0e10cSrcweir return cRes; 40cdf0e10cSrcweir } 41cdf0e10cSrcweir 42cdf0e10cSrcweir ConvertMathToMathML(sal_Unicode cChar)43cdf0e10cSrcweirsal_Unicode ConvertMathToMathML( sal_Unicode cChar ) 44cdf0e10cSrcweir { 45cdf0e10cSrcweir sal_Unicode cRes = ConvertMathPrivateUseAreaToUnicode( cChar ); 46cdf0e10cSrcweir return cRes; 47cdf0e10cSrcweir } 48cdf0e10cSrcweir 49