original_string: public function endsWith($suffix)
      {
          return $suffix === ''
          || $suffix === mb_substr(
              $this->contents,
              -strlen((string) $suffix),
              null,
              $this->encoding
          );
      }
code: public function endsWith($suffix)
      {
          return $suffix === ''
          || $suffix === mb_substr(
              $this->contents,
              -strlen((string) $suffix),
              null,
              $this->encoding
          );
      }
code_tokens: public function endsWith ( $ suffix ) { return $ suffix === '' || $ suffix === mb_substr ( $ this -> contents , - strlen ( ( string ) $ suffix ) , null , $ this -> encoding ) ; }
docstring: Returns true if the string ends with the provided string.
  
  @param string|Rope $suffix
  
  @return bool
docstring_tokens: Returns true if the string ends with the provided string .