Miscellanous utilities
package | SimplePie |
---|
absolutize_url($relative, $base)
atom_03_construct_type($attribs)
atom_10_construct_type($attribs)
atom_10_content_construct_type($attribs)
change_encoding(string $data, string $input, string $output) : string | boolean
string
Raw data in $input encoding
string
Encoding of $data
string
Encoding you want
string
boolean
False if we can't convert itcodepoint_to_utf8(integer $codepoint) : string
static |
---|
integer
Unicode codepoint
string
UTF-8 charactercompress_parse_url($scheme= ''
, $authority= ''
, $path= ''
, $query= ''
, $fragment= ''
)
debug($sp)
element_implode($element)
encoding(string $charset) : string
This is automatically generated by create.php
To generate it, run php create.php
on the command line, and copy the
output to replace this function.
string
Character set to standardise
string
Standardised nameentities_decode(string $data) : string
deprecated | Use DOMDocument instead |
---|
string
Input data
string
Output dataerror($message, $level, $file, $line)
fix_protocol($url, $http = 1
)
get_build()
Uses the git index if it exists, otherwise uses the modification time of the newest file.
get_curl_version()
get_element(string $realname, string $string) : array
deprecated | Use DOMDocument instead (parsing HTML with regex is bad!) |
---|
string
Element name (including namespace prefix if applicable)
string
HTML document
array
is_isegment_nz_nc($string)
normalize_url($url)
output_javascript()
parse_date($dt)
parse_mime($mime)
parse_str(string $str) : array
Returns an associative array of name/value pairs, where the value is an array of values that have used the same name
static |
---|
string
The input string.
array
parse_url($url)
percent_encoding_normalization($match)
silence_errors($num, $str)
space_seperated_tokens($string)
time_hms($seconds)
uncomment_rfc822($string) : string
string
Comment stripped stringwindows_1252_to_utf8(string $string) : string
static |
---|
string
Windows-1252 encoded string
string
UTF-8 encoded stringxml_encoding(string $data, \SimplePie_Registry $registry) : array
todo | Add support for EBCDIC |
---|
string
XML data
\SimplePie_Registry
Class registry
array
Possible encodingschange_encoding_iconv($data, $input, $output)
change_encoding_mbstring($data, $input, $output)
Strip HTML comments
Parameters
$data
string
Data to strip comments from
Returns
string
Comment stripped string