cvs: php4 /ext/mbstring mbstring.c
| From: | Moriyoshi Koizumi | Date: | Tue, 18 Feb 2003 20:31:05 +0000 |
| Subject: | cvs: php4 /ext/mbstring mbstring.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-18964@lists.php.net to get a copy of this message | ||
moriyoshi Tue Feb 18 15:31:05 2003 EDT
Modified files:
/php4/ext/mbstring mbstring.c
Log:
Added description for the hand-made finite state machine.
Index: php4/ext/mbstring/mbstring.c
diff -u php4/ext/mbstring/mbstring.c:1.162 php4/ext/mbstring/mbstring.c:1.163
--- php4/ext/mbstring/mbstring.c:1.162 Tue Feb 18 13:49:47 2003
+++ php4/ext/mbstring/mbstring.c Tue Feb 18 15:31:04 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: mbstring.c,v 1.162 2003/02/18 18:49:47 moriyoshi Exp $ */
+/* $Id: mbstring.c,v 1.163 2003/02/18 20:31:04 moriyoshi Exp $ */
/*
* PHP4 Multibyte String module "mbstring"
@@ -2690,6 +2690,17 @@
ps = str;
icnt = str_len;
+
+ /*
+ * C o n t e n t - T y p e : t e x t / h t m l \r\n
+ * ^ ^^^^^^^^^^^^^^^^^^^^^ ^^^ ^^^^^^^^^^^^^^^^^ ^^^^
+ * state 0 1 2 3
+ *
+ * C o n t e n t - T y p e : t e x t / h t m l \r\n
+ * ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^
+ * crlf_state -1 0 1 -1
+ *
+ */
while (icnt > 0) {
switch (*ps) {