Text_Wiki
[ class tree: Text_Wiki ] [ index: Text_Wiki ] [ all elements ]

Class: Text_Wiki_Parse_Newline

Source Location: /Text_Wiki_Creole-1.0.2/Text/Wiki/Parse/Creole/Newline.php

Class Overview

Text_Wiki_Parse
   |
   --Text_Wiki_Parse_Newline

Parses for implied line breaks indicated by newlines.


Author(s):

Version:

  • $Id: Newline.php 240560 2007-08-01 11:00:11Z mic $

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 21]
Parses for implied line breaks indicated by newlines.

Newlines are not considered if followed by another newline or by one of these chars: * | - # = {

  • Author: Michele Tomaiuolo <tomamic@yahoo.it>
  • Version: $Id: Newline.php 240560 2007-08-01 11:00:11Z mic $
  • License: LGPL


[ Top ]


Class Variables

$regex =  '/(?<!\n)\n(?!\n|\#|\*|\=|\||\>|\:|\;|\!|\-\D)/m'

[line 38]

The regular expression used to parse the source text and find matches conforming to this rule. Used by the parse() method.
  • See: parse()
  • Access: public

Type:   string


[ Top ]



Method Detail

process   [line 54]

string process( array &$matches)

Generates a replacement token for the matched text.
  • Return: A delimited token to be used as a placeholder in the source text.
  • Access: public

Parameters:

array   &$matches   —  The array of matches from parse().

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:40:30 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.