[ < ] [ > ]   [ << ] [Plus haut] [ >> ]         [Top] [Table des matières] [Index] [ ? ]

33.8 Scanning for Character Sets

Sometimes it is useful to find out which character sets appear in a part of a buffer or a string. One use for this is in determining which coding systems (voir la section Coding Systems) are capable of representing all of the text in question.

Function: charset-after &optional pos

This function return the charset of a character in the current buffer at position pos. If pos is omitted or nil, it defaults to the current value of point. If pos is out of range, the value is nil.

Function: find-charset-region beg end &optional translation

This function returns a list of the character sets that appear in the current buffer between positions beg and end.

The optional argument translation specifies a translation table to be used in scanning the text (voir la section Translation of Characters). If it is non-nil, then each character in the region is translated through this table, and the value returned describes the translated characters instead of the characters actually in the buffer.

Function: find-charset-string string &optional translation

This function returns a list of the character sets that appear in the string string. It is just like find-charset-region, except that it applies to the contents of string instead of part of the current buffer.


Ce document a été généré par Eric Reinbold le 13 Octobre 2007 en utilisant texi2html 1.78.