original_string: protected function getControlCharactersEscapingMap()
      {
          $controlCharactersEscapingMap = [];
  
          // control characters values are from 0 to 1F (hex values) in the ASCII table
          for ($charValue = 0x00; $charValue <= 0x1F; $charValue++) {
              $character = chr($charValue);
              if (preg_match("/{$this->escapableControlCharactersPattern}/", $character)) {
                  $charHexValue = dechex($charValue);
                  $escapedChar = '_x' . sprintf('%04s' , strtoupper($charHexValue)) . '_';
                  $controlCharactersEscapingMap[$escapedChar] = $character;
              }
          }
  
          return $controlCharactersEscapingMap;
      }
code: protected function getControlCharactersEscapingMap()
      {
          $controlCharactersEscapingMap = [];
  
          // control characters values are from 0 to 1F (hex values) in the ASCII table
          for ($charValue = 0x00; $charValue <= 0x1F; $charValue++) {
              $character = chr($charValue);
              if (preg_match("/{$this->escapableControlCharactersPattern}/", $character)) {
                  $charHexValue = dechex($charValue);
                  $escapedChar = '_x' . sprintf('%04s' , strtoupper($charHexValue)) . '_';
                  $controlCharactersEscapingMap[$escapedChar] = $character;
              }
          }
  
          return $controlCharactersEscapingMap;
      }
code_tokens: protected function getControlCharactersEscapingMap ( ) { $ controlCharactersEscapingMap = [ ] ; // control characters values are from 0 to 1F (hex values) in the ASCII table for ( $ charValue = 0x00 ; $ charValue <= 0x1F ; $ charValue ++ ) { $ character = chr ( $ charValue ) ; if ( preg_match ( "/{$this->escapableControlCharactersPattern}/" , $ character ) ) { $ charHexValue = dechex ( $ charValue ) ; $ escapedChar = '_x' . sprintf ( '%04s' , strtoupper ( $ charHexValue ) ) . '_' ; $ controlCharactersEscapingMap [ $ escapedChar ] = $ character ; } } return $ controlCharactersEscapingMap ; }
docstring: Builds the map containing control characters to be escaped
  mapped to their escaped values.
  "\t", "\r" and "\n" don't need to be escaped.
  
  NOTE: the logic has been adapted from the XlsxWriter library (BSD License)
  @link https://github.com/jmcnamara/XlsxWriter/blob/f1e610f29/xlsxwriter/sharedstrings.py#L89
  
  @return string[]
docstring_tokens: Builds the map containing control characters to be escaped mapped to their escaped values . \ t \ r and \ n don t need to be escaped .