Lines Matching refs:DBusString
37 * DBusString object
40 typedef struct DBusString DBusString;
42 struct DBusString
62 #define _dbus_string_get_data(s) ((char*)(((DBusString*)(s))->dummy1))
63 #define _dbus_string_get_length(s) (((DBusString*)(s))->dummy2)
64 #define _dbus_string_set_byte(s, i, b) ((((unsigned char*)(((DBusString*)(s))->dummy1))[(i)]) = (unsigned char) (b))
65 #define _dbus_string_get_byte(s, i) (((const unsigned char*)(((DBusString*)(s))->dummy1))[(i)])
66 #define _dbus_string_get_const_data(s) ((const char*)(((DBusString*)(s))->dummy1))
67 #define _dbus_string_get_const_data_len(s,start,len) (((const char*)(((DBusString*)(s))->dummy1)) + (start))
70 dbus_bool_t _dbus_string_init (DBusString *str);
71 void _dbus_string_init_const (DBusString *str,
73 void _dbus_string_init_const_len (DBusString *str,
76 dbus_bool_t _dbus_string_init_preallocated (DBusString *str,
78 void _dbus_string_free (DBusString *str);
79 void _dbus_string_lock (DBusString *str);
80 dbus_bool_t _dbus_string_compact (DBusString *str,
83 char* _dbus_string_get_data (DBusString *str);
86 const char* _dbus_string_get_const_data (const DBusString *str);
88 char* _dbus_string_get_data_len (DBusString *str,
92 const char* _dbus_string_get_const_data_len (const DBusString *str,
97 void _dbus_string_set_byte (DBusString *str,
102 unsigned char _dbus_string_get_byte (const DBusString *str,
105 dbus_bool_t _dbus_string_insert_bytes (DBusString *str,
109 dbus_bool_t _dbus_string_insert_byte (DBusString *str,
112 dbus_bool_t _dbus_string_steal_data (DBusString *str,
114 dbus_bool_t _dbus_string_steal_data_len (DBusString *str,
118 dbus_bool_t _dbus_string_copy_data (const DBusString *str,
120 dbus_bool_t _dbus_string_copy_data_len (const DBusString *str,
124 void _dbus_string_copy_to_buffer (const DBusString *str,
127 void _dbus_string_copy_to_buffer_with_nul (const DBusString *str,
131 int _dbus_string_get_length (const DBusString *str);
134 dbus_bool_t _dbus_string_lengthen (DBusString *str,
136 void _dbus_string_shorten (DBusString *str,
138 dbus_bool_t _dbus_string_set_length (DBusString *str,
140 dbus_bool_t _dbus_string_align_length (DBusString *str,
142 dbus_bool_t _dbus_string_alloc_space (DBusString *str,
144 dbus_bool_t _dbus_string_append (DBusString *str,
146 dbus_bool_t _dbus_string_append_len (DBusString *str,
149 dbus_bool_t _dbus_string_append_int (DBusString *str,
151 dbus_bool_t _dbus_string_append_uint (DBusString *str,
153 dbus_bool_t _dbus_string_append_byte (DBusString *str,
155 dbus_bool_t _dbus_string_append_printf (DBusString *str,
158 dbus_bool_t _dbus_string_append_printf_valist (DBusString *str,
161 dbus_bool_t _dbus_string_insert_2_aligned (DBusString *str,
164 dbus_bool_t _dbus_string_insert_4_aligned (DBusString *str,
167 dbus_bool_t _dbus_string_insert_8_aligned (DBusString *str,
170 dbus_bool_t _dbus_string_insert_alignment (DBusString *str,
173 void _dbus_string_delete (DBusString *str,
176 dbus_bool_t _dbus_string_move (DBusString *source,
178 DBusString *dest,
180 dbus_bool_t _dbus_string_copy (const DBusString *source,
182 DBusString *dest,
184 dbus_bool_t _dbus_string_move_len (DBusString *source,
187 DBusString *dest,
189 dbus_bool_t _dbus_string_copy_len (const DBusString *source,
192 DBusString *dest,
194 dbus_bool_t _dbus_string_replace_len (const DBusString *source,
197 DBusString *dest,
200 dbus_bool_t _dbus_string_split_on_byte (DBusString *source,
202 DBusString *tail);
203 dbus_bool_t _dbus_string_parse_int (const DBusString *str,
207 dbus_bool_t _dbus_string_parse_uint (const DBusString *str,
211 dbus_bool_t _dbus_string_find (const DBusString *str,
215 dbus_bool_t _dbus_string_find_eol (const DBusString *str,
219 dbus_bool_t _dbus_string_find_to (const DBusString *str,
224 dbus_bool_t _dbus_string_find_byte_backward (const DBusString *str,
228 dbus_bool_t _dbus_string_find_blank (const DBusString *str,
231 void _dbus_string_skip_blank (const DBusString *str,
234 void _dbus_string_skip_white (const DBusString *str,
237 void _dbus_string_skip_white_reverse (const DBusString *str,
240 dbus_bool_t _dbus_string_equal (const DBusString *a,
241 const DBusString *b);
242 dbus_bool_t _dbus_string_equal_c_str (const DBusString *a,
244 dbus_bool_t _dbus_string_equal_len (const DBusString *a,
245 const DBusString *b,
247 dbus_bool_t _dbus_string_equal_substring (const DBusString *a,
250 const DBusString *b,
252 dbus_bool_t _dbus_string_starts_with_c_str (const DBusString *a,
254 dbus_bool_t _dbus_string_ends_with_c_str (const DBusString *a,
256 dbus_bool_t _dbus_string_pop_line (DBusString *source,
257 DBusString *dest);
258 void _dbus_string_delete_first_word (DBusString *str);
259 void _dbus_string_delete_leading_blanks (DBusString *str);
260 void _dbus_string_chop_white (DBusString *str);
261 dbus_bool_t _dbus_string_append_byte_as_hex (DBusString *str,
263 dbus_bool_t _dbus_string_hex_encode (const DBusString *source,
265 DBusString *dest,
267 dbus_bool_t _dbus_string_hex_decode (const DBusString *source,
270 DBusString *dest,
272 void _dbus_string_tolower_ascii (const DBusString *str,
275 void _dbus_string_toupper_ascii (const DBusString *str,
278 dbus_bool_t _dbus_string_validate_ascii (const DBusString *str,
281 dbus_bool_t _dbus_string_validate_utf8 (const DBusString *str,
284 dbus_bool_t _dbus_string_validate_nul (const DBusString *str,
287 void _dbus_string_zero (DBusString *str);
298 * Defines a static const variable with type #DBusString called "name"
306 static const DBusString name = { _dbus_static_string_##name, \