summaryrefslogtreecommitdiff
path: root/ext/mbstring
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-02-18 20:31:04 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-02-18 20:31:04 +0000
commitdd0462c78f5ab6fdf4e7f543db08eb7833bc7d9a (patch)
tree64dd646295fdcd34736d79e7b437e85dd3cc9a7f /ext/mbstring
parent0799d2db84263987b7678d890f416b9edcbadeaa (diff)
downloadphp-git-dd0462c78f5ab6fdf4e7f543db08eb7833bc7d9a.tar.gz
Added description for the hand-made finite state machine.
Diffstat (limited to 'ext/mbstring')
-rw-r--r--ext/mbstring/mbstring.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c
index 131dba9c1e..3f9558efc7 100644
--- a/ext/mbstring/mbstring.c
+++ b/ext/mbstring/mbstring.c
@@ -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 ':':