当前位置: 首页>>代码示例>>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;未经允许,请勿转载。