Coverage Report

Created: 2026-02-26 06:27

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/glib/glib/gstring.h
Line
Count
Source
1
/* GLIB - Library of useful routines for C programming
2
 * Copyright (C) 1995-1997  Peter Mattis, Spencer Kimball and Josh MacDonald
3
 *
4
 * This library is free software; you can redistribute it and/or
5
 * modify it under the terms of the GNU Lesser General Public
6
 * License as published by the Free Software Foundation; either
7
 * version 2.1 of the License, or (at your option) any later version.
8
 *
9
 * This library is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 * Lesser General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU Lesser General Public
15
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
16
 */
17
18
/*
19
 * Modified by the GLib Team and others 1997-2000.  See the AUTHORS
20
 * file for a list of people on the GLib Team.  See the ChangeLog
21
 * files for a list of changes.  These files are distributed with
22
 * GLib at ftp://ftp.gtk.org/pub/gtk/.
23
 */
24
25
#ifndef __G_STRING_H__
26
#define __G_STRING_H__
27
28
#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
29
#error "Only <glib.h> can be included directly."
30
#endif
31
32
#include <glib/gtypes.h>
33
#include <glib/gunicode.h>
34
#include <glib/gbytes.h>
35
#include <glib/gutils.h>  /* for G_CAN_INLINE */
36
37
G_BEGIN_DECLS
38
39
typedef struct _GString         GString;
40
41
struct _GString
42
{
43
  gchar  *str;
44
  gsize len;
45
  gsize allocated_len;
46
};
47
48
GLIB_AVAILABLE_IN_ALL
49
GString*     g_string_new               (const gchar     *init);
50
GLIB_AVAILABLE_IN_ALL
51
GString*     g_string_new_len           (const gchar     *init,
52
                                         gssize           len);
53
GLIB_AVAILABLE_IN_ALL
54
GString*     g_string_sized_new         (gsize            dfl_size);
55
GLIB_AVAILABLE_IN_ALL
56
gchar*       g_string_free              (GString         *string,
57
                                         gboolean         free_segment);
58
GLIB_AVAILABLE_IN_2_34
59
GBytes*      g_string_free_to_bytes     (GString         *string);
60
GLIB_AVAILABLE_IN_ALL
61
gboolean     g_string_equal             (const GString   *v,
62
                                         const GString   *v2);
63
GLIB_AVAILABLE_IN_ALL
64
guint        g_string_hash              (const GString   *str);
65
GLIB_AVAILABLE_IN_ALL
66
GString*     g_string_assign            (GString         *string,
67
                                         const gchar     *rval);
68
GLIB_AVAILABLE_IN_ALL
69
GString*     g_string_truncate          (GString         *string,
70
                                         gsize            len);
71
GLIB_AVAILABLE_IN_ALL
72
GString*     g_string_set_size          (GString         *string,
73
                                         gsize            len);
74
GLIB_AVAILABLE_IN_ALL
75
GString*     g_string_insert_len        (GString         *string,
76
                                         gssize           pos,
77
                                         const gchar     *val,
78
                                         gssize           len);
79
GLIB_AVAILABLE_IN_ALL
80
GString*     g_string_append            (GString         *string,
81
                                         const gchar     *val);
82
GLIB_AVAILABLE_IN_ALL
83
GString*     g_string_append_len        (GString         *string,
84
                                         const gchar     *val,
85
                                         gssize           len);
86
GLIB_AVAILABLE_IN_ALL
87
GString*     g_string_append_c          (GString         *string,
88
                                         gchar            c);
89
GLIB_AVAILABLE_IN_ALL
90
GString*     g_string_append_unichar    (GString         *string,
91
                                         gunichar         wc);
92
GLIB_AVAILABLE_IN_ALL
93
GString*     g_string_prepend           (GString         *string,
94
                                         const gchar     *val);
95
GLIB_AVAILABLE_IN_ALL
96
GString*     g_string_prepend_c         (GString         *string,
97
                                         gchar            c);
98
GLIB_AVAILABLE_IN_ALL
99
GString*     g_string_prepend_unichar   (GString         *string,
100
                                         gunichar         wc);
101
GLIB_AVAILABLE_IN_ALL
102
GString*     g_string_prepend_len       (GString         *string,
103
                                         const gchar     *val,
104
                                         gssize           len);
105
GLIB_AVAILABLE_IN_ALL
106
GString*     g_string_insert            (GString         *string,
107
                                         gssize           pos,
108
                                         const gchar     *val);
109
GLIB_AVAILABLE_IN_ALL
110
GString*     g_string_insert_c          (GString         *string,
111
                                         gssize           pos,
112
                                         gchar            c);
113
GLIB_AVAILABLE_IN_ALL
114
GString*     g_string_insert_unichar    (GString         *string,
115
                                         gssize           pos,
116
                                         gunichar         wc);
117
GLIB_AVAILABLE_IN_ALL
118
GString*     g_string_overwrite         (GString         *string,
119
                                         gsize            pos,
120
                                         const gchar     *val);
121
GLIB_AVAILABLE_IN_ALL
122
GString*     g_string_overwrite_len     (GString         *string,
123
                                         gsize            pos,
124
                                         const gchar     *val,
125
                                         gssize           len);
126
GLIB_AVAILABLE_IN_ALL
127
GString*     g_string_erase             (GString         *string,
128
                                         gssize           pos,
129
                                         gssize           len);
130
GLIB_AVAILABLE_IN_2_68
131
guint         g_string_replace          (GString         *string,
132
                                         const gchar     *find,
133
                                         const gchar     *replace,
134
                                         guint            limit);
135
GLIB_AVAILABLE_IN_ALL
136
GString*     g_string_ascii_down        (GString         *string);
137
GLIB_AVAILABLE_IN_ALL
138
GString*     g_string_ascii_up          (GString         *string);
139
GLIB_AVAILABLE_IN_ALL
140
void         g_string_vprintf           (GString         *string,
141
                                         const gchar     *format,
142
                                         va_list          args)
143
                                         G_GNUC_PRINTF(2, 0);
144
GLIB_AVAILABLE_IN_ALL
145
void         g_string_printf            (GString         *string,
146
                                         const gchar     *format,
147
                                         ...) G_GNUC_PRINTF (2, 3);
148
GLIB_AVAILABLE_IN_ALL
149
void         g_string_append_vprintf    (GString         *string,
150
                                         const gchar     *format,
151
                                         va_list          args)
152
                                         G_GNUC_PRINTF(2, 0);
153
GLIB_AVAILABLE_IN_ALL
154
void         g_string_append_printf     (GString         *string,
155
                                         const gchar     *format,
156
                                         ...) G_GNUC_PRINTF (2, 3);
157
GLIB_AVAILABLE_IN_ALL
158
GString*     g_string_append_uri_escaped (GString         *string,
159
                                          const gchar     *unescaped,
160
                                          const gchar     *reserved_chars_allowed,
161
                                          gboolean         allow_utf8);
162
163
/* -- optimize g_strig_append_c --- */
164
#ifdef G_CAN_INLINE
165
static inline GString*
166
g_string_append_c_inline (GString *gstring,
167
                          gchar    c)
168
26.1M
{
169
26.1M
  if (gstring->len + 1 < gstring->allocated_len)
170
26.1M
    {
171
26.1M
      gstring->str[gstring->len++] = c;
172
26.1M
      gstring->str[gstring->len] = 0;
173
26.1M
    }
174
2.47k
  else
175
2.47k
    g_string_insert_c (gstring, -1, c);
176
26.1M
  return gstring;
177
26.1M
}
Unexecuted instantiation: gconverter.c:g_string_append_c_inline
Unexecuted instantiation: gconverterinputstream.c:g_string_append_c_inline
Unexecuted instantiation: gfile.c:g_string_append_c_inline
Unexecuted instantiation: gfileattribute.c:g_string_append_c_inline
Unexecuted instantiation: gfileinfo.c:g_string_append_c_inline
Unexecuted instantiation: gfileinputstream.c:g_string_append_c_inline
Unexecuted instantiation: gfilemonitor.c:g_string_append_c_inline
Unexecuted instantiation: gfileoutputstream.c:g_string_append_c_inline
Unexecuted instantiation: gfilterinputstream.c:g_string_append_c_inline
Unexecuted instantiation: gicon.c:g_string_append_c_inline
Unexecuted instantiation: ginputstream.c:g_string_append_c_inline
Unexecuted instantiation: gioerror.c:g_string_append_c_inline
Unexecuted instantiation: gmarshal-internal.c:g_string_append_c_inline
Unexecuted instantiation: gmemoryinputstream.c:g_string_append_c_inline
Unexecuted instantiation: goutputstream.c:g_string_append_c_inline
Unexecuted instantiation: gpollableinputstream.c:g_string_append_c_inline
Unexecuted instantiation: gpollableoutputstream.c:g_string_append_c_inline
Unexecuted instantiation: gpollableutils.c:g_string_append_c_inline
Unexecuted instantiation: gpollfilemonitor.c:g_string_append_c_inline
Unexecuted instantiation: gresource.c:g_string_append_c_inline
Unexecuted instantiation: gseekable.c:g_string_append_c_inline
Unexecuted instantiation: gtask.c:g_string_append_c_inline
Unexecuted instantiation: gthemedicon.c:g_string_append_c_inline
Unexecuted instantiation: gvfs.c:g_string_append_c_inline
Unexecuted instantiation: gzlibcompressor.c:g_string_append_c_inline
Unexecuted instantiation: gzlibdecompressor.c:g_string_append_c_inline
Unexecuted instantiation: gdesktopappinfo.c:g_string_append_c_inline
Unexecuted instantiation: gcontenttype.c:g_string_append_c_inline
Unexecuted instantiation: gfiledescriptorbased.c:g_string_append_c_inline
Unexecuted instantiation: gvdb-reader.c:g_string_append_c_inline
Unexecuted instantiation: gdbusutils.c:g_string_append_c_inline
Unexecuted instantiation: gdbuserror.c:g_string_append_c_inline
Unexecuted instantiation: gdbusconnection.c:g_string_append_c_inline
Unexecuted instantiation: gdbusmessage.c:g_string_append_c_inline
Unexecuted instantiation: gdbusproxy.c:g_string_append_c_inline
Unexecuted instantiation: gdbusprivate.c:g_string_append_c_inline
Unexecuted instantiation: gdbusintrospection.c:g_string_append_c_inline
Unexecuted instantiation: gdbusmethodinvocation.c:g_string_append_c_inline
Unexecuted instantiation: gdbusinterface.c:g_string_append_c_inline
Unexecuted instantiation: gdbusobject.c:g_string_append_c_inline
Unexecuted instantiation: gdbusobjectmanager.c:g_string_append_c_inline
Unexecuted instantiation: gdbusobjectmanagerclient.c:g_string_append_c_inline
Unexecuted instantiation: gdocumentportal.c:g_string_append_c_inline
Unexecuted instantiation: glocalfile.c:g_string_append_c_inline
Unexecuted instantiation: glocalfileenumerator.c:g_string_append_c_inline
Unexecuted instantiation: glocalfileinfo.c:g_string_append_c_inline
Unexecuted instantiation: glocalfileinputstream.c:g_string_append_c_inline
Unexecuted instantiation: glocalfilemonitor.c:g_string_append_c_inline
Unexecuted instantiation: glocalfileoutputstream.c:g_string_append_c_inline
Unexecuted instantiation: glocalfileiostream.c:g_string_append_c_inline
Unexecuted instantiation: glocalvfs.c:g_string_append_c_inline
Unexecuted instantiation: thumbnail-verify.c:g_string_append_c_inline
Unexecuted instantiation: gioenumtypes.c:g_string_append_c_inline
Unexecuted instantiation: xdp-dbus.c:g_string_append_c_inline
Unexecuted instantiation: gappinfo.c:g_string_append_c_inline
Unexecuted instantiation: gasyncinitable.c:g_string_append_c_inline
Unexecuted instantiation: gasyncresult.c:g_string_append_c_inline
Unexecuted instantiation: gbytesicon.c:g_string_append_c_inline
Unexecuted instantiation: gcancellable.c:g_string_append_c_inline
Unexecuted instantiation: gcontextspecificgroup.c:g_string_append_c_inline
Unexecuted instantiation: gdummyfile.c:g_string_append_c_inline
Unexecuted instantiation: gemblem.c:g_string_append_c_inline
Unexecuted instantiation: gemblemedicon.c:g_string_append_c_inline
Unexecuted instantiation: gfileenumerator.c:g_string_append_c_inline
Unexecuted instantiation: gfileicon.c:g_string_append_c_inline
Unexecuted instantiation: gfileiostream.c:g_string_append_c_inline
Unexecuted instantiation: ginitable.c:g_string_append_c_inline
Unexecuted instantiation: giomodule.c:g_string_append_c_inline
Unexecuted instantiation: giomodule-priv.c:g_string_append_c_inline
Unexecuted instantiation: giostream.c:g_string_append_c_inline
Unexecuted instantiation: gloadableicon.c:g_string_append_c_inline
Unexecuted instantiation: gmemorymonitor.c:g_string_append_c_inline
Unexecuted instantiation: gmemorymonitordbus.c:g_string_append_c_inline
Unexecuted instantiation: gnativevolumemonitor.c:g_string_append_c_inline
Unexecuted instantiation: gnetworkmonitor.c:g_string_append_c_inline
Unexecuted instantiation: gnetworkmonitorbase.c:g_string_append_c_inline
Unexecuted instantiation: gproxy.c:g_string_append_c_inline
Unexecuted instantiation: gproxyresolver.c:g_string_append_c_inline
Unexecuted instantiation: gresourcefile.c:g_string_append_c_inline
Unexecuted instantiation: gsimpleasyncresult.c:g_string_append_c_inline
Unexecuted instantiation: gsocket.c:g_string_append_c_inline
Unexecuted instantiation: gsocketaddress.c:g_string_append_c_inline
Unexecuted instantiation: gsocketaddressenumerator.c:g_string_append_c_inline
Unexecuted instantiation: gsocketconnectable.c:g_string_append_c_inline
Unexecuted instantiation: gsocketconnection.c:g_string_append_c_inline
Unexecuted instantiation: gsocketcontrolmessage.c:g_string_append_c_inline
Unexecuted instantiation: gsocketinputstream.c:g_string_append_c_inline
Unexecuted instantiation: gsocketoutputstream.c:g_string_append_c_inline
Unexecuted instantiation: gtcpconnection.c:g_string_append_c_inline
Unexecuted instantiation: gtlsbackend.c:g_string_append_c_inline
Unexecuted instantiation: gtlsdatabase.c:g_string_append_c_inline
Unexecuted instantiation: gtlsinteraction.c:g_string_append_c_inline
Unexecuted instantiation: gtlspassword.c:g_string_append_c_inline
Unexecuted instantiation: gunionvolumemonitor.c:g_string_append_c_inline
Unexecuted instantiation: gvolumemonitor.c:g_string_append_c_inline
Unexecuted instantiation: gunixconnection.c:g_string_append_c_inline
Unexecuted instantiation: gunixcredentialsmessage.c:g_string_append_c_inline
Unexecuted instantiation: gunixfdlist.c:g_string_append_c_inline
Unexecuted instantiation: gunixfdmessage.c:g_string_append_c_inline
Unexecuted instantiation: gunixmounts.c:g_string_append_c_inline
Unexecuted instantiation: gunixsocketaddress.c:g_string_append_c_inline
Unexecuted instantiation: gunixvolumemonitor.c:g_string_append_c_inline
Unexecuted instantiation: gfdonotificationbackend.c:g_string_append_c_inline
Unexecuted instantiation: ggtknotificationbackend.c:g_string_append_c_inline
Unexecuted instantiation: gnetworkmonitornetlink.c:g_string_append_c_inline
Unexecuted instantiation: gnetworkmonitornm.c:g_string_append_c_inline
Unexecuted instantiation: gapplication.c:g_string_append_c_inline
Unexecuted instantiation: gapplicationcommandline.c:g_string_append_c_inline
Unexecuted instantiation: gapplicationimpl-dbus.c:g_string_append_c_inline
Unexecuted instantiation: gactiongroup.c:g_string_append_c_inline
Unexecuted instantiation: gactionmap.c:g_string_append_c_inline
Unexecuted instantiation: gsimpleactiongroup.c:g_string_append_c_inline
Unexecuted instantiation: gremoteactiongroup.c:g_string_append_c_inline
Unexecuted instantiation: gactiongroupexporter.c:g_string_append_c_inline
Unexecuted instantiation: gdbusactiongroup.c:g_string_append_c_inline
Unexecuted instantiation: gaction.c:g_string_append_c_inline
Unexecuted instantiation: gsimpleaction.c:g_string_append_c_inline
Unexecuted instantiation: gnotification.c:g_string_append_c_inline
Unexecuted instantiation: gnotificationbackend.c:g_string_append_c_inline
Unexecuted instantiation: gkeyfilesettingsbackend.c:g_string_append_c_inline
Unexecuted instantiation: gmemorysettingsbackend.c:g_string_append_c_inline
Unexecuted instantiation: gnullsettingsbackend.c:g_string_append_c_inline
Unexecuted instantiation: gsettingsbackend.c:g_string_append_c_inline
Unexecuted instantiation: gsettings.c:g_string_append_c_inline
Unexecuted instantiation: gdbusaddress.c:g_string_append_c_inline
Unexecuted instantiation: gdbusauthobserver.c:g_string_append_c_inline
Unexecuted instantiation: gdbusauth.c:g_string_append_c_inline
Unexecuted instantiation: gdbusauthmechanism.c:g_string_append_c_inline
Unexecuted instantiation: gdbusauthmechanismanon.c:g_string_append_c_inline
Unexecuted instantiation: gdbusauthmechanismexternal.c:g_string_append_c_inline
Unexecuted instantiation: gdbusauthmechanismsha1.c:g_string_append_c_inline
Unexecuted instantiation: gdbusnamewatching.c:g_string_append_c_inline
Unexecuted instantiation: gdbusinterfaceskeleton.c:g_string_append_c_inline
Unexecuted instantiation: gdbusobjectskeleton.c:g_string_append_c_inline
Unexecuted instantiation: gdbusobjectproxy.c:g_string_append_c_inline
Unexecuted instantiation: gopenuriportal.c:g_string_append_c_inline
Unexecuted instantiation: gmemorymonitorportal.c:g_string_append_c_inline
Unexecuted instantiation: gnetworkmonitorportal.c:g_string_append_c_inline
Unexecuted instantiation: gproxyresolverportal.c:g_string_append_c_inline
Unexecuted instantiation: gtrashportal.c:g_string_append_c_inline
Unexecuted instantiation: gportalsupport.c:g_string_append_c_inline
Unexecuted instantiation: gportalnotificationbackend.c:g_string_append_c_inline
Unexecuted instantiation: ghttpproxy.c:g_string_append_c_inline
Unexecuted instantiation: gsocks4proxy.c:g_string_append_c_inline
Unexecuted instantiation: gsocks4aproxy.c:g_string_append_c_inline
Unexecuted instantiation: gsocks5proxy.c:g_string_append_c_inline
Unexecuted instantiation: ginotifyfilemonitor.c:g_string_append_c_inline
Unexecuted instantiation: gcredentials.c:g_string_append_c_inline
Unexecuted instantiation: gdatagrambased.c:g_string_append_c_inline
Unexecuted instantiation: gdatainputstream.c:g_string_append_c_inline
Unexecuted instantiation: gdataoutputstream.c:g_string_append_c_inline
Unexecuted instantiation: gdrive.c:g_string_append_c_inline
Unexecuted instantiation: gdummyproxyresolver.c:g_string_append_c_inline
Unexecuted instantiation: gdummytlsbackend.c:g_string_append_c_inline
Unexecuted instantiation: gfilteroutputstream.c:g_string_append_c_inline
Unexecuted instantiation: ginetaddress.c:g_string_append_c_inline
Unexecuted instantiation: ginetaddressmask.c:g_string_append_c_inline
Unexecuted instantiation: ginetsocketaddress.c:g_string_append_c_inline
Unexecuted instantiation: gioscheduler.c:g_string_append_c_inline
Unexecuted instantiation: gmount.c:g_string_append_c_inline
Unexecuted instantiation: gnativesocketaddress.c:g_string_append_c_inline
Unexecuted instantiation: gnetworkaddress.c:g_string_append_c_inline
Unexecuted instantiation: gnetworking.c:g_string_append_c_inline
Unexecuted instantiation: gproxyaddress.c:g_string_append_c_inline
Unexecuted instantiation: gproxyaddressenumerator.c:g_string_append_c_inline
Unexecuted instantiation: gresolver.c:g_string_append_c_inline
Unexecuted instantiation: gsimplepermission.c:g_string_append_c_inline
Unexecuted instantiation: gsocketclient.c:g_string_append_c_inline
Unexecuted instantiation: gsrvtarget.c:g_string_append_c_inline
Unexecuted instantiation: gtcpwrapperconnection.c:g_string_append_c_inline
Unexecuted instantiation: gthreadedresolver.c:g_string_append_c_inline
Unexecuted instantiation: gtlscertificate.c:g_string_append_c_inline
Unexecuted instantiation: gtlsclientconnection.c:g_string_append_c_inline
Unexecuted instantiation: gtlsconnection.c:g_string_append_c_inline
Unexecuted instantiation: gtlsfiledatabase.c:g_string_append_c_inline
Unexecuted instantiation: gtlsserverconnection.c:g_string_append_c_inline
Unexecuted instantiation: gdtlsconnection.c:g_string_append_c_inline
Unexecuted instantiation: gdtlsclientconnection.c:g_string_append_c_inline
Unexecuted instantiation: gdtlsserverconnection.c:g_string_append_c_inline
Unexecuted instantiation: gvolume.c:g_string_append_c_inline
Unexecuted instantiation: gunixmount.c:g_string_append_c_inline
Unexecuted instantiation: gunixvolume.c:g_string_append_c_inline
Unexecuted instantiation: gunixinputstream.c:g_string_append_c_inline
Unexecuted instantiation: gdelayedsettingsbackend.c:g_string_append_c_inline
Unexecuted instantiation: gsettingsschema.c:g_string_append_c_inline
Unexecuted instantiation: gsettings-mapping.c:g_string_append_c_inline
Unexecuted instantiation: inotify-sub.c:g_string_append_c_inline
Unexecuted instantiation: inotify-helper.c:g_string_append_c_inline
Unexecuted instantiation: gbufferedinputstream.c:g_string_append_c_inline
Unexecuted instantiation: gnetworkservice.c:g_string_append_c_inline
Unexecuted instantiation: gpermission.c:g_string_append_c_inline
Unexecuted instantiation: gsubprocess.c:g_string_append_c_inline
Unexecuted instantiation: giounix-private.c:g_string_append_c_inline
Unexecuted instantiation: gunixoutputstream.c:g_string_append_c_inline
Unexecuted instantiation: inotify-path.c:g_string_append_c_inline
Unexecuted instantiation: inotify-missing.c:g_string_append_c_inline
Unexecuted instantiation: gmemoryoutputstream.c:g_string_append_c_inline
Unexecuted instantiation: inotify-kernel.c:g_string_append_c_inline
Unexecuted instantiation: gmodule.c:g_string_append_c_inline
Unexecuted instantiation: gboxed.c:g_string_append_c_inline
Unexecuted instantiation: gclosure.c:g_string_append_c_inline
Unexecuted instantiation: genums.c:g_string_append_c_inline
Unexecuted instantiation: gmarshal.c:g_string_append_c_inline
Unexecuted instantiation: gobject.c:g_string_append_c_inline
Unexecuted instantiation: gparam.c:g_string_append_c_inline
Unexecuted instantiation: gparamspecs.c:g_string_append_c_inline
Unexecuted instantiation: gsignal.c:g_string_append_c_inline
Unexecuted instantiation: gsourceclosure.c:g_string_append_c_inline
Unexecuted instantiation: gtype.c:g_string_append_c_inline
Unexecuted instantiation: gtypemodule.c:g_string_append_c_inline
Unexecuted instantiation: gtypeplugin.c:g_string_append_c_inline
Unexecuted instantiation: gvalue.c:g_string_append_c_inline
Unexecuted instantiation: gvaluearray.c:g_string_append_c_inline
Unexecuted instantiation: gvaluetransform.c:g_string_append_c_inline
Unexecuted instantiation: gvaluetypes.c:g_string_append_c_inline
Unexecuted instantiation: gatomicarray.c:g_string_append_c_inline
Unexecuted instantiation: garray.c:g_string_append_c_inline
Unexecuted instantiation: gbase64.c:g_string_append_c_inline
Unexecuted instantiation: gbytes.c:g_string_append_c_inline
Unexecuted instantiation: gcharset.c:g_string_append_c_inline
Unexecuted instantiation: gchecksum.c:g_string_append_c_inline
Unexecuted instantiation: gconvert.c:g_string_append_c_inline
Unexecuted instantiation: gdataset.c:g_string_append_c_inline
Unexecuted instantiation: gdate.c:g_string_append_c_inline
Unexecuted instantiation: gdatetime.c:g_string_append_c_inline
Unexecuted instantiation: gdir.c:g_string_append_c_inline
Unexecuted instantiation: genviron.c:g_string_append_c_inline
Unexecuted instantiation: gerror.c:g_string_append_c_inline
Unexecuted instantiation: gfileutils.c:g_string_append_c_inline
Unexecuted instantiation: ggettext.c:g_string_append_c_inline
Unexecuted instantiation: ghash.c:g_string_append_c_inline
Unexecuted instantiation: ghook.c:g_string_append_c_inline
Unexecuted instantiation: ghostutils.c:g_string_append_c_inline
Unexecuted instantiation: giochannel.c:g_string_append_c_inline
Unexecuted instantiation: gkeyfile.c:g_string_append_c_inline
Unexecuted instantiation: glib-init.c:g_string_append_c_inline
Unexecuted instantiation: glib-private.c:g_string_append_c_inline
Unexecuted instantiation: glist.c:g_string_append_c_inline
Unexecuted instantiation: gmain.c:g_string_append_c_inline
Unexecuted instantiation: gmappedfile.c:g_string_append_c_inline
Unexecuted instantiation: gmarkup.c:g_string_append_c_inline
Unexecuted instantiation: gmem.c:g_string_append_c_inline
gmessages.c:g_string_append_c_inline
Line
Count
Source
168
26.1M
{
169
26.1M
  if (gstring->len + 1 < gstring->allocated_len)
170
26.1M
    {
171
26.1M
      gstring->str[gstring->len++] = c;
172
26.1M
      gstring->str[gstring->len] = 0;
173
26.1M
    }
174
2.47k
  else
175
2.47k
    g_string_insert_c (gstring, -1, c);
176
26.1M
  return gstring;
177
26.1M
}
Unexecuted instantiation: goption.c:g_string_append_c_inline
Unexecuted instantiation: gpattern.c:g_string_append_c_inline
Unexecuted instantiation: gpoll.c:g_string_append_c_inline
Unexecuted instantiation: gqsort.c:g_string_append_c_inline
Unexecuted instantiation: gquark.c:g_string_append_c_inline
Unexecuted instantiation: gqueue.c:g_string_append_c_inline
Unexecuted instantiation: grand.c:g_string_append_c_inline
Unexecuted instantiation: grefcount.c:g_string_append_c_inline
Unexecuted instantiation: grefstring.c:g_string_append_c_inline
Unexecuted instantiation: gregex.c:g_string_append_c_inline
Unexecuted instantiation: gscanner.c:g_string_append_c_inline
Unexecuted instantiation: gsequence.c:g_string_append_c_inline
Unexecuted instantiation: gshell.c:g_string_append_c_inline
Unexecuted instantiation: gslice.c:g_string_append_c_inline
Unexecuted instantiation: gslist.c:g_string_append_c_inline
Unexecuted instantiation: gstdio.c:g_string_append_c_inline
Unexecuted instantiation: gstrfuncs.c:g_string_append_c_inline
Unexecuted instantiation: gstring.c:g_string_append_c_inline
Unexecuted instantiation: gtestutils.c:g_string_append_c_inline
Unexecuted instantiation: gthreadpool.c:g_string_append_c_inline
Unexecuted instantiation: gtimer.c:g_string_append_c_inline
Unexecuted instantiation: gtimezone.c:g_string_append_c_inline
Unexecuted instantiation: gtranslit.c:g_string_append_c_inline
Unexecuted instantiation: gtree.c:g_string_append_c_inline
Unexecuted instantiation: guniprop.c:g_string_append_c_inline
Unexecuted instantiation: gutf8.c:g_string_append_c_inline
Unexecuted instantiation: gunicollate.c:g_string_append_c_inline
Unexecuted instantiation: guri.c:g_string_append_c_inline
Unexecuted instantiation: gutils.c:g_string_append_c_inline
Unexecuted instantiation: gvariant.c:g_string_append_c_inline
Unexecuted instantiation: gvariant-core.c:g_string_append_c_inline
Unexecuted instantiation: gvariant-parser.c:g_string_append_c_inline
Unexecuted instantiation: gvariant-serialiser.c:g_string_append_c_inline
Unexecuted instantiation: gvarianttypeinfo.c:g_string_append_c_inline
Unexecuted instantiation: gvarianttype.c:g_string_append_c_inline
Unexecuted instantiation: gwakeup.c:g_string_append_c_inline
Unexecuted instantiation: gprintf.c:g_string_append_c_inline
Unexecuted instantiation: glib-unix.c:g_string_append_c_inline
Unexecuted instantiation: gspawn.c:g_string_append_c_inline
Unexecuted instantiation: giounix.c:g_string_append_c_inline
Unexecuted instantiation: gthread-posix.c:g_string_append_c_inline
Unexecuted instantiation: printf.c:g_string_append_c_inline
Unexecuted instantiation: vasnprintf.c:g_string_append_c_inline
Unexecuted instantiation: garcbox.c:g_string_append_c_inline
Unexecuted instantiation: gasyncqueue.c:g_string_append_c_inline
Unexecuted instantiation: gbitlock.c:g_string_append_c_inline
Unexecuted instantiation: grcbox.c:g_string_append_c_inline
Unexecuted instantiation: printf-args.c:g_string_append_c_inline
Unexecuted instantiation: printf-parse.c:g_string_append_c_inline
178
26.1M
#define g_string_append_c(gstr,c)       g_string_append_c_inline (gstr, c)
179
#endif /* G_CAN_INLINE */
180
181
182
GLIB_DEPRECATED
183
GString *g_string_down (GString *string);
184
GLIB_DEPRECATED
185
GString *g_string_up   (GString *string);
186
187
#define  g_string_sprintf  g_string_printf GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_string_printf)
188
#define  g_string_sprintfa g_string_append_printf GLIB_DEPRECATED_MACRO_IN_2_26_FOR(g_string_append_printf)
189
190
G_END_DECLS
191
192
#endif /* __G_STRING_H__ */