ff7tk  0.02
Toolkit for making FF7 Tools
FF7TEXT Class Reference

Convert ff7text <-> pc string. More...

#include <FF7Text.h>

Public Member Functions

 FF7TEXT ()
 
void init (bool)
 if TRUE toPC will return Japanese test More...
 
QString toPC (QByteArray text)
 convert ff7text to pc string More...
 
QByteArray toFF7 (QString string)
 convert pc string to ff7text More...
 

Private Member Functions

QString character (quint8 ord, quint8 table)
 

Private Attributes

QString eng
 
QString jap
 
QString jap_fa
 
QString jap_fb
 
QString jap_fc
 
QString jap_fd
 
QString jap_fe
 
bool in_ja
 

Detailed Description

Convert ff7text <-> pc string.

Definition at line 23 of file FF7Text.h.

Constructor & Destructor Documentation

FF7TEXT::FF7TEXT ( )

Definition at line 19 of file FF7Text.cpp.

References eng, init(), jap, jap_fa, jap_fb, jap_fc, jap_fd, and jap_fe.

Member Function Documentation

QString FF7TEXT::character ( quint8  ord,
quint8  table 
)
private

Definition at line 144 of file FF7Text.cpp.

References eng, jap, jap_fa, jap_fb, jap_fc, jap_fd, and jap_fe.

Referenced by toFF7().

QByteArray FF7TEXT::toFF7 ( QString  string)

convert pc string to ff7text

Parameters
stringthe raw ff7text to read
Returns
decoded ff7text

Definition at line 99 of file FF7Text.cpp.

References character(), and in_ja.

Referenced by FF7Save::setCharName(), FF7Save::setChocoName(), FF7Save::setDescLocation(), FF7Save::setDescName(), and FF7Save::setLocation().

QString FF7TEXT::toPC ( QByteArray  text)

convert ff7text to pc string

Parameters
textthe raw ff7text to read
Returns
decoded ff7text

Definition at line 38 of file FF7Text.cpp.

References eng, in_ja, jap, jap_fa, jap_fb, jap_fc, jap_fd, and jap_fe.

Referenced by FF7Save::charName(), FF7Save::chocoName(), FF7Save::descLocation(), FF7Save::descName(), and FF7Save::location().

Member Data Documentation

QString FF7TEXT::eng
private

character table for latin

Definition at line 43 of file FF7Text.h.

Referenced by character(), FF7TEXT(), and toPC().

bool FF7TEXT::in_ja
private

if true toPC will give us japanese characters

Definition at line 50 of file FF7Text.h.

Referenced by init(), toFF7(), and toPC().

QString FF7TEXT::jap
private

character table #1 for japanese

Definition at line 44 of file FF7Text.h.

Referenced by character(), FF7TEXT(), and toPC().

QString FF7TEXT::jap_fa
private

character table #2 for japanese

Definition at line 45 of file FF7Text.h.

Referenced by character(), FF7TEXT(), and toPC().

QString FF7TEXT::jap_fb
private

character table #3 for japanese

Definition at line 46 of file FF7Text.h.

Referenced by character(), FF7TEXT(), and toPC().

QString FF7TEXT::jap_fc
private

character table #4 for japanese

Definition at line 47 of file FF7Text.h.

Referenced by character(), FF7TEXT(), and toPC().

QString FF7TEXT::jap_fd
private

character table #5 for japanese

Definition at line 48 of file FF7Text.h.

Referenced by character(), FF7TEXT(), and toPC().

QString FF7TEXT::jap_fe
private

character table #6 for japanese

Definition at line 49 of file FF7Text.h.

Referenced by character(), FF7TEXT(), and toPC().


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