Back to Joomla project (class list)

Class PunycodeHelper - list of methods

Joomla Platform String Punycode Class
Class for handling UTF-8 URLs Wraps the Punycode library All functions assume the validity of utf-8 URLs.
Package: Joomla\CMS\String
Copyright: (C) 2013 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/String/PunycodeHelper.php
Project: Joomla

Method Summary

public static string
(mixed $utfString)

Transforms a UTF-8 string to a Punycode string
Parameters
  • string $utfString The UTF-8 string to transform
Returns
  • string The punycode string
Since
  • 3.1.2
Show source code of this method: toPunycode Source Code

public static string
(mixed $punycodeString)

Transforms a Punycode string to a UTF-8 string
Parameters
  • string $punycodeString The Punycode string to transform
Returns
  • string The UF-8 URL
Since
  • 3.1.2
Show source code of this method: fromPunycode Source Code

public static string
(mixed $uri)

Transforms a UTF-8 URL to a Punycode URL
Parameters
  • string $uri The UTF-8 URL to transform
Returns
  • string The punycode URL
Since
  • 3.1.2
Show source code of this method: urlToPunycode Source Code

public static string
(mixed $uri)

Transforms a Punycode URL to a UTF-8 URL
Parameters
  • string $uri The Punycode URL to transform
Returns
  • string The UTF-8 URL
Since
  • 3.1.2
Show source code of this method: urlToUTF8 Source Code

public static string
(mixed $email)

Transforms a UTF-8 email to a Punycode email This assumes a valid email address
Parameters
  • string $email The UTF-8 email to transform
Returns
  • string The punycode email
Since
  • 3.1.2
Show source code of this method: emailToPunycode Source Code

public static string
(mixed $email)

Transforms a Punycode email to a UTF-8 email This assumes a valid email address
Parameters
  • string $email The punycode email to transform
Returns
  • string The punycode email
Since
  • 3.1.2
Show source code of this method: emailToUTF8 Source Code

Tags Summary

Since
3.1.2