Class SimplePie_XML_Declaration_Parser

Description

Parses the XML Declaration

Located in /libraries/simplepie/simplepie.php (line 13739)


	
			
Variable Summary
string $data
string $encoding
int $position
string $state
string $version
Method Summary
SimplePie_XML_Declaration_Parser SimplePie_XML_Declaration_Parser (string $data)
void encoding_equals ()
void encoding_name ()
void encoding_value ()
void get_value ()
bool has_data ()
bool parse ()
void standalone_name ()
void version_equals ()
void version_name ()
void version_value ()
Variables
string $data = '' (line 13779)

Input data

  • access: private
int $data_length = 0 (line 13787)

Input data length (to avoid calling strlen() everytime this is needed)

  • access: private
string $encoding = 'UTF-8' (line 13755)

Encoding

  • access: public
int $position = 0 (line 13795)

Current position of the pointer

  • access: private
bool $standalone = false (line 13763)

Standalone

  • access: public
string $state = 'before_version_name' (line 13771)

Current state of the state machine

  • access: private
string $version = '1.0' (line 13747)

XML Version

  • access: public
Methods
Constructor SimplePie_XML_Declaration_Parser (line 13803)

Create an instance of the class with the input data

  • access: public
SimplePie_XML_Declaration_Parser SimplePie_XML_Declaration_Parser (string $data)
  • string $data: Input data
before_version_name (line 13879)
void before_version_name ()
encoding_equals (line 13953)
void encoding_equals ()
encoding_name (line 13939)
void encoding_name ()
encoding_value (line 13967)
void encoding_value ()
get_value (line 13862)

Read value

void get_value ()
has_data (line 13842)

Check whether there is data beyond the pointer

  • return: true if there is further data, false if not
  • access: private
bool has_data ()
parse (line 13815)

Parse the input data

  • return: true on success, false on failure
  • access: public
bool parse ()
skip_whitespace (line 13852)

Advance past any whitespace

  • return: Number of whitespace characters passed
int skip_whitespace ()
standalone_equals (line 14001)
void standalone_equals ()
standalone_name (line 13987)
void standalone_name ()
standalone_value (line 14015)
void standalone_value ()
version_equals (line 13905)
void version_equals ()
version_name (line 13891)
void version_name ()
version_value (line 13919)
void version_value ()

Documentation generated on Mon, 25 Jun 2012 13:59:36 -0500 by phpDocumentor 1.4.4