![]() |
![]() |
![]() |
Anjuta Developers Reference Manual | ![]() |
---|---|---|---|---|
#include <libanjuta/anjuta-encodings.h> AnjutaEncoding; const AnjutaEncoding* anjuta_encoding_get_from_charset (const gchar *charset); const AnjutaEncoding* anjuta_encoding_get_from_index (gint index); gchar* anjuta_encoding_to_string (const AnjutaEncoding *enc); const gchar* anjuta_encoding_get_charset (const AnjutaEncoding *enc); GList* anjuta_encoding_get_encodings (GList *encoding_strings); void anjuta_encodings_init (AnjutaPreferences *pref, GladeXML *gxml); #define SAVE_ENCODING_ORIGINAL #define SAVE_ENCODING_CURRENT_LOCALE #define SUPPORTED_ENCODINGS
const AnjutaEncoding* anjuta_encoding_get_from_charset (const gchar *charset);
Gets AnjutaEncoding object corresponding to the given character set
charset : |
Character set for the encoding. |
Returns : | AnjutaEncoding object for the given charset |
const AnjutaEncoding* anjuta_encoding_get_from_index (gint index);
Retrieves AnjutaEncoding object at the given index.
index : |
|
Returns : | AnjutaEncoding object at the index idx .
|
gchar* anjuta_encoding_to_string (const AnjutaEncoding *enc);
Returns the string form of the given encoding.
enc : |
an AnjutaEncoding object |
Returns : | string name of the encoding. |
const gchar* anjuta_encoding_get_charset (const AnjutaEncoding *enc);
Gets the character set for the given encoding.
enc : |
an AnjutaEncoding object |
Returns : | Character set |
GList* anjuta_encoding_get_encodings (GList *encoding_strings);
Returns list of encoding objects for the given names.
encoding_strings : |
|
Returns : | list of AnjutaEncoding objects |
void anjuta_encodings_init (AnjutaPreferences *pref, GladeXML *gxml);
Initializes the encodings system.
pref : |
an AnjutaPreferences object. |
gxml : |
an GladeXML object holding encodings dialog. |