|  |  |  | Goffice Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
                    GOStringPhonetic;
                    GOString;
GType               go_string_get_type                  (void);
GOString *          go_string_new                       (char const *str);
GOString *          go_string_new_len                   (char const *str,
                                                         guint32 len);
GOString *          go_string_new_nocopy                (char *str);
GOString *          go_string_new_nocopy_len            (char *str,
                                                         guint32 len);
GOString *          go_string_new_rich                  (char const *str,
                                                         int byte_len,
                                                         gboolean copy,
                                                         PangoAttrList *markup,
                                                         GOStringPhonetic *phonetic);
GOString *          go_string_ref                       (GOString *gstr);
void                go_string_unref                     (GOString *gstr);
guint32             go_string_get_len                   (GOString const *gstr);
unsigned int        go_string_get_ref_count             (GOString const *gstr);
char const	 *       go_string_get_collation             (GOString const *gstr);
char const	 *       go_string_get_casefold              (GOString const *gstr);
PangoAttrList *     go_string_get_markup                (GOString const *gstr);
GOStringPhonetic *  go_string_get_phonetic              (GOString const *gstr);
guint32             go_string_hash                      (gconstpointer gstr);
int                 go_string_cmp                       (gconstpointer gstr_a,
                                                         gconstpointer gstr_b);
int                 go_string_cmp_ignorecase            (gconstpointer gstr_a,
                                                         gconstpointer gstr_b);
gboolean            go_string_equal                     (gconstpointer gstr_a,
                                                         gconstpointer gstr_b);
gboolean            go_string_equal_ignorecase          (gconstpointer gstr_a,
                                                         gconstpointer gstr_b);
gboolean            go_string_equal_rich                (gconstpointer gstr_a,
                                                         gconstpointer gstr_b);
GOString *          go_string_ERROR                     (void);
void                go_string_foreach_base              (GHFunc callback,
                                                         gpointer data);
GType go_string_get_type (void);
Register GOString as a type for GValue
| Returns : | GType | 
GOString * go_string_new (char const *str);
GOString duplicates str if no string already exists.
| 
 | string (optionally NULL) | 
| Returns : | a reference to a GOString containing str, orNULLifstris NULL | 
GOString * go_string_new_len (char const *str, guint32 len);
GOString duplicates str if no string already exists.
| 
 | string (optionally NULL) | 
| 
 | guint32 | 
| Returns : | a reference to a GOString containing str, orNULLifstris NULL | 
GOString * go_string_new_nocopy (char *str);
GOString takes ownership of str
| 
 | string | 
| Returns : | a reference to a GOString containing str | 
GOString * go_string_new_nocopy_len (char *str, guint32 len);
| 
 | |
| 
 | |
| Returns : | 
GOString * go_string_new_rich (char const *str, int byte_len, gboolean copy, PangoAttrList *markup, GOStringPhonetic *phonetic);
| 
 | string. | 
| 
 | < 0 will call strlen. | 
| 
 | TRUEstrshould be copied when adding to the string table. | 
| 
 | optionally NULLlist, GOString steals the ref. | 
| 
 | optionally NULLlist of phonetic extensions, GOString steals the ref. | 
| Returns : | a string. | 
unsigned int go_string_get_ref_count (GOString const *gstr);
| 
 | |
| Returns : | 
char const * go_string_get_collation (GOString const *gstr);
| 
 | |
| Returns : | 
char const * go_string_get_casefold (GOString const *gstr);
| 
 | |
| Returns : | 
PangoAttrList * go_string_get_markup (GOString const *gstr);
| 
 | |
| Returns : | 
GOStringPhonetic * go_string_get_phonetic (GOString const *gstr);
| 
 | |
| Returns : | 
int go_string_cmp (gconstpointer gstr_a, gconstpointer gstr_b);
| 
 | |
| 
 | |
| Returns : | 
int go_string_cmp_ignorecase (gconstpointer gstr_a, gconstpointer gstr_b);
| 
 | |
| 
 | |
| Returns : | 
gboolean go_string_equal (gconstpointer gstr_a, gconstpointer gstr_b);
| 
 | |
| 
 | |
| Returns : | 
gboolean go_string_equal_ignorecase (gconstpointer gstr_a, gconstpointer gstr_b);
| 
 | |
| 
 | |
| Returns : | 
gboolean go_string_equal_rich (gconstpointer gstr_a, gconstpointer gstr_b);
| 
 | |
| 
 | |
| Returns : | 
GOString * go_string_ERROR (void);
A convenience for g_return_val to share one error string without adding a reference to functions that do not add references to the result
| Returns : | A string saying 'ERROR' but does not add a ref to it. |