SNAP Library 6.0, Developer Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
TEncoding_YuAscii 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 uniChars [10] = { 0x106, 0x107, 0x10c, 0x10d, 0x160, 0x161, 0x17d, 0x17e, 0x110, 0x111 }
 
static const int yuAsciiChars [10] = { 0x5d, 0x7d, 0x5e, 0x7e, 0x5b, 0x7b, 0x40, 0x60, 0x5c, 0x7c }
 

Detailed Description

Definition at line 490 of file unicode.h.

Member Function Documentation

static int TEncoding_YuAscii::FromUnicode ( int  c)
inlinestatic

Definition at line 499 of file unicode.h.

499  {
500  for (int i = 0; i < int(sizeof(uniChars) / sizeof(uniChars[0])); i++)
501  if (c == uniChars[i]) return yuAsciiChars[i];
502  else if(c == yuAsciiChars[i]) return -1;
503  if (0 <= c && c <= 255) return c; else return -1; }
static const int yuAsciiChars[10]
Definition: unicode.h:493
static const int uniChars[10]
Definition: unicode.h:493
static TStr TEncoding_YuAscii::GetName ( )
inlinestatic

Definition at line 494 of file unicode.h.

494 { return "YU-ASCII"; }
static int TEncoding_YuAscii::ToUnicode ( int  c)
inlinestatic

Definition at line 495 of file unicode.h.

References Assert.

495  { Assert(0 <= c && c <= 255);
496  for (int i = 0; i < int(sizeof(yuAsciiChars) / sizeof(yuAsciiChars[0])); i++)
497  if (c == yuAsciiChars[i]) return uniChars[i];
498  return c; }
static const int yuAsciiChars[10]
Definition: unicode.h:493
static const int uniChars[10]
Definition: unicode.h:493
#define Assert(Cond)
Definition: bd.h:251

Member Data Documentation

const int TEncoding_YuAscii::uniChars = { 0x106, 0x107, 0x10c, 0x10d, 0x160, 0x161, 0x17d, 0x17e, 0x110, 0x111 }
static

Definition at line 493 of file unicode.h.

const int TEncoding_YuAscii::yuAsciiChars = { 0x5d, 0x7d, 0x5e, 0x7e, 0x5b, 0x7b, 0x40, 0x60, 0x5c, 0x7c }
static

Definition at line 493 of file unicode.h.


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