Overview

Namespaces

  • esperecyan
    • url
      • lib

Classes

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

Class Infrastructure

esperecyan\url\lib\Infrastructure uses esperecyan\url\lib\Utility
Namespace: esperecyan\url\lib
Link: URL Standard
Located at lib\Infrastructure.php
Methods summary
public static string
# percentEncode( string $byte )

Percent encodes a byte into a percent-encoded byte.

Percent encodes a byte into a percent-encoded byte.

Parameters

$byte
Exactly one byte.

Returns

string
“%”, followed by two ASCII hex digits.

Link

URL Standard
public static string
# percentDecode( string $input )

Percent decodes a byte sequence $input.

Percent decodes a byte sequence $input.

Parameters

$input

Returns

string
A UTF-8 string if the $input contains only bytes in the range 0x00 to 0x7F.

Link

URL Standard
public static string
# utf8PercentEncode( string $encodeSet, string $codePoint )

UTF-8 percent encodes a code point, using an encode set.

UTF-8 percent encodes a code point, using an encode set.

Parameters

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

Returns

string

Link

URL Standard
public static string
# percentEncodeCodePoints( string $encodeSet, string $codePoints )

Percent encodes UTF-8 string, using an encode set.

Percent encodes UTF-8 string, using an encode set.

Parameters

$encodeSet
Regular expression (PCRE) pattern matching exactly one UTF-8 character.
$codePoints
A UTF-8 string.

Returns

string
Constants summary
string WINDOWS_DRIVE_LETTER

Alias of esperecyan\url\lib\URL::WINDOWS_DRIVE_LETTER.

Alias of esperecyan\url\lib\URL::WINDOWS_DRIVE_LETTER.

Deprecated

5.0.0 The constant has been moved to esperecyan\url\lib\URL.

See

\esperecyan\url\lib\URL::WINDOWS_DRIVE_LETTER

Link

Editorial: move Windows drive letter to a more logical location · whatwg/url@ac6489f
# '/^[a-z][:|]$/ui'
string NORMALIZED_WINDOWS_DRIVE_LETTER

Alias of esperecyan\url\lib\URL::NORMALIZED_WINDOWS_DRIVE_LETTER.

Alias of esperecyan\url\lib\URL::NORMALIZED_WINDOWS_DRIVE_LETTER.

Deprecated

5.0.0 The constant has been moved to esperecyan\url\lib\URL.

See

\esperecyan\url\lib\URL::NORMALIZED_WINDOWS_DRIVE_LETTER

Link

Editorial: move Windows drive letter to a more logical location · whatwg/url@ac6489f
# '/^[a-z]:$/ui'
string SIMPLE_ENCODE_SET

Alias of C0_CONTROL_PERCENT_ENCODE_SET.

Alias of C0_CONTROL_PERCENT_ENCODE_SET.

Deprecated

5.0.0 The constant has been renamed to C0_CONTROL_PERCENT_ENCODE_SET.

See

\esperecyan\url\lib\Infrastructure::C0_CONTROL_PERCENT_ENCODE_SET

Link

Editorial: use specific names for encode sets · whatwg/url@1d69a77
# '/[^ -~]/u'
string C0_CONTROL_PERCENT_ENCODE_SET

The regular expression (PCRE) pattern matching a character in the simple encode set.

The regular expression (PCRE) pattern matching a character in the simple encode set.

Link

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

Alias of PATH_PERCENT_ENCODE_SET.

Alias of PATH_PERCENT_ENCODE_SET.

Deprecated

5.0.0 The constant has been renamed to PATH_PERCENT_ENCODE_SET.

See

\esperecyan\url\lib\Infrastructure::PATH_PERCENT_ENCODE_SET

Link

Editorial: use specific names for encode sets · whatwg/url@1d69a77
# '/[^!$-;=@-_a-z|~]/u'
string PATH_PERCENT_ENCODE_SET

The regular expression (PCRE) pattern matching a character in the path percent-encode set.

The regular expression (PCRE) pattern matching a character in the path percent-encode set.

Link

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

Alias of USERINFO_PERCENT_ENCODE_SET.

Alias of USERINFO_PERCENT_ENCODE_SET.

Deprecated

3.3.0 The constant is renamed to USERINFO_PERCENT_ENCODE_SET.

See

\esperecyan\url\lib\Infrastructure::USERINFO_PERCENT_ENCODE_SET

Link

Encode more code points for usernames and passwords. Fixes #30. · whatwg/url@9ca26e5
Editorial: use specific names for encode sets · whatwg/url@1d69a77
# '/[^!$-.0-9A-Z_a-z~]/u'
string USERNAME_ENCODE_SET

Alias of USERINFO_PERCENT_ENCODE_SET.

Alias of USERINFO_PERCENT_ENCODE_SET.

Deprecated

3.3.0 The constant is renamed to USERINFO_PERCENT_ENCODE_SET.

See

\esperecyan\url\lib\Infrastructure::USERINFO_PERCENT_ENCODE_SET

Link

Encode more code points for usernames and passwords. Fixes #30. · whatwg/url@9ca26e5
Editorial: use specific names for encode sets · whatwg/url@1d69a77
# '/[^!$-.0-9A-Z_a-z~]/u'
string USERINFO_ENCODE_SET

Alias of USERINFO_PERCENT_ENCODE_SET.

Alias of USERINFO_PERCENT_ENCODE_SET.

Deprecated

5.0.0 The constant has been renamed to USERINFO_PERCENT_ENCODE_SET.

See

\esperecyan\url\lib\Infrastructure::USERINFO_PERCENT_ENCODE_SET

Link

Editorial: use specific names for encode sets · whatwg/url@1d69a77
# '/[^!$-.0-9A-Z_a-z~]/u'
string USERINFO_PERCENT_ENCODE_SET

The regular expression (PCRE) pattern matching a character in the userinfo percent-encode set.

The regular expression (PCRE) pattern matching a character in the userinfo percent-encode set.

Link

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