original_string: protected function _formatString($string)
      {
          $quote = substr($string, 0, 1);
          $string = substr($string, 1, -1);
          if ($quote === '"') {
              $string = stripcslashes($string);
          } else {
              $string = strtr($string, ["\\'" => "'", '\\\\' => '\\']);
          }
          $string = str_replace("\r\n", "\n", $string);
  
          return addcslashes($string, "\0..\37\\\"");
      }
code: protected function _formatString($string)
      {
          $quote = substr($string, 0, 1);
          $string = substr($string, 1, -1);
          if ($quote === '"') {
              $string = stripcslashes($string);
          } else {
              $string = strtr($string, ["\\'" => "'", '\\\\' => '\\']);
          }
          $string = str_replace("\r\n", "\n", $string);
  
          return addcslashes($string, "\0..\37\\\"");
      }
code_tokens: protected function _formatString ( $ string ) { $ quote = substr ( $ string , 0 , 1 ) ; $ string = substr ( $ string , 1 , - 1 ) ; if ( $ quote === '"' ) { $ string = stripcslashes ( $ string ) ; } else { $ string = strtr ( $ string , [ "\\'" => "'" , '\\\\' => '\\' ] ) ; } $ string = str_replace ( "\r\n" , "\n" , $ string ) ; return addcslashes ( $ string , "\0..\37\\\"" ) ; }
docstring: Format a string to be added as a translatable string
  
  @param string $string String to format
  @return string Formatted string
docstring_tokens: Format a string to be added as a translatable string