diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-05-20 18:01:53 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-05-20 18:01:53 +0000 |
commit | a0595ae34b99408001897d7446d4b7b204c0b636 (patch) | |
tree | 41b443d78a3d98bd5f6e7306d5c38d4a95171753 /idl | |
parent | 2588431390abaceb3b64ec18cbcc2d2ceeefb929 (diff) |
INTEGRATION: CWS mba30patches01 (1.4.30); FILE MERGED
2008/04/23 09:45:04 mba 1.4.30.2: RESYNC: (1.4-1.5); FILE MERGED
2008/03/18 15:40:04 mba 1.4.30.1: #i86353#: remove unused code
Diffstat (limited to 'idl')
-rw-r--r-- | idl/source/cmptools/char.cxx | 110 |
1 files changed, 1 insertions, 109 deletions
diff --git a/idl/source/cmptools/char.cxx b/idl/source/cmptools/char.cxx index 082ccda7ae44..3c3afa9c614a 100644 --- a/idl/source/cmptools/char.cxx +++ b/idl/source/cmptools/char.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: char.cxx,v $ - * $Revision: 1.5 $ + * $Revision: 1.6 $ * * This file is part of OpenOffice.org. * @@ -108,111 +108,3 @@ char * SvChar::GetTable( CharSet nSource , CharSet nDest ) return (char *)pSet; }; - - -/************************************************************************* -|* -|* RscChar::MakeChar() -|* -|* Beschreibung Der ByteString wird nach C-Konvention umgesetzt -|* Ersterstellung MM 20.03.91 -|* Letzte Aenderung MM 20.03.91 -|* -*************************************************************************/ -BOOL SvChar::MakeChar( char * pChar, char ** ppStr ) -{ - char c; - BOOL bDoInc = TRUE; // Noch einmal erhoehen - - if( **ppStr == '\\' ) - { - ++*ppStr; - switch( **ppStr ) - { - case 'a': - c = '\a'; - break; - case 'b': - c = '\b'; - break; - case 'f': - c = '\f'; - break; - case 'n': - c = '\n'; - break; - case 'r': - c = '\r'; - break; - case 't': - c = '\t'; - break; - case 'v': - c = '\v'; - break; - case '\\': - c = '\\'; - break; - case '?': - c = '\?'; - break; - case '\'': - c = '\''; - break; - case '\"': - c = '\"'; - break; - default: - { - if( '0' <= **ppStr && '7' >= **ppStr ) - { - bDoInc = FALSE; - - USHORT nChar = 0; - USHORT i = 0; - while( '0' <= **ppStr && '7' >= **ppStr && i != 3 ) - { - nChar = nChar * 8 + (BYTE)**ppStr - (BYTE)'0'; - ++*ppStr; - i++; - } - if( nChar > 255 ) - // Wert zu gross, oder kein 3 Ziffern - return( FALSE ); - c = (char)nChar; - } - else if( 'x' == **ppStr ) - { - bDoInc = FALSE; - - USHORT nChar = 0; - USHORT i = 0; - ++*ppStr; - while( isxdigit( **ppStr ) && i != 2 ) - { - if( isdigit( **ppStr ) ) - nChar = nChar * 16 + (BYTE)**ppStr - (BYTE)'0'; - else if( isupper( **ppStr ) ) - nChar = nChar * 16 + (BYTE)**ppStr - (BYTE)'A' +10; - else - nChar = nChar * 16 + (BYTE)**ppStr - (BYTE)'a' +10; - ++*ppStr; - i++; - } - c = (char)nChar; - } - else - c = **ppStr; - //c = pChange [ (unsigned char)**ppStr ]; - }; - } - } - else - c = **ppStr; - //c = pChange [ (unsigned char)**ppStr ]; - - if( **ppStr && bDoInc ) ++*ppStr; - *pChar = c; - return( TRUE ); -}; - |