Extracted from Pike v7.6 release 61 at 2005-12-30.
pike.ida.liu.se
[Top]
MIME

Method MIME.tokenize_labled()


Method tokenize_labled

array(array(string|int)) MIME.tokenize_labled(string header)

Description

Similar to tokenize() , but labels the contents, by making arrays with two elements; the first a label, and the second the value that tokenize() would have put there, except for that comments are kept.

The following labels exist:

"encoded-word"

Word encoded according to =?...

"special"

Special character.

"word"

Word.

"domain-literal"

Domain literal.

"comment"

Comment.


See also

MIME.quote() , tokenize() , decode_words_tokenized_labled_remapped()