KSC5601
[ class tree: KSC5601 ] [ index: KSC5601 ] [ all elements ]

Class: KSC5601_UCS2

Source Location: /KSC5601/KSC5601/UCS2.php

Class Overview

KSC5601_Stream
   |
   --KSC5601_UCS2

API class that controls UCS2 for KSC5601 package


Variables

Methods


Child classes:

KSC5601_UTF8
UTF8 controle class api

Inherited Methods

Class: KSC5601_Stream

KSC5601_Stream::bin2chr()
Convert binary strings to 1byte binary character
KSC5601_Stream::check2byte()
KSC5601_Stream::chr2bin()
Convert binary character 1 byte to binary(numeric) strings
KSC5601_Stream::chr2dec()
Convert 1 byte binary character to decimal strings.
KSC5601_Stream::chr2hex()
Convert character to hex string
KSC5601_Stream::decbin()
Convert decimal strings to 4-digit binary(numeric) strings.
KSC5601_Stream::execute_time()
Print execute time
KSC5601_Stream::hex2chr()
Convert hexical string to 1 byte binary character.
KSC5601_Stream::is_out_of_ksx1001()
Check given 2byte is whether KSX1001 or out of range.

Class Details

[line 26]
API class that controls UCS2 for KSC5601 package



[ Top ]


Class Variables

$hanja =  NULL

[line 33]



Tags:

access:  public

Type:   mixed


[ Top ]

$han_max =  0

[line 36]



Tags:

access:  public

Type:   mixed


[ Top ]

$ksc =  NULL

[line 32]



Tags:

access:  public

Type:   mixed


[ Top ]

$ksc_max =  0

[line 35]



Tags:

access:  public

Type:   mixed


[ Top ]

$revs =  NULL

[line 34]



Tags:

access:  public

Type:   mixed


[ Top ]

$rev_max =  0

[line 37]



Tags:

access:  public

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 46]

void __construct( )



Tags:

access:  public


Overridden in child classes as:

KSC5601_pure::__construct()
KSC5601_ext::__construct()
Support iconv or mbstring extension, use KSC5601_ext internal class, or not support use KSC5601_pure internal class.

[ Top ]

method init_ksc5601 [line 62]

void init_ksc5601( void 0)

Init KSC5601 code table

If use pure code, load KSC5601 code table on memory. If loading, skip.




Tags:

access:  public


Parameters:

void   0  

[ Top ]

method ksc2ucs [line 106]

string ksc2ucs( string $c1, string $c2)

Convert KSC5601 to UCS2 return decimical value or question mark '?'



Tags:

return:  decimal string(42531) or question mark(?) that is case out of range.
access:  public


Parameters:

string   $c1   1st byte binary character
string   $c2   2st byte binary character

[ Top ]

method mk_revTable [line 194]

void mk_revTable( void 0)

Print converting code from hexical string(UCS2) to 2byte binary(KSC5601) character.

This method only for develeoper.




Tags:

access:  public


Parameters:

void   0  

[ Top ]

method ucs2ksc [line 151]

string ucs2ksc( string $s)

Convert UCS2 to KSC5601



Tags:

return:  2byte binary character (KSC5601)
access:  public


Parameters:

string   $s   hexcial strings (UCS2)

[ Top ]


Documentation generated on Tue, 14 May 2019 02:00:46 +0900 by phpDocumentor 1.4.4