Class QueryPathEntities

(line 3643)

Description


Located in File: /src/QueryPath/QueryPath.php



Class Variables

Summary:
static mixed $regex

static $regex = '/&([\w]+);|&#([\d]+);|&#(x[0-9a-fA-F]+);|(&)/m' (line 3656)

Data type : mixed

This is three regexes wrapped into 1. The | divides them.

1: Match any char-based entity. This will go in $matches[1] 2: Match any num-based entity. This will go in $matches[2] 3: Match any hex-based entry. This will go in $matches[3] 4: Match any ampersand that is not an entity. This goes in $matches[4] This last rule will only match if one of the previous two has not already matched. XXX: Are octal encodings for entities acceptable?

  • access: - protected

Class Constants

Summary:

Method Detail

Summary:
static void doReplacement (array $matches)
static string replaceAllEntities (string $string)
static int replaceEntity (string $entity)

Static Method doReplacement (line 3680)

void doReplacement( array $matches)

Callback for processing replacements.

Parameters

  • array $matches: The regular expression replacement array.

Info

  • access - protected

Static Method replaceAllEntities (line 3670)

string replaceAllEntities( string $string)

Replace all entities.

This will scan a string and will attempt to replace all entities with their numeric equivalent. This will not work with specialized entities.

Parameters

  • string $string: The string to perform replacements on.

Info

  • return - Returns a string that is similar to the original one, but with all entity replacements made.
  • access - public

Static Method replaceEntity (line 3711)

int replaceEntity( string $entity)

Lookup an entity string's numeric equivalent.

Parameters

  • string $entity: The entity whose numeric value is needed.

Info

  • return - The integer value corresponding to the entity.
  • author - Ryan Mahoney
  • author - Matt Butcher
  • access - public

Inherited Variables

Inherited Class Variable Summary

Inherited Methods

Inherited Method Summary


Documentation generated on Sun, 25 Jul 2010 16:09:11 -0500 by phpDocumentor 1.4.3