phpDocumentor convert
[ class tree: convert ] [ index: convert ] [ all elements ]

Class: WindGeneralConverter

Source Location: /convert/WindGeneralConverter.php

Class WindGeneralConverter

Class Overview

Implements interfaces:

通用编码转化类

Located in /convert/WindGeneralConverter.php [line 12]

WindModule
   |
   --WindGeneralConverter
Author(s): Information Tags:
Version:  $Id: WindGeneralConverter.php 3016 2011-10-20 02:23:08Z yishuo $
Copyright:  ©2003-2103 phpwind.com
License:  http://www.windframework.com

Properties

Methods

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From WindModule

WindModule::$_config
WindModule::$_proxy
WindModule::$_typeValidation

Inherited From WindModule

WindModule::getConfig()
根据配置名取得相应的配置
WindModule::getRequest()
返回当前应用的WindHttpRequest对象
WindModule::getResponse()
返回当前应用的WindHttpResponse对象
WindModule::getSystemFactory()
返回当前应用的WindFactory对象
WindModule::setConfig()
设置类配置
WindModule::setDelayAttributes()
设置延迟加载类属性相关组件配置信息
WindModule::toArray()
返回该对象的数组类型
WindModule::writeTableCloneProperty()
类对象clone白名单
WindModule::__call()
重载了魔术方法__call
WindModule::__clone()
重载魔术方法__clone
WindModule::__get()
重载了魔术方法__get
WindModule::__set()
重载了魔术方法__set

[ Top ]
Property Summary
mixed   $encodeLang  
mixed   $iconvEnabled  
mixed   $IndexPoint  
mixed   $tableEncode  
mixed   $tableHandle  
mixed   $tableIndex  
mixed   $tableName  

[ Top ]
Method Summary
WindGeneralConverter   WindGeneralConverter()  
mixed   chsConvert()   BIG5toGBK
Ambigous   chstoUNICODE()   GBK,BIG5 to UNICODE
Ambigous   chstoUTF8()   BIG5,GBK to UTF8
string   chsUTF8toU()   BIG5,GBK to Unicode
Ambigous   convert()   编码转化
void   initConvert()   初始化类
string   unicodeToUTF8()   unicode to utf8
string   utf8toCHS()   UTF8 to GBK,BIG5

[ Top ]
Properties
mixed   $encodeLang = '' [line 15]
API Tags:
Access:  protected


[ Top ]
mixed   $iconvEnabled = false [line 16]
API Tags:
Access:  protected


[ Top ]
mixed   $IndexPoint = array(
'GBKtoUTF8' => 0,
'GBKtoUNICODE' => 0,
'BIG5toUTF8' => 1024,
'BIG5toUNICODE' => 1024,
'UTF8toGBK' => 512,
'UTF8toBIG5' => 1536)
[line 20]
API Tags:
Access:  protected


[ Top ]
mixed   $tableEncode = array() [line 18]
API Tags:
Access:  protected


[ Top ]
mixed   $tableHandle = 0 [line 14]
API Tags:
Access:  protected


[ Top ]
mixed   $tableIndex = array() [line 17]
API Tags:
Access:  protected


[ Top ]
mixed   $tableName = './encode/encode.table' [line 13]
API Tags:
Access:  protected


[ Top ]
Methods
Constructor WindGeneralConverter  [line 33]

  WindGeneralConverter WindGeneralConverter( [ $sourceLang = ''], [ $targetLang = ''], [ $forceTable = false], string $SourceLang, string $TargetLang, boolean $ForceTable  )

Parameters:
string   $SourceLang: 
string   $TargetLang: 
boolean   $ForceTable: 
   $sourceLang: 
   $targetLang: 
   $forceTable: 

API Tags:
Access:  public


[ Top ]
chsConvert  [line 263]

  mixed chsConvert( string $srcText, [string $SourceLang = 'GBK']  )

BIG5toGBK

Parameters:
string   $srcText: 
string   $SourceLang: 

API Tags:
Access:  protected


[ Top ]
chstoUNICODE  [line 226]

  Ambigous chstoUNICODE( string $srcText, [string $SourceLang = '']  )

GBK,BIG5 to UNICODE

Parameters:
string   $srcText: 
string   $SourceLang: 

API Tags:
Return:  <string, unknown>
Access:  protected


[ Top ]
chstoUTF8  [line 145]

  Ambigous chstoUTF8( string $srcText  )

BIG5,GBK to UTF8

Parameters:
string   $srcText: 

API Tags:
Return:  <string, unknown>
Access:  protected


[ Top ]
chsUTF8toU  [line 125]

  string chsUTF8toU( string $c  )

BIG5,GBK to Unicode

Parameters:
string   $c: 

API Tags:
Access:  protected


[ Top ]
convert  [line 47]

  Ambigous convert( string $srcText, [ $sourceLang = ''], [ $targetLang = ''], [ $forceTable = false], string $SourceLang, string $TargetLang, boolean $ForceTable  )

编码转化

对输入的字符串进行从原编码到目标编码的转化,请确定原编码与目标编码

Parameters:
string   $srcText: 
string   $SourceLang: 
string   $TargetLang: 
boolean   $ForceTable: 
   $sourceLang: 
   $targetLang: 
   $forceTable: 

API Tags:
Return:  <string, unknown>|string|unknown
Access:  public


Implementation of:
IWindConverter::convert()
编码转化

[ Top ]
initConvert  [line 86]

  void initConvert( string $SourceLang, $targetLang, $forceTable, string $TargetLang, boolean $ForceTable  )

初始化类

Parameters:
string   $SourceLang: 
string   $TargetLang: 
boolean   $ForceTable: 
   $targetLang: 
   $forceTable: 

API Tags:
Access:  protected


[ Top ]
unicodeToUTF8  [line 100]

  string unicodeToUTF8( string $c  )

unicode to utf8

Parameters:
string   $c: 

API Tags:
Access:  protected


[ Top ]
utf8toCHS  [line 172]

  string utf8toCHS( string $srcText  )

UTF8 to GBK,BIG5

Parameters:
string   $srcText: 

API Tags:
Access:  protected


[ Top ]

Documentation generated on Fri, 30 Mar 2012 11:43:34 +0800 by phpDocumentor 1.4.4