Overview

Namespaces

  • esperecyan
    • url
      • lib

Classes

  • HostProcessing
  • Infrastructure
  • PercentEncoding
  • Terminology
  • URL
  • URLencoding
  • Overview
  • Namespace
  • Class
  • Tree

Class PercentEncoding

esperecyan\url\lib\PercentEncoding uses esperecyan\url\lib\Utility
Namespace: esperecyan\url\lib
Deprecated: 3.2.0 The methods and constants are moved to esperecyan\url\lib\Infrastructure.
See: esperecyan\url\lib\Infrastructure
Link: Rename Terminology to Infrastructure · whatwg/url@e5b57a0
Located at lib\PercentEncoding.php
Methods summary
public static string
# percentEncode( string $byte )

Alias of esperecyan\url\lib\Infrastructure::percentEncode().

Alias of esperecyan\url\lib\Infrastructure::percentEncode().

Parameters

$byte
Exactly one byte.

Returns

string
“%”, followed by two ASCII hex digits.
public static string
# percentDecode( string $input )

Alias of esperecyan\url\lib\Infrastructure::percentDecode().

Alias of esperecyan\url\lib\Infrastructure::percentDecode().

Parameters

$input

Returns

string
A UTF-8 string if the $input contains only bytes in the range 0x00 to 0x7F.
public static string
# utf8PercentEncode( string $encodeSet, string $codePoint )

Alias of esperecyan\url\lib\Infrastructure\utf8PercentEncode().

Alias of esperecyan\url\lib\Infrastructure\utf8PercentEncode().

Parameters

$encodeSet
Regular expression (PCRE) pattern matching exactly one UTF-8 character.
$codePoint
Exactly one UTF-8 character.

Returns

string
Constants summary
string SIMPLE_ENCODE_SET

Alias of esperecyan\url\lib\Infrastructure\SIMPLE_ENCODE_SET.

Alias of esperecyan\url\lib\Infrastructure\SIMPLE_ENCODE_SET.

# '/[^ -~]/u'
string DEFAULT_ENCODE_SET

Alias of esperecyan\url\lib\Infrastructure\DEFAULT_ENCODE_SET.

Alias of esperecyan\url\lib\Infrastructure\DEFAULT_ENCODE_SET.

# '/[^!$-;=@-_a-z|~]/u'
string PASSWORD_ENCODE_SET

Alias of esperecyan\url\lib\Infrastructure\USERINFO_ENCODE_SET.

Alias of esperecyan\url\lib\Infrastructure\USERINFO_ENCODE_SET.

Deprecated

3.0.0 The password encode set and the username encode set are obsolete, then these are replaced by the userinfo encode set.


Link

Encode more code points for usernames and passwords. Fixes #30. · whatwg/url@9ca26e5
# '/[^!$-.0-9A-Z_a-z~]/u'
string USERNAME_ENCODE_SET

Alias of esperecyan\url\lib\Infrastructure\USERINFO_ENCODE_SET.

Alias of esperecyan\url\lib\Infrastructure\USERINFO_ENCODE_SET.

Deprecated

3.0.0 The password encode set and the username encode set are obsolete, then these are replaced by the userinfo encode set.


Link

Encode more code points for usernames and passwords. Fixes #30. · whatwg/url@9ca26e5
# '/[^!$-.0-9A-Z_a-z~]/u'
string USERINFO_ENCODE_SET

Alias of esperecyan\url\lib\Infrastructure\USERINFO_ENCODE_SET.

Alias of esperecyan\url\lib\Infrastructure\USERINFO_ENCODE_SET.

Link

URL Standard
# '/[^!$-.0-9A-Z_a-z~]/u'
esperecyan/url documentation API documentation generated by ApiGen