SNAP Library 3.0, User Reference  2016-07-20 17:56:49
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TEncoding_ISO8859_3 Class Reference

#include <unicode.h>

Static Public Member Functions

static TStr GetName ()
 
static int ToUnicode (int c)
 
static int FromUnicode (int c)
 

Static Public Attributes

static const int toUnicodeTable [6 *16]
 
static const int fromUnicodeTable1 [14 *16]
 
static const int fromUnicodeTable2 [2]
 

Detailed Description

Definition at line 462 of file unicode.h.

Member Function Documentation

static int TEncoding_ISO8859_3::FromUnicode ( int  c)
inlinestatic

Definition at line 469 of file unicode.h.

469  {
470  if (0 <= c && c < 0xa0) return c;
471  else if (0xa0 <= c && c < 0x180) return fromUnicodeTable1[c - 0xa0];
472  else if (0x2d8 <= c && c < 0x2da) return fromUnicodeTable2[c - 0x2d8];
473  else return -1; }
static const int fromUnicodeTable1[14 *16]
Definition: unicode.h:466
static const int fromUnicodeTable2[2]
Definition: unicode.h:466
static TStr TEncoding_ISO8859_3::GetName ( )
inlinestatic

Definition at line 465 of file unicode.h.

465 { return "ISO-8859-3"; }
static int TEncoding_ISO8859_3::ToUnicode ( int  c)
inlinestatic

Definition at line 467 of file unicode.h.

467  { Assert(0 <= c && c <= 255);
468  if (c < 0xa0) return c; else return toUnicodeTable[c - 0xa0]; }
#define Assert(Cond)
Definition: bd.h:251
static const int toUnicodeTable[6 *16]
Definition: unicode.h:466

Member Data Documentation

const int TEncoding_ISO8859_3::fromUnicodeTable1
static
Initial value:
= {
0x00a0, -1, -1, 0x00a3, 0x00a4, -1, -1, 0x00a7, 0x00a8, -1, -1, -1, -1, 0x00ad, -1, -1,
0x00b0, -1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, -1, 0x00b7, 0x00b8, -1, -1, -1, -1, 0x00bd, -1, -1,
0x00c0, 0x00c1, 0x00c2, -1, 0x00c4, -1, -1, 0x00c7, 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
-1, 0x00d1, 0x00d2, 0x00d3, 0x00d4, -1, 0x00d6, 0x00d7, -1, 0x00d9, 0x00da, 0x00db, 0x00dc, -1, -1, 0x00df,
0x00e0, 0x00e1, 0x00e2, -1, 0x00e4, -1, -1, 0x00e7, 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
-1, 0x00f1, 0x00f2, 0x00f3, 0x00f4, -1, 0x00f6, 0x00f7, -1, 0x00f9, 0x00fa, 0x00fb, 0x00fc, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 0x00c6, 0x00e6, 0x00c5, 0x00e5, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0x00d8, 0x00f8, 0x00ab, 0x00bb,
0x00d5, 0x00f5, -1, -1, 0x00a6, 0x00b6, 0x00a1, 0x00b1, -1, -1, -1, -1, -1, -1, -1, -1,
0x00a9, 0x00b9, -1, -1, 0x00ac, 0x00bc, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 ,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0x00de, 0x00fe, 0x00aa, 0x00ba,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0x00dd, 0x00fd, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0x00af, 0x00bf, -1, -1, -1,
}

Definition at line 466 of file unicode.h.

const int TEncoding_ISO8859_3::fromUnicodeTable2
static
Initial value:
= {
0x00a2, 0x00ff
}

Definition at line 466 of file unicode.h.

const int TEncoding_ISO8859_3::toUnicodeTable
static
Initial value:
= {
0x00a0, 0x0126, 0x02d8, 0x00a3, 0x00a4, -1, 0x0124, 0x00a7, 0x00a8, 0x0130, 0x015e, 0x011e, 0x0134, 0x00ad, -1, 0x017b,
0x00b0, 0x0127, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x0125, 0x00b7, 0x00b8, 0x0131, 0x015f, 0x011f, 0x0135, 0x00bd, -1, 0x017c,
0x00c0, 0x00c1, 0x00c2, -1, 0x00c4, 0x010a, 0x0108, 0x00c7, 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf,
-1, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x0120, 0x00d6, 0x00d7, 0x011c, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x016c, 0x015c, 0x00df,
0x00e0, 0x00e1, 0x00e2, -1, 0x00e4, 0x010b, 0x0109, 0x00e7, 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x00ec, 0x00ed, 0x00ee, 0x00ef,
-1, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x0121, 0x00f6, 0x00f7, 0x011d, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x016d, 0x015d, 0x02d9
}

Definition at line 466 of file unicode.h.


The documentation for this class was generated from the following files: