callcatcher: GetAutofallback unused

This commit is contained in:
Caolán McNamara 2011-07-10 01:11:38 +01:00
parent 27c6b816bc
commit 9615f8797f
2 changed files with 0 additions and 86 deletions

View file

@ -149,7 +149,6 @@ sal_UCS4 GetVerticalChar( sal_UCS4 );
// #i80090# GetMirroredChar also needed outside vcl, moved to svapp.hxx
// VCL_DLLPUBLIC sal_UCS4 GetMirroredChar( sal_UCS4 );
sal_UCS4 GetLocalizedChar( sal_UCS4, LanguageType );
VCL_PLUGIN_PUBLIC const char* GetAutofallback( sal_UCS4 ) ;
// -------------
// - SalLayout -

View file

@ -159,91 +159,6 @@ VCL_DLLPUBLIC sal_UCS4 GetMirroredChar( sal_UCS4 nChar )
// -----------------------------------------------------------------------
// Get simple approximations for unicodes
const char* GetAutofallback( sal_UCS4 nChar )
{
const char* pStr = NULL;
switch( nChar )
{
case 0x01C0:
case 0x2223:
case 0x2758:
pStr = "|"; break;
case 0x02DC:
pStr = "~"; break;
case 0x037E:
pStr = ";"; break;
case 0x2000:
case 0x2001:
case 0x2002:
case 0x2003:
case 0x2004:
case 0x2005:
case 0x2006:
case 0x2007:
case 0x2008:
case 0x2009:
case 0x200A:
case 0x202F:
pStr = " "; break;
case 0x2010:
case 0x2011:
case 0x2012:
case 0x2013:
case 0x2014:
pStr = "-"; break;
case 0x2015:
pStr = "--"; break;
case 0x2016:
pStr = "||"; break;
case 0x2017:
pStr = "_"; break;
case 0x2018:
case 0x2019:
case 0x201B:
pStr = "\'"; break;
case 0x201A:
pStr = ","; break;
case 0x201C:
case 0x201D:
case 0x201E:
case 0x201F:
case 0x2033:
pStr = "\""; break;
case 0x2039:
pStr = "<"; break;
case 0x203A:
pStr = ">"; break;
case 0x203C:
pStr = "!!"; break;
case 0x203D:
pStr = "?"; break;
case 0x2044:
case 0x2215:
pStr = "/"; break;
case 0x2048:
pStr = "?!"; break;
case 0x2049:
pStr = "!?"; break;
case 0x2216:
pStr = "\\"; break;
case 0x2217:
pStr = "*"; break;
case 0x2236:
pStr = ":"; break;
case 0x2264:
pStr = "<="; break;
case 0x2265:
pStr = "<="; break;
case 0x2303:
pStr = "^"; break;
}
return pStr;
}
// -----------------------------------------------------------------------
sal_UCS4 GetLocalizedChar( sal_UCS4 nChar, LanguageType eLang )
{
// currently only conversion from ASCII digits is interesting