geany  1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
  Fossies Dox: geany-1.38.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

encodingsprivate.h File Reference
#include "encodings.h"
Include dependency graph for encodingsprivate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GeanyEncoding
 

Typedefs

typedef struct GeanyEncoding GeanyEncoding
 

Enumerations

enum  GeanyEncodingGroup {
  NONE = 0 , WESTEUROPEAN , EASTEUROPEAN , EASTASIAN ,
  ASIAN , MIDDLEEASTERN , UNICODE , GEANY_ENCODING_GROUPS_MAX
}
 

Functions

const GeanyEncodingencodings_get_from_charset (const gchar *charset)
 
const GeanyEncodingencodings_get_from_index (gint idx)
 
gchar * encodings_to_string (const GeanyEncoding *enc)
 
const gchar * encodings_get_charset (const GeanyEncoding *enc)
 
void encodings_select_radio_item (const gchar *charset)
 
void encodings_init (void)
 
void encodings_finalize (void)
 
GtkTreeStore * encodings_encoding_store_new (gboolean has_detect)
 
gint encodings_encoding_store_get_encoding (GtkTreeStore *store, GtkTreeIter *iter)
 
gboolean encodings_encoding_store_get_iter (GtkTreeStore *store, GtkTreeIter *iter, gint enc)
 
void encodings_encoding_store_cell_data_func (GtkCellLayout *cell_layout, GtkCellRenderer *cell, GtkTreeModel *tree_model, GtkTreeIter *iter, gpointer data)
 
gboolean encodings_is_unicode_charset (const gchar *string)
 
gboolean encodings_convert_to_utf8_auto (gchar **buf, gsize *size, const gchar *forced_enc, gchar **used_encoding, gboolean *has_bom, gboolean *partial)
 
GeanyEncodingIndex encodings_scan_unicode_bom (const gchar *string, gsize len, guint *bom_len)
 
GeanyEncodingIndex encodings_get_idx_from_charset (const gchar *charset)
 

Variables

GeanyEncoding encodings [GEANY_ENCODINGS_MAX]
 

Typedef Documentation

◆ GeanyEncoding

typedef struct GeanyEncoding GeanyEncoding

Enumeration Type Documentation

◆ GeanyEncodingGroup

Enumerator
NONE 
WESTEUROPEAN 
EASTEUROPEAN 
EASTASIAN 
ASIAN 
MIDDLEEASTERN 
UNICODE 
GEANY_ENCODING_GROUPS_MAX 

Definition at line 27 of file encodingsprivate.h.

Function Documentation

◆ encodings_convert_to_utf8_auto()

gboolean encodings_convert_to_utf8_auto ( gchar **  buf,
gsize *  size,
const gchar *  forced_enc,
gchar **  used_encoding,
gboolean *  has_bom,
gboolean *  partial 
)

◆ encodings_encoding_store_cell_data_func()

void encodings_encoding_store_cell_data_func ( GtkCellLayout *  cell_layout,
GtkCellRenderer *  cell,
GtkTreeModel *  tree_model,
GtkTreeIter *  iter,
gpointer  data 
)

Definition at line 597 of file encodings.c.

References NULL, and text.

Referenced by prefs_show_dialog(), and ui_create_encodings_combo_box().

◆ encodings_encoding_store_get_encoding()

gint encodings_encoding_store_get_encoding ( GtkTreeStore *  store,
GtkTreeIter *  iter 
)

◆ encodings_encoding_store_get_iter()

gboolean encodings_encoding_store_get_iter ( GtkTreeStore *  store,
GtkTreeIter *  iter,
gint  enc 
)

◆ encodings_encoding_store_new()

GtkTreeStore * encodings_encoding_store_new ( gboolean  has_detect)

◆ encodings_finalize()

void encodings_finalize ( void  )

Definition at line 391 of file encodings.c.

References pregs, and pregs_loaded.

Referenced by do_main_quit().

◆ encodings_get_charset()

const gchar * encodings_get_charset ( const GeanyEncoding enc)

Definition at line 285 of file encodings.c.

References GeanyEncoding::charset, and NULL.

◆ encodings_get_from_charset()

const GeanyEncoding * encodings_get_from_charset ( const gchar *  charset)

◆ encodings_get_from_index()

const GeanyEncoding * encodings_get_from_index ( gint  idx)

Definition at line 247 of file encodings.c.

References encodings, GEANY_ENCODINGS_MAX, and NULL.

◆ encodings_get_idx_from_charset()

GeanyEncodingIndex encodings_get_idx_from_charset ( const gchar *  charset)

◆ encodings_init()

◆ encodings_is_unicode_charset()

gboolean encodings_is_unicode_charset ( const gchar *  string)

◆ encodings_scan_unicode_bom()

GeanyEncodingIndex encodings_scan_unicode_bom ( const gchar *  string,
gsize  len,
guint *  bom_len 
)

◆ encodings_select_radio_item()

void encodings_select_radio_item ( const gchar *  charset)

◆ encodings_to_string()

gchar * encodings_to_string ( const GeanyEncoding enc)

Definition at line 275 of file encodings.c.

References GeanyEncoding::charset, GeanyEncoding::name, and NULL.

Referenced by encodings_encoding_store_new(), and encodings_init().

Variable Documentation

◆ encodings