![]() |
![]() |
![]() |
Conglomerate Programmer's Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
CongTextCacheSpan * cong_text_cache_span_new (int original_first_byte_offset
,int stripped_first_byte_offset
,int byte_count
); CongTextCache * cong_text_cache_new (gboolean strip_whitespace
,const gchar *string
,PangoAttrList *attr_list
); void cong_text_cache_free (CongTextCache *text_cache
); const gchar * cong_text_cache_get_output_text (CongTextCache *text_cache
); PangoAttrList * cong_text_cache_get_output_attributes (CongTextCache *text_cache
); void cong_text_cache_set_input_text (CongTextCache *text_cache
,const gchar *input_string
); void cong_text_cache_set_input_attributes (CongTextCache *text_cache
,PangoAttrList *attr_list
); gboolean cong_text_cache_convert_stripped_byte_offset_to_original (CongTextCache *text_cache
,int stripped_byte_offset
,int *original_byte_offset
); gboolean cong_text_cache_convert_original_byte_offset_to_stripped (CongTextCache *text_cache
,int original_byte_offset
,int *stripped_byte_offset
);
CongTextCacheSpan * cong_text_cache_span_new (int original_first_byte_offset
,int stripped_first_byte_offset
,int byte_count
);
CongTextCache * cong_text_cache_new (gboolean strip_whitespace
,const gchar *string
,PangoAttrList *attr_list
);
Create a new CongTextCache.
|
Should whitespace be stripped ("normalised") if TRUE, or preserved if FALSE |
|
the UTF8 string, must be non-NULL |
|
Pango attributes for the string; can be NULL if you don't care about them |
Returns : |
the new CongTextCache |
const gchar * cong_text_cache_get_output_text (CongTextCache *text_cache
);
Get the text from the cache, which will have had the appropriate operation performed on it.
|
the text cache from which to get the result |
Returns : |
the result of the operation as a UTF-8 string (owned by the CongTextCache) |
PangoAttrList * cong_text_cache_get_output_attributes
(CongTextCache *text_cache
);
Get the text attributes from the cache, which will have had the appropriate operation performed on it.
Returns : |
the attributes, which you must unref when you are finished. |
void cong_text_cache_set_input_text (CongTextCache *text_cache
,const gchar *input_string
);
TODO: Write me
void cong_text_cache_set_input_attributes (CongTextCache *text_cache
,PangoAttrList *attr_list
);
TODO: Write me
gboolean cong_text_cache_convert_stripped_byte_offset_to_original (CongTextCache *text_cache
,int stripped_byte_offset
,int *original_byte_offset
);
TODO: Write me
gboolean cong_text_cache_convert_original_byte_offset_to_stripped (CongTextCache *text_cache
,int original_byte_offset
,int *stripped_byte_offset
);
TODO: Write me