Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Member Functions
Zend_Text_Table_Decorator_Unicode Class Reference
Inheritance diagram for Zend_Text_Table_Decorator_Unicode:
Zend_Text_Table_Decorator_Interface

Public Member Functions

 getTopLeft ()
 
 getTopRight ()
 
 getBottomLeft ()
 
 getBottomRight ()
 
 getVertical ()
 
 getHorizontal ()
 
 getCross ()
 
 getVerticalRight ()
 
 getVerticalLeft ()
 
 getHorizontalDown ()
 
 getHorizontalUp ()
 

Protected Member Functions

 _uniChar ($code)
 

Detailed Description

Definition at line 36 of file Unicode.php.

Member Function Documentation

◆ _uniChar()

_uniChar (   $code)
protected

Convert am unicode character code to a character

Parameters
integer$code
Returns
string|false

Definition at line 154 of file Unicode.php.

155  {
156  if ($code <= 0x7F) {
157  $char = chr($code);
158  } else if ($code <= 0x7FF) {
159  $char = chr(0xC0 | $code >> 6)
160  . chr(0x80 | $code & 0x3F);
161  } else if ($code <= 0xFFFF) {
162  $char = chr(0xE0 | $code >> 12)
163  . chr(0x80 | $code >> 6 & 0x3F)
164  . chr(0x80 | $code & 0x3F);
165  } else if ($code <= 0x10FFFF) {
166  $char = chr(0xF0 | $code >> 18)
167  . chr(0x80 | $code >> 12 & 0x3F)
168  . chr(0x80 | $code >> 6 & 0x3F)
169  . chr(0x80 | $code & 0x3F);
170  } else {
171  return false;
172  }
173 
174  return $char;
175  }
$code
Definition: info.phtml:12

◆ getBottomLeft()

getBottomLeft ( )

Defined by Zend_Text_Table_Decorator_Interface

Returns
string

Implements Zend_Text_Table_Decorator_Interface.

Definition at line 63 of file Unicode.php.

64  {
65  return $this->_uniChar(0x2514);
66  }

◆ getBottomRight()

getBottomRight ( )

Defined by Zend_Text_Table_Decorator_Interface

Returns
string

Implements Zend_Text_Table_Decorator_Interface.

Definition at line 73 of file Unicode.php.

74  {
75  return $this->_uniChar(0x2518);
76  }

◆ getCross()

getCross ( )

Defined by Zend_Text_Table_Decorator_Interface

Returns
string

Implements Zend_Text_Table_Decorator_Interface.

Definition at line 103 of file Unicode.php.

104  {
105  return $this->_uniChar(0x253C);
106  }

◆ getHorizontal()

getHorizontal ( )

Defined by Zend_Text_Table_Decorator_Interface

Returns
string

Implements Zend_Text_Table_Decorator_Interface.

Definition at line 93 of file Unicode.php.

94  {
95  return $this->_uniChar(0x2500);
96  }

◆ getHorizontalDown()

getHorizontalDown ( )

Defined by Zend_Text_Table_Decorator_Interface

Returns
string

Implements Zend_Text_Table_Decorator_Interface.

Definition at line 133 of file Unicode.php.

134  {
135  return $this->_uniChar(0x252C);
136  }

◆ getHorizontalUp()

getHorizontalUp ( )

Defined by Zend_Text_Table_Decorator_Interface

Returns
string

Implements Zend_Text_Table_Decorator_Interface.

Definition at line 143 of file Unicode.php.

144  {
145  return $this->_uniChar(0x2534);
146  }

◆ getTopLeft()

getTopLeft ( )

Defined by Zend_Text_Table_Decorator_Interface

Returns
string

Implements Zend_Text_Table_Decorator_Interface.

Definition at line 43 of file Unicode.php.

44  {
45  return $this->_uniChar(0x250C);
46  }

◆ getTopRight()

getTopRight ( )

Defined by Zend_Text_Table_Decorator_Interface

Returns
string

Implements Zend_Text_Table_Decorator_Interface.

Definition at line 53 of file Unicode.php.

54  {
55  return $this->_uniChar(0x2510);
56  }

◆ getVertical()

getVertical ( )

Defined by Zend_Text_Table_Decorator_Interface

Returns
string

Implements Zend_Text_Table_Decorator_Interface.

Definition at line 83 of file Unicode.php.

84  {
85  return $this->_uniChar(0x2502);
86  }

◆ getVerticalLeft()

getVerticalLeft ( )

Defined by Zend_Text_Table_Decorator_Interface

Returns
string

Implements Zend_Text_Table_Decorator_Interface.

Definition at line 123 of file Unicode.php.

124  {
125  return $this->_uniChar(0x2524);
126  }

◆ getVerticalRight()

getVerticalRight ( )

Defined by Zend_Text_Table_Decorator_Interface

Returns
string

Implements Zend_Text_Table_Decorator_Interface.

Definition at line 113 of file Unicode.php.

114  {
115  return $this->_uniChar(0x251C);
116  }

The documentation for this class was generated from the following file: