當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Transform::toString16LE方法代碼示例

本文整理匯總了PHP中Transform::toString16LE方法的典型用法代碼示例。如果您正苦於以下問題:PHP Transform::toString16LE方法的具體用法?PHP Transform::toString16LE怎麽用?PHP Transform::toString16LE使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Transform的用法示例。


在下文中一共展示了Transform::toString16LE方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
     $data = Transform::toInt8($this->_encoding) . $this->_price . "" . $this->_date . $this->_contact . "" . Transform::toInt8($this->_delivery);
     switch ($this->_encoding) {
         case self::UTF16:
             $data .= Transform::toString16($this->_seller) . "" . Transform::toString16($this->_description) . "";
             break;
         case self::UTF16BE:
             $data .= Transform::toString16BE($this->_seller) . "";
             Transform::toString16($this->_description) . "";
             break;
         case self::UTF16LE:
             $data .= Transform::toString16LE($this->_seller) . "";
             Transform::toString16($this->_description) . "";
             break;
         default:
             $data .= $this->_seller . "" . $this->_description . "";
     }
     parent::setData($data . ($this->_mimeType ? $this->_mimeType . "" . $this->_imageData : 0));
     return parent::__toString();
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:26,代碼來源:COMR.php

示例2: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
     $data = Transform::toInt8($this->_encoding) . $this->_currency . $this->_price . "" . $this->_date;
     switch ($this->_encoding) {
         case self::UTF16:
             $data .= Transform::toString16($this->_seller);
             break;
         case self::UTF16BE:
             $data .= Transform::toString16BE($this->_seller);
             break;
         case self::UTF16LE:
             $data .= Transform::toString16LE($this->_seller);
             break;
         default:
             $data .= $this->_seller;
     }
     $this->setData($data);
     return parent::__toString();
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:24,代碼來源:OWNE.php

示例3: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
     $data = Transform::toInt8($this->_encoding);
     switch ($this->_encoding) {
         case self::UTF16:
             $data .= Transform::toString16($this->_description) . "" . Transform::toString16($this->_text[0]);
             break;
         case self::UTF16BE:
             $data .= Transform::toString16BE($this->_description) . "" . Transform::toString16BE($this->_text[0]);
             break;
         case self::UTF16LE:
             $data .= Transform::toString16LE($this->_description) . "" . Transform::toString16LE($this->_text[0]);
             break;
         default:
             $data .= $this->_description . "" . $this->_text[0];
     }
     $this->setData($data);
     return parent::__toString();
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:24,代碼來源:TXXX.php

示例4: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
     $data = Transform::toInt8($this->_encoding);
     foreach ($this->_people as $entry) {
         foreach ($entry as $key => $val) {
             switch ($this->_encoding) {
                 case self::UTF16:
                     $data .= Transform::toString16($key . "" . $val . "");
                     break;
                 case self::UTF16BE:
                     $data .= Transform::toString16BE($key . "" . $val . "");
                     break;
                 case self::UTF16LE:
                     $data .= Transform::toString16LE($key . "" . $val . "");
                     break;
                 default:
                     $data .= $key . "" . $val . "";
             }
         }
     }
     $this->setData($data);
     return parent::__toString();
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:28,代碼來源:IPLS.php

示例5: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
     $data = Transform::toInt8($this->_encoding);
     switch ($this->_encoding) {
         case self::UTF16:
             $data .= Transform::toString16(implode("", $this->_text));
             break;
         case self::UTF16BE:
             $data .= Transform::toString16BE(implode("", $this->_text));
             break;
         case self::UTF16LE:
             $data .= Transform::toString16LE(implode("", $this->_text));
             break;
         default:
             $data .= implode("", $this->_text);
     }
     $this->setData($data);
     return parent::__toString();
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:24,代碼來源:AbstractText.php

示例6: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
     $data = Transform::toInt8($this->_encoding) . $this->_mimeType . "" . Transform::toInt8($this->_imageType);
     switch ($this->_encoding) {
         case self::UTF16:
             $data .= Transform::toString16($this->_description) . "";
             break;
         case self::UTF16BE:
             $data .= Transform::toString16BE($this->_description) . "";
             break;
         case self::UTF16LE:
             $data .= Transform::toString16LE($this->_description) . "";
             break;
         default:
             $data .= $this->_description . "";
     }
     parent::setData($data . $this->_imageData);
     return parent::__toString();
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:24,代碼來源:APIC.php

示例7: __toString

 /**
  * Returns the frame raw data.
  *
  * @return string
  */
 public function __toString()
 {
     $data = Transform::toInt8($this->_encoding) . $this->_language;
     switch ($this->_encoding) {
         case self::UTF16:
             $data .= Transform::toString16($this->_text);
             break;
         case self::UTF16BE:
             $data .= Transform::toString16BE($this->_text);
             break;
         case self::UTF16LE:
             $data .= Transform::toString16LE($this->_text);
             break;
         default:
             $data .= $this->_text;
     }
     $this->setData($data);
     return parent::__toString();
 }
開發者ID:AsteriaGamer,項目名稱:steamdriven-kohana,代碼行數:24,代碼來源:USER.php


注:本文中的Transform::toString16LE方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。