Documentation

SimplePie_Misc
in package

Table of Contents

Methods

absolutize_url()  : mixed
atom_03_construct_type()  : mixed
atom_10_construct_type()  : mixed
atom_10_content_construct_type()  : mixed
change_encoding()  : string|bool
Change a string from one encoding to another
compress_parse_url()  : mixed
encoding()  : string
Normalize an encoding name
error()  : mixed
fix_protocol()  : mixed
get_build()  : mixed
Get the SimplePie build timestamp
get_curl_version()  : mixed
is_isegment_nz_nc()  : mixed
normalize_url()  : mixed
parse_date()  : mixed
parse_url()  : mixed
silence_errors()  : mixed
strip_comments()  : string
Strip HTML comments
windows_1252_to_utf8()  : string
Converts a Windows-1252 encoded string to a UTF-8 encoded string
xml_encoding()  : array<string|int, mixed>
Detect XML encoding, as per XML 1.0 Appendix F.1
change_encoding_iconv()  : mixed
change_encoding_mbstring()  : mixed
change_encoding_uconverter()  : string|false

Methods

absolutize_url()

public static absolutize_url(mixed $relative, mixed $base) : mixed
Parameters
$relative : mixed
$base : mixed

atom_03_construct_type()

public static atom_03_construct_type(mixed $attribs) : mixed
Parameters
$attribs : mixed

atom_10_construct_type()

public static atom_10_construct_type(mixed $attribs) : mixed
Parameters
$attribs : mixed

atom_10_content_construct_type()

public static atom_10_content_construct_type(mixed $attribs) : mixed
Parameters
$attribs : mixed

change_encoding()

Change a string from one encoding to another

public static change_encoding(string $data, string $input, string $output) : string|bool
Parameters
$data : string

Raw data in $input encoding

$input : string

Encoding of $data

$output : string

Encoding you want

Return values
string|bool

False if we can't convert it

compress_parse_url()

public static compress_parse_url([mixed $scheme = '' ][, mixed $authority = '' ][, mixed $path = '' ][, mixed $query = '' ][, mixed $fragment = '' ]) : mixed
Parameters
$scheme : mixed = ''
$authority : mixed = ''
$path : mixed = ''
$query : mixed = ''
$fragment : mixed = ''

encoding()

Normalize an encoding name

public static 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.

Parameters
$charset : string

Character set to standardise

Return values
string

Standardised name

error()

public static error(mixed $message, mixed $level, mixed $file, mixed $line) : mixed
Parameters
$message : mixed
$level : mixed
$file : mixed
$line : mixed

fix_protocol()

public static fix_protocol(mixed $url[, mixed $http = 1 ]) : mixed
Parameters
$url : mixed
$http : mixed = 1

get_build()

Get the SimplePie build timestamp

public static get_build() : mixed

Uses the git index if it exists, otherwise uses the modification time of the newest file.

get_curl_version()

public static get_curl_version() : mixed

is_isegment_nz_nc()

public static is_isegment_nz_nc(mixed $string) : mixed
Parameters
$string : mixed

normalize_url()

public static normalize_url(mixed $url) : mixed
Parameters
$url : mixed

parse_date()

public static parse_date(mixed $dt) : mixed
Parameters
$dt : mixed

parse_url()

public static parse_url(mixed $url) : mixed
Parameters
$url : mixed

silence_errors()

public static silence_errors(mixed $num, mixed $str) : mixed
Parameters
$num : mixed
$str : mixed

strip_comments()

Strip HTML comments

public static strip_comments(string $data) : string
Parameters
$data : string

Data to strip comments from

Return values
string

Comment stripped string

windows_1252_to_utf8()

Converts a Windows-1252 encoded string to a UTF-8 encoded string

public static windows_1252_to_utf8(string $string) : string
Parameters
$string : string

Windows-1252 encoded string

Tags
static
Return values
string

UTF-8 encoded string

xml_encoding()

Detect XML encoding, as per XML 1.0 Appendix F.1

public static xml_encoding(string $data, SimplePie_Registry $registry) : array<string|int, mixed>
Parameters
$data : string

XML data

$registry : SimplePie_Registry

Class registry

Tags
todo

Add support for EBCDIC

Return values
array<string|int, mixed>

Possible encodings

change_encoding_iconv()

protected static change_encoding_iconv(mixed $data, mixed $input, mixed $output) : mixed
Parameters
$data : mixed
$input : mixed
$output : mixed

change_encoding_mbstring()

protected static change_encoding_mbstring(mixed $data, mixed $input, mixed $output) : mixed
Parameters
$data : mixed
$input : mixed
$output : mixed

change_encoding_uconverter()

protected static change_encoding_uconverter(string $data, string $input, string $output) : string|false
Parameters
$data : string
$input : string
$output : string
Return values
string|false

        
On this page

Search results