[xoops-cvslog 5522] CVS update: xoops2jp/html/modules/legacy/lib/EasyLex

Back to archive index

Minahito minah****@users*****
2006年 10月 30日 (月) 18:54:57 JST


Index: xoops2jp/html/modules/legacy/lib/EasyLex/EasyLex_SQLScanner.class.php
diff -u xoops2jp/html/modules/legacy/lib/EasyLex/EasyLex_SQLScanner.class.php:1.1.2.1 xoops2jp/html/modules/legacy/lib/EasyLex/EasyLex_SQLScanner.class.php:1.1.2.2
--- xoops2jp/html/modules/legacy/lib/EasyLex/EasyLex_SQLScanner.class.php:1.1.2.1	Thu Oct 19 19:20:58 2006
+++ xoops2jp/html/modules/legacy/lib/EasyLex/EasyLex_SQLScanner.class.php	Mon Oct 30 18:54:56 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package EasyLexSQL
- * @varsion $Id: EasyLex_SQLScanner.class.php,v 1.1.2.1 2006/10/19 10:20:58 minahito Exp $
+ * @varsion $Id: EasyLex_SQLScanner.class.php,v 1.1.2.2 2006/10/30 09:54:56 minahito Exp $
  * 
  * In the original BSD license, both occurrences of the phrase "COPYRIGHT
  * HOLDERS AND CONTRIBUTORS" in the disclaimer read "REGENTS AND CONTRIBUTORS".
@@ -46,6 +46,41 @@
 define('EASYLEX_SQL_MARK', 8);
 define('EASYLEX_SQL_COMMA', 9);
 
+class EasyLex_SQLToken
+{
+	var $mType = EASYLEX_SQL_UNKNOWN;
+	var $mValue = "";
+	
+	function EasyLex_SQLToken($type, $value)
+	{
+		$this->mType = $type;
+		$this->mValue = $value;
+	}
+	
+	function getOutputValue()
+	{
+		if ($this->mType == EASYLEX_SQL_SEPARATER) {
+			return "";
+		}
+		else {
+			return $this->mValue;
+		}
+	}
+	
+	function getValue()
+	{
+		if ($this->mType == EASYLEX_SQL_SEPARATER) {
+			return "";
+		}
+		
+		if ($this->mType == EASYLEX_SQL_STRING_LITERAL) {
+			return substr($this->mValue, 1, strlen($this->mValue) - 2);
+		}
+		
+		return $this->mValue;
+	}
+}
+
 /**
  * This is BSD easy lexcal scanner for SQL.
  * 
@@ -317,7 +352,7 @@
 		
 		$token =& new EasyLex_SQLToken($type, $value);
 		$this->mTokens[] =& $token;
-		
+
 		$this->mStatus = EASYLEX_SQL_UNKNOWN;
 		$this->mActiveToken = "";
 		
@@ -377,39 +412,4 @@
 	}
 }
 
-class EasyLex_SQLToken
-{
-	var $mType = EASYLEX_SQL_UNKNOWN;
-	var $mValue = "";
-	
-	function EasyLex_SQLToken($type, $value)
-	{
-		$this->mType = $type;
-		$this->mValue = $value;
-	}
-	
-	function getOutputValue()
-	{
-		if ($this->mType == EASYLEX_SQL_SEPARATER) {
-			return "";
-		}
-		else {
-			return $this->mValue;
-		}
-	}
-	
-	function getValue()
-	{
-		if ($this->mType == EASYLEX_SQL_SEPARATER) {
-			return "";
-		}
-		
-		if ($this->mType == EASYLEX_SQL_STRING_LITERAL) {
-			return substr($this->mValue, 1, strlen($this->mValue) - 2);
-		}
-		
-		return $this->mValue;
-	}
-}
-
 ?>
\ No newline at end of file


xoops-cvslog メーリングリストの案内
Back to archive index