Qt 4.8
Macros | Enumerations | Variables
qjiscodec.cpp File Reference
#include "qjiscodec.h"
#include "qlist.h"

Go to the source code of this file.

Macros

#define IsJisChar(c)   (((c) >= 0x21) && ((c) <= 0x7e))
 
#define IsKana(c)   (((c) >= 0xa1) && ((c) <= 0xdf))
 
#define QValidChar(u)   ((u) ? QChar((ushort)(u)) : QChar(QChar::ReplacementCharacter))
 

Enumerations

enum  {
  Esc = 0x1b, So = 0x0e, Si = 0x0f, ReverseSolidus = 0x5c,
  YenSign = 0x5c, Tilde = 0x7e, Overline = 0x7e
}
 
enum  Iso2022State {
  Ascii, MinState = Ascii, JISX0201_Latin, JISX0201_Kana,
  JISX0208_1978, JISX0208_1983, JISX0212, MaxState = JISX0212,
  UnknownState
}
 

Variables

static const char Esc_Ascii [] = {Esc, '(', 'B', 0 }
 
static const char Esc_CHARS [] = "()*+-./"
 
static const char Esc_JISX0201_Kana [] = {Esc, '(', 'I', 0 }
 
static const char Esc_JISX0201_Latin [] = {Esc, '(', 'J', 0 }
 
static const char Esc_JISX0208_1978 [] = {Esc, '$', '@', 0 }
 
static const char Esc_JISX0208_1983 [] = {Esc, '$', 'B', 0 }
 
static const char Esc_JISX0212 [] = {Esc, '$', '(', 'D', 0 }
 
static const char *const Esc_SEQ []
 

Macro Definition Documentation

◆ IsJisChar

#define IsJisChar (   c)    (((c) >= 0x21) && ((c) <= 0x7e))

Definition at line 69 of file qjiscodec.cpp.

◆ IsKana

#define IsKana (   c)    (((c) >= 0xa1) && ((c) <= 0xdf))

Definition at line 68 of file qjiscodec.cpp.

◆ QValidChar

#define QValidChar (   u)    ((u) ? QChar((ushort)(u)) : QChar(QChar::ReplacementCharacter))

Definition at line 71 of file qjiscodec.cpp.

Referenced by QJisCodec::convertToUnicode().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
Esc 
So 
Si 
ReverseSolidus 
YenSign 
Tilde 
Overline 

Definition at line 57 of file qjiscodec.cpp.

57  {
58  Esc = 0x1b,
59  So = 0x0e, // Shift Out
60  Si = 0x0f, // Shift In
61 
62  ReverseSolidus = 0x5c,
63  YenSign = 0x5c,
64  Tilde = 0x7e,
65  Overline = 0x7e
66 };
Definition: qjiscodec.cpp:59
Definition: qjiscodec.cpp:60

◆ Iso2022State

Enumerator
Ascii 
MinState 
JISX0201_Latin 
JISX0201_Kana 
JISX0208_1978 
JISX0208_1983 
JISX0212 
MaxState 
UnknownState 

Definition at line 73 of file qjiscodec.cpp.

Variable Documentation

◆ Esc_Ascii

const char Esc_Ascii[] = {Esc, '(', 'B', 0 }
static

Definition at line 81 of file qjiscodec.cpp.

Referenced by QJisCodec::convertFromUnicode().

◆ Esc_CHARS

const char Esc_CHARS[] = "()*+-./"
static

Definition at line 79 of file qjiscodec.cpp.

Referenced by QJisCodec::convertToUnicode().

◆ Esc_JISX0201_Kana

const char Esc_JISX0201_Kana[] = {Esc, '(', 'I', 0 }
static

Definition at line 83 of file qjiscodec.cpp.

◆ Esc_JISX0201_Latin

const char Esc_JISX0201_Latin[] = {Esc, '(', 'J', 0 }
static

Definition at line 82 of file qjiscodec.cpp.

◆ Esc_JISX0208_1978

const char Esc_JISX0208_1978[] = {Esc, '$', '@', 0 }
static

Definition at line 84 of file qjiscodec.cpp.

◆ Esc_JISX0208_1983

const char Esc_JISX0208_1983[] = {Esc, '$', 'B', 0 }
static

Definition at line 85 of file qjiscodec.cpp.

◆ Esc_JISX0212

const char Esc_JISX0212[] = {Esc, '$', '(', 'D', 0 }
static

Definition at line 86 of file qjiscodec.cpp.

◆ Esc_SEQ

const char* const Esc_SEQ[]
static
Initial value:
static const char Esc_JISX0201_Latin[]
Definition: qjiscodec.cpp:82
static const char Esc_JISX0201_Kana[]
Definition: qjiscodec.cpp:83
static const char Esc_JISX0208_1983[]
Definition: qjiscodec.cpp:85
static const char Esc_JISX0208_1978[]
Definition: qjiscodec.cpp:84
static const char Esc_JISX0212[]
Definition: qjiscodec.cpp:86
static const char Esc_Ascii[]
Definition: qjiscodec.cpp:81

Definition at line 87 of file qjiscodec.cpp.

Referenced by QJisCodec::convertFromUnicode().