]> granicus.if.org Git - php/commitdiff
Added description for the hand-made finite state machine.
authorMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 18 Feb 2003 20:31:04 +0000 (20:31 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Tue, 18 Feb 2003 20:31:04 +0000 (20:31 +0000)
ext/mbstring/mbstring.c

index 131dba9c1e79c95f4adf208c9c2afeb407800c58..3f9558efc7101138449f071597684fbdf13729fc 100644 (file)
@@ -2691,6 +2691,17 @@ static int _php_mbstr_parse_mail_headers(HashTable *ht, const char *str, size_t
        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) {
                        case ':':