diff options
| author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-02-18 20:31:04 +0000 |
|---|---|---|
| committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-02-18 20:31:04 +0000 |
| commit | dd0462c78f5ab6fdf4e7f543db08eb7833bc7d9a (patch) | |
| tree | 64dd646295fdcd34736d79e7b437e85dd3cc9a7f /ext | |
| parent | 0799d2db84263987b7678d890f416b9edcbadeaa (diff) | |
| download | php-git-dd0462c78f5ab6fdf4e7f543db08eb7833bc7d9a.tar.gz | |
Added description for the hand-made finite state machine.
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/mbstring/mbstring.c | 11 |
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 ':': |
