List Info

Thread: geshi-src/geshi/classes class.geshisinglecharcontext.php, 1.11, 1.12




geshi-src/geshi/classes class.geshisinglecharcontext.php, 1.11, 1.12
user name
2006-08-08 02:21:13
Update of /cvsroot/geshi/geshi-src/geshi/classes
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv10386

Modified Files:
	class.geshisinglecharcontext.php 
Log Message:
* Corrected a typo in the url to my clc-wiki userpage.
* Added documentary comments.

Index: class.geshisinglecharcontext.php
============================================================
=======
RCS file:
/cvsroot/geshi/geshi-src/geshi/classes/class.geshisinglechar
context.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** class.geshisinglecharcontext.php	7 Aug 2006 18:05:45
-0000	1.11
--- class.geshisinglecharcontext.php	8 Aug 2006 02:21:11
-0000	1.12
***************
*** 30,34 ****
   * subpackage core
   * author     Nigel McNie <nigelgeshi.org>;
!  *             http://clc-wi
ki.net/wiki/Users:Netocrat
   * license    http://www.gnu.o
rg/copyleft/gpl.html GNU GPL
   * copyright  (C) 2004 - 2006 Nigel McNie
--- 30,34 ----
   * subpackage core
   * author     Nigel McNie <nigelgeshi.org>;
!  *             http://clc-wik
i.net/wiki/User:Netocrat
   * license    http://www.gnu.o
rg/copyleft/gpl.html GNU GPL
   * copyright  (C) 2004 - 2006 Nigel McNie
***************
*** 42,49 ****
   * in java.
   *
!  * Note that this functionality assumes that the end
delimiter for single
!  * character contexts is just one character long (a
sensible assumption made for
!  * speed reasons). If required in the future this class
could support longer end
!  * delimiters.
   *
   * package    geshi
--- 42,50 ----
   * in java.
   *
!  * Escape sequences need not be limited to one character
and may be REGEX-
!  * specified, to allow for situations such as C's octal
and hexadecimal escapes,
!  * e.g. '\xFF'.  Likewise for the start and end
delimiter, and the escape
!  * "character".  This is handy for situations
such as C's widestring
!  * characters, which are prefixed by an L.
   *
   * package    geshi
***************
*** 62,66 ****
       * access private
       */
!     // The parsed data when getContextStartData() is
successful
      var $_characterLen;
      var $_endDelimiterLen;
--- 63,67 ----
       * access private
       */
!     /** The parsed data when getContextStartData() is
successful. */
      var $_characterLen;
      var $_endDelimiterLen;
***************
*** 69,75 ****
      var $_disallowEmpty;
  
      var $_escapeCharacters;
! 
!     // Characters that should be escaped
      var $_charsToEscape;
  
--- 70,76 ----
      var $_disallowEmpty;
  
+     /** Characters that start an escape sequence... */
      var $_escapeCharacters;
!     /** ...and the valid escape sequences that can follow.
*/
      var $_charsToEscape;
  
***************
*** 78,82 ****
      // }}}
      // {{{ setEscapeCharacters()
! 
      function setEscapeCharacters ($chars)
      {
--- 79,90 ----
      // }}}
      // {{{ setEscapeCharacters()
!     /**
!      * Specifies each "character" that should
be interpreted as the start of an
!      * escape sequence when it occurs immediately
subsequent to a start
!      * delimiter.  Each "character" may be
greater than one actual character in
!      * length, and may optionally be specified by a
REGEX-string - look-behind
!      * assertions on such regexes are not supported.
!      * param Mixed Array of strings or single string.
!      */
      function setEscapeCharacters ($chars)
      {
***************
*** 86,90 ****
      // }}}
      // {{{ setCharactersToEscape()
! 
      function setCharactersToEscape ($chars)
      {
--- 94,104 ----
      // }}}
      // {{{ setCharactersToEscape()
!     /**
!      * Specifies all escape sequences that are valid
following any of the
!      * escape characters.  Each escape sequence may be
greater than one
!      * character in length and may be specified by a
REGEX-string - look-behind
!      * assertions on such regexes are not supported.
!      * param Mixed Array of strings or single string.
!      */
      function setCharactersToEscape ($chars)
      {
***************
*** 126,131 ****
       * start.  Checks for a complete character including
start and end
       * delimiters and valid contained character, which
might be an escape
!      * sequence.  Stores all data found for use by
_getContextEndData() and
!      * _addParseData(), to avoid reparsing.
       *
       * param string $code
--- 140,145 ----
       * start.  Checks for a complete character including
start and end
       * delimiters and valid contained character, which
might be an escape
!      * sequence.  Stores all data found so that it may be
used by
!      * _getContextEndData() and _addParseData(), to avoid
reparsing.
       *
       * param string $code
***************
*** 177,182 ****
              if ($esc_start !== null) {
                  /* Check for a valid full escape sequence;
allow regexes
!                 /* that match sequences of length > 1. 
Match the most
!                 /* inclusive char/regex. */
                  $start = $data['pos'] + $data['len'] +
$esc_len;
                  $esc_seq = geshi_whichsubstr($code,
$this->_charsToEscape,
--- 191,196 ----
              if ($esc_start !== null) {
                  /* Check for a valid full escape sequence;
allow regexes
!                  * that match sequences of length > 1. 
Match the most
!                  * inclusive char/regex. */
                  $start = $data['pos'] + $data['len'] +
$esc_len;
                  $esc_seq = geshi_whichsubstr($code,
$this->_charsToEscape,


------------------------------------------------------------
-------------
Using Tomcat but need to do more? Need to support web
services, security?
Get stuff done quickly with pre-integrated technology to
make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on
Apache Geronimo
http://sel.as-us.falkag.net/
sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
geshi-cvs mailing list
geshi-cvslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geshi-cvs

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )