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

Class: KSC5601_UTF8

Source Location: /KSC5601/KSC5601/UTF8.php

Class Overview

KSC5601_Stream
   |
   --KSC5601_UCS2
      |
      --KSC5601_UTF8

UTF8 controle class api


Methods


Child classes:

KSC5601_pure
Original API of KSC5601 that used pure php code
KSC5601_ext
Original API of KSC5601 that used iconv or mbstring.

Inherited Variables

Inherited Methods

Class: KSC5601_UCS2

KSC5601_UCS2::__construct()
KSC5601_UCS2::init_ksc5601()
Init KSC5601 code table
KSC5601_UCS2::ksc2ucs()
Convert KSC5601 to UCS2 return decimical value or question mark '?'
KSC5601_UCS2::mk_revTable()
Print converting code from hexical string(UCS2) to 2byte binary(KSC5601) character.
KSC5601_UCS2::ucs2ksc()
Convert UCS2 to KSC5601

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 43]
UTF8 controle class api



[ Top ]


Class Methods


method is_utf8 [line 79]

boolean is_utf8( string $s, [boolean $ascii = false])

whether utf8 or not given strings



Tags:

return:  If given strings ars utf-8, return true
access:  public


Overridden in child classes as:

KSC5601_pure::is_utf8()
Check given string wheter utf8 of not.
KSC5601_ext::is_utf8()
Check given string wheter utf8 of not.

Parameters:

string   $s   Given strings
boolean   $ascii   Check whether is ascii only or not

[ Top ]

method rm_utf8bom [line 62]

string rm_utf8bom( string $s)

remove utf8 bom code (first 3byte)



Tags:

access:  public


Parameters:

string   $s   Given strings

[ Top ]

method utf8dec [line 193]

string utf8dec( string $s)

Convert UTF-8 to UHC



Tags:

return:  UHC strings
access:  public


Parameters:

string   $s   Given UTF-8 strings

[ Top ]

method utf8enc [line 151]

string utf8enc( string $s)

convert UCH to UTF-8



Tags:

return:  UTF-8 strings
access:  public


Parameters:

string   $s   Given UHC strings

[ Top ]


Documentation generated on Fri, 30 Aug 2024 06:11:10 +0900 by phpDocumentor 1.4.4