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

Class: KSC5601_Stream

Source Location: /KSC5601/KSC5601/Stream.php

Class Overview


High level API for convert character set


Methods


Child classes:

KSC5601_UCS2
API class that controls UCS2 for KSC5601 package

Class Details

[line 27]
High level API for convert character set

This api is high level api that convert between binary and numeric for convert character set with PHP




[ Top ]


Class Methods


static method bin2chr [line 129]

static string bin2chr( string $c)

Convert binary strings to 1byte binary character



Tags:

return:  1byte binary character
access:  public


Parameters:

string   $c   binary strings

[ Top ]

static method check2byte [line 142]

static 2 check2byte( string $byte)



Tags:

access:  public


Parameters:

string   $byte  

[ Top ]

static method chr2bin [line 90]

static binary chr2bin( string $c, [string $shift = ''])

Convert binary character 1 byte to binary(numeric) strings



Tags:

return:  strings
access:  public


Parameters:

string   $c   1 byte binary character
string   $shift   (optional) Defaults to empty. shift string with '>> [N]' or '<< [N]'

[ Top ]

static method chr2dec [line 76]

static Decimal chr2dec( string $c)

Convert 1 byte binary character to decimal strings.



Tags:

return:  strings
access:  public


Parameters:

string   $c   1 byte binary character

[ Top ]

static method chr2hex [line 41]

static string chr2hex( string $c, [string $prefix = true], [boolean $dec = false])

Convert character to hex string



Tags:

return:  hexical strings or decimal strings
access:  public


Parameters:

string   $c   1 byte binary character
string   $prefix   (optional) Defaults to true. Set ture, retuan with prefix '0x'
boolean   $dec   (optional) Defaults to false. Set true, return with decimal strings.

[ Top ]

static method decbin [line 156]

static {$bit}-digit decbin( string $s, [numeric $bit = 4])

Convert decimal strings to 4-digit binary(numeric) strings.



Tags:

return:  binary strings
access:  public


Parameters:

string   $s   Given decimal strings
numeric   $bit   (optiona) Defaults to 4. number of digit.

[ Top ]

static method execute_time [line 210]

static string execute_time( $t1, $t2, array microtime())

Print execute time



Tags:

access:  public


Parameters:

array   microtime()   of ending
   $t1  
   $t2  

[ Top ]

static method hex2chr [line 63]

static string hex2chr( string $c)

Convert hexical string to 1 byte binary character.



Tags:

return:  1 byte binary character
access:  public


Parameters:

string   $c   hexical string

[ Top ]

static method is_out_of_ksx1001 [line 178]

static boolean is_out_of_ksx1001( string $c1, string $c2, [boolean $is_dec = false])

Check given 2byte is whether KSX1001 or out of range.



Tags:

return:  When out of range, true.
access:  public


Parameters:

string   $c1   1st byte binary character
string   $c2   2st byte binary character
boolean   $is_dec   (optional) Defaults to false. If type of 1st and 2st arguments is decimal, set true.

[ Top ]


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