original_string: protected static function safe_normalize($string) {
          if ($string === '') {
              return '';
          }
  
          if (!function_exists('normalizer_normalize')) {
              return $string;
          }
  
          $normalised = normalizer_normalize($string, Normalizer::FORM_C);
          if (is_null($normalised)) {
              // An error occurred in normalizer_normalize, but we have no idea what.
              debugging('Failed to normalise string: ' . $string, DEBUG_DEVELOPER);
              return $string; // Return the original string, since it is the best we have.
          }
  
          return $normalised;
      }
code: protected static function safe_normalize($string) {
          if ($string === '') {
              return '';
          }
  
          if (!function_exists('normalizer_normalize')) {
              return $string;
          }
  
          $normalised = normalizer_normalize($string, Normalizer::FORM_C);
          if (is_null($normalised)) {
              // An error occurred in normalizer_normalize, but we have no idea what.
              debugging('Failed to normalise string: ' . $string, DEBUG_DEVELOPER);
              return $string; // Return the original string, since it is the best we have.
          }
  
          return $normalised;
      }
code_tokens: protected static function safe_normalize ( $ string ) { if ( $ string === '' ) { return '' ; } if ( ! function_exists ( 'normalizer_normalize' ) ) { return $ string ; } $ normalised = normalizer_normalize ( $ string , Normalizer :: FORM_C ) ; if ( is_null ( $ normalised ) ) { // An error occurred in normalizer_normalize, but we have no idea what. debugging ( 'Failed to normalise string: ' . $ string , DEBUG_DEVELOPER ) ; return $ string ; // Return the original string, since it is the best we have. } return $ normalised ; }
docstring: Normalise a UTf-8 string to FORM_C, avoiding the pitfalls in PHP's
  normalizer_normalize function.
  @param string $string the input string.
  @return string the normalised string.
docstring_tokens: Normalise a UTf - 8 string to FORM_C avoiding the pitfalls in PHP s normalizer_normalize function .