[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/String/ -> PunycodeHelper.php (summary)

Joomla! Content Management System

Copyright: (C) 2013 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 251 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  toPunycode()
  fromPunycode()
  urlToPunycode()
  urlToUTF8()
  emailToPunycode()
  emailToUTF8()

Functions
Functions that are not part of a class:

toPunycode($utfString)   X-Ref
Transforms a UTF-8 string to a Punycode string

param: string  $utfString  The UTF-8 string to transform
return: string  The punycode string

fromPunycode($punycodeString)   X-Ref
Transforms a Punycode string to a UTF-8 string

param: string  $punycodeString  The Punycode string to transform
return: string  The UF-8 URL

urlToPunycode($uri)   X-Ref
Transforms a UTF-8 URL to a Punycode URL

param: string  $uri  The UTF-8 URL to transform
return: string  The punycode URL

urlToUTF8($uri)   X-Ref
Transforms a Punycode URL to a UTF-8 URL

param: string  $uri  The Punycode URL to transform
return: string  The UTF-8 URL

emailToPunycode($email)   X-Ref
Transforms a UTF-8 email to a Punycode email
This assumes a valid email address

param: string  $email  The UTF-8 email to transform
return: string  The punycode email

emailToUTF8($email)   X-Ref
Transforms a Punycode email to a UTF-8 email
This assumes a valid email address

param: string  $email  The punycode email to transform
return: string  The punycode email



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer