Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7713234
libuna_codepage_iso_8859_8.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
2 KB
Referenced Files
None
Subscribers
None
libuna_codepage_iso_8859_8.h
View Options
/*
* ISO 8859-8 codepage (Hebrew) functions
*
* Copyright (c) 2009, Joachim Metz <forensics@hoffmannbv.nl>,
* Hoffmann Investigations.
*
* Refer to AUTHORS for acknowledgements.
*
* This software is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this software. If not, see <http://www.gnu.org/licenses/>.
*/
#if !defined( _LIBUNA_CODEPAGE_ISO_8859_8_H )
#define _LIBUNA_CODEPAGE_ISO_8859_8_H
#include <common.h>
#include <types.h>
#if defined( __cplusplus )
extern "C" {
#endif
extern const uint16_t libuna_codepage_iso_8859_8_byte_stream_to_unicode_base_0xa0[ 96 ];
extern const uint8_t libuna_codepage_iso_8859_8_unicode_to_byte_stream_base_0x00a0[ 32 ];
extern const uint8_t libuna_codepage_iso_8859_8_unicode_to_byte_stream_base_0x05d0[ 32 ];
#define libuna_codepage_iso_8859_8_byte_stream_to_unicode( byte_stream_character ) \
( byte_stream_character < 0xa0 ) ? byte_stream_character : libuna_codepage_iso_8859_8_byte_stream_to_unicode_base_0xa0[ byte_stream_character - 0xa0 ]
#define libuna_codepage_iso_8859_8_unicode_to_byte_stream( unicode_character ) \
( unicode_character < 0x00a0 ) ? (uint8_t) unicode_character : \
( ( unicode_character >= 0x00a0 ) && ( unicode_character < 0x00c0 ) ) ? libuna_codepage_iso_8859_8_unicode_to_byte_stream_base_0x00a0[ unicode_character - 0x00a0 ] : \
( unicode_character == 0x00d7 ) ? 0xaa : \
( unicode_character == 0x00f7 ) ? 0xba : \
( ( unicode_character >= 0x05d0 ) && ( unicode_character < 0x05f0 ) ) ? libuna_codepage_iso_8859_8_unicode_to_byte_stream_base_0x05d0[ unicode_character - 0x05d0 ] : \
( unicode_character == 0x200e ) ? 0xfd : \
( unicode_character == 0x200f ) ? 0xfe : \
( unicode_character == 0x2017 ) ? 0xdf : \
0x1a
#if defined( __cplusplus )
}
#endif
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, Nov 21, 7:47 PM (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1361433
Default Alt Text
libuna_codepage_iso_8859_8.h (2 KB)
Attached To
Mode
rXMOUNT xmount
Attached
Detach File
Event Timeline
Log In to Comment