PregClipboard Class Reference

Inheritance diagram for PregClipboard:

PregParser

List of all members.


Detailed Description

"Virtual clipboard" functions.

Public Member Functions

 PregClipboard ($uid=0)
 uid is an unique id of this clipboard. It's recommended to use characters in range \x01-\x07
 cut ($text, $regexp, $group=0)
 Find strings in $text that match $regexp, replace them with 'invisible' markers (consisting of the characters in range \x01-\x19) and copy them to the clipboard. If $group != 0, copies $group-th captured regexp subgroup (by default, the whole matched string).
 copy ($str)
 Place the string in the clipboard and return a marker for it.
 paste ($text)
 Insert strings from the clipboard back into the text.
 clear ()
 Clear the clipboard.

Public Attributes

 $data = array()
 Array of strings that are currently in clipboard. Can be freely changed.

The documentation for this class was generated from the following file:

Generated on Tue May 20 13:52:05 2008 for makrell by  doxygen 1.5.5