| Current File : //usr/share/doc/dbus/api/dbus-string_8h_source.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>D-Bus: dbus-string.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">D-Bus
 <span id="projectnumber">1.8.20</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.6.1 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File List</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="headertitle">
<div class="title">dbus-string.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */</span>
<a name="l00002"></a>00002 <span class="comment">/* dbus-string.h String utility class (internal to D-Bus implementation)</span>
<a name="l00003"></a>00003 <span class="comment"> * </span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 2002, 2003 Red Hat, Inc.</span>
<a name="l00005"></a>00005 <span class="comment"> * Copyright (C) 2006 Ralf Habacker <ralf.habacker@freenet.de></span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Licensed under the Academic Free License version 2.1</span>
<a name="l00008"></a>00008 <span class="comment"> * </span>
<a name="l00009"></a>00009 <span class="comment"> * This program is free software; you can redistribute it and/or modify</span>
<a name="l00010"></a>00010 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
<a name="l00011"></a>00011 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00012"></a>00012 <span class="comment"> * (at your option) any later version.</span>
<a name="l00013"></a>00013 <span class="comment"> *</span>
<a name="l00014"></a>00014 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
<a name="l00015"></a>00015 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00016"></a>00016 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
<a name="l00017"></a>00017 <span class="comment"> * GNU General Public License for more details.</span>
<a name="l00018"></a>00018 <span class="comment"> * </span>
<a name="l00019"></a>00019 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
<a name="l00020"></a>00020 <span class="comment"> * along with this program; if not, write to the Free Software</span>
<a name="l00021"></a>00021 <span class="comment"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA</span>
<a name="l00022"></a>00022 <span class="comment"> *</span>
<a name="l00023"></a>00023 <span class="comment"> */</span>
<a name="l00024"></a>00024
<a name="l00025"></a>00025 <span class="preprocessor">#ifndef DBUS_STRING_H</span>
<a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define DBUS_STRING_H</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#include <dbus/dbus-macros.h></span>
<a name="l00029"></a>00029 <span class="preprocessor">#include <dbus/dbus-types.h></span>
<a name="l00030"></a>00030 <span class="preprocessor">#include <dbus/dbus-memory.h></span>
<a name="l00031"></a>00031
<a name="l00032"></a>00032 <span class="preprocessor">#include <stdarg.h></span>
<a name="l00033"></a>00033
<a name="l00034"></a>00034 <a class="code" href="group__DBusMacros.html#ga875146b01015e9ced22b25d76d549ab2" title="Macro used prior to declaring functions in the D-Bus header files.">DBUS_BEGIN_DECLS</a>
<a name="l00035"></a>00035
<a name="l00040"></a>00040 <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structDBusString.html">DBusString</a> <a class="code" href="structDBusString.html">DBusString</a>;
<a name="l00041"></a>00041
<a name="l00042"></a><a class="code" href="structDBusString.html">00042</a> <span class="keyword">struct </span><a class="code" href="structDBusString.html">DBusString</a>
<a name="l00043"></a>00043 {
<a name="l00044"></a>00044 <span class="preprocessor">#if defined(DBUS_WIN) && defined(_DEBUG)</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="structDBusString.html#a040b4dab1313a1adc9cc48c290d76add" title="placeholder">dummy1</a>;
<a name="l00046"></a>00046 <span class="preprocessor">#else</span>
<a name="l00047"></a><a class="code" href="structDBusString.html#a040b4dab1313a1adc9cc48c290d76add">00047</a> <span class="preprocessor"></span> <span class="keyword">const</span> <span class="keywordtype">void</span> *<a class="code" href="structDBusString.html#a040b4dab1313a1adc9cc48c290d76add" title="placeholder">dummy1</a>;
<a name="l00048"></a>00048 <span class="preprocessor">#endif</span>
<a name="l00049"></a><a class="code" href="structDBusString.html#a853db43b1e3482404d74b7d80f3f16f0">00049</a> <span class="preprocessor"></span> <span class="keywordtype">int</span> <a class="code" href="structDBusString.html#a853db43b1e3482404d74b7d80f3f16f0" title="placeholder">dummy2</a>;
<a name="l00050"></a><a class="code" href="structDBusString.html#a30cfab64f47fb32e39a97cf163ebfba7">00050</a> <span class="keywordtype">int</span> <a class="code" href="structDBusString.html#a30cfab64f47fb32e39a97cf163ebfba7" title="placeholder">dummy3</a>;
<a name="l00051"></a><a class="code" href="structDBusString.html#a34bf999685ae4e85fda099c8d304d845">00051</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structDBusString.html#a34bf999685ae4e85fda099c8d304d845" title="placeholder">dummy_bit1</a> : 1;
<a name="l00052"></a><a class="code" href="structDBusString.html#a4f5fd618bc52c1fd2da66cab62927b40">00052</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structDBusString.html#a4f5fd618bc52c1fd2da66cab62927b40" title="placeholder">dummy_bit2</a> : 1;
<a name="l00053"></a><a class="code" href="structDBusString.html#a18c9f53e82d8efa9baa1a0de61602f34">00053</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structDBusString.html#a18c9f53e82d8efa9baa1a0de61602f34" title="placeholder">dummy_bit3</a> : 1;
<a name="l00054"></a><a class="code" href="structDBusString.html#a14171d8a3a0a900c65fa841c64baac4d">00054</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structDBusString.html#a14171d8a3a0a900c65fa841c64baac4d" title="placeholder">dummy_bits</a> : 3;
<a name="l00055"></a>00055 };
<a name="l00056"></a>00056
<a name="l00057"></a>00057 <span class="preprocessor">#ifdef DBUS_DISABLE_ASSERT</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span><span class="comment">/* Some simple inlining hacks; the current linker is not smart enough</span>
<a name="l00059"></a>00059 <span class="comment"> * to inline non-exported symbols across files in the library.</span>
<a name="l00060"></a>00060 <span class="comment"> * Note that these break type safety (due to the casts)</span>
<a name="l00061"></a>00061 <span class="comment"> */</span>
<a name="l00062"></a>00062 <span class="preprocessor">#define _dbus_string_get_data(s) ((char*)(((DBusString*)(s))->dummy1))</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span><span class="preprocessor">#define _dbus_string_get_length(s) (((DBusString*)(s))->dummy2)</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span><span class="preprocessor">#define _dbus_string_set_byte(s, i, b) ((((unsigned char*)(((DBusString*)(s))->dummy1))[(i)]) = (unsigned char) (b))</span>
<a name="l00065"></a>00065 <span class="preprocessor"></span><span class="preprocessor">#define _dbus_string_get_byte(s, i) (((const unsigned char*)(((DBusString*)(s))->dummy1))[(i)])</span>
<a name="l00066"></a>00066 <span class="preprocessor"></span><span class="preprocessor">#define _dbus_string_get_const_data(s) ((const char*)(((DBusString*)(s))->dummy1))</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span><span class="preprocessor">#define _dbus_string_get_const_data_len(s,start,len) (((const char*)(((DBusString*)(s))->dummy1)) + (start))</span>
<a name="l00068"></a>00068 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00069"></a>00069 <span class="preprocessor"></span>
<a name="l00070"></a>00070 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga348252317f7bb8ac43529972945830ae" title="Initializes a string.">_dbus_string_init</a> (<a class="code" href="structDBusString.html">DBusString</a> *str);
<a name="l00071"></a>00071 <span class="keywordtype">void</span> <a class="code" href="group__DBusString.html#ga374640ddfa2f0b27a8356e2379ba8043" title="Initializes a constant string.">_dbus_string_init_const</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00072"></a>00072 <span class="keyword">const</span> <span class="keywordtype">char</span> *value);
<a name="l00073"></a>00073 <span class="keywordtype">void</span> <a class="code" href="group__DBusString.html#ga6792a5c1725faa9d635d95f7a3b5bfae" title="Initializes a constant string with a length.">_dbus_string_init_const_len</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00074"></a>00074 <span class="keyword">const</span> <span class="keywordtype">char</span> *value,
<a name="l00075"></a>00075 <span class="keywordtype">int</span> len);
<a name="l00076"></a>00076 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga569b784beea1b4fa98f05d27e6dd0e72" title="Initializes a string that can be up to the given allocation size before it has to realloc...">_dbus_string_init_preallocated</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00077"></a>00077 <span class="keywordtype">int</span> allocate_size);
<a name="l00078"></a>00078 <span class="keywordtype">void</span> <a class="code" href="group__DBusString.html#ga781ca91acda49a834dce7d0ed0eef212" title="Frees a string created by _dbus_string_init().">_dbus_string_free</a> (<a class="code" href="structDBusString.html">DBusString</a> *str);
<a name="l00079"></a>00079 <span class="keywordtype">void</span> _dbus_string_lock (<a class="code" href="structDBusString.html">DBusString</a> *str);
<a name="l00080"></a>00080 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gac49ec5782ca606029c096124b5e43ffc" title="Compacts the string to avoid wasted memory.">_dbus_string_compact</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00081"></a>00081 <span class="keywordtype">int</span> max_waste);
<a name="l00082"></a>00082 <span class="preprocessor">#ifndef _dbus_string_get_data</span>
<a name="l00083"></a>00083 <span class="preprocessor"></span><span class="keywordtype">char</span>* <a class="code" href="group__DBusString.html#gaa9b5aa08d313048df72aa12bb4dc0cda" title="Gets the raw character buffer from the string.">_dbus_string_get_data</a> (<a class="code" href="structDBusString.html">DBusString</a> *str);
<a name="l00084"></a>00084 <span class="preprocessor">#endif </span><span class="comment">/* _dbus_string_get_data */</span>
<a name="l00085"></a>00085 <span class="preprocessor">#ifndef _dbus_string_get_const_data</span>
<a name="l00086"></a>00086 <span class="preprocessor"></span><span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__DBusString.html#ga33e20241ae7d784624f97d89b1a0539e" title="Gets the raw character buffer from a const string.">_dbus_string_get_const_data</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *str);
<a name="l00087"></a>00087 <span class="preprocessor">#endif </span><span class="comment">/* _dbus_string_get_const_data */</span>
<a name="l00088"></a>00088 <span class="keywordtype">char</span>* <a class="code" href="group__DBusString.html#ga7a73fb373398606e6e1d0a86c4587a3c" title="Gets a sub-portion of the raw character buffer from the string.">_dbus_string_get_data_len</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00089"></a>00089 <span class="keywordtype">int</span> start,
<a name="l00090"></a>00090 <span class="keywordtype">int</span> len);
<a name="l00091"></a>00091 <span class="preprocessor">#ifndef _dbus_string_get_const_data_len</span>
<a name="l00092"></a>00092 <span class="preprocessor"></span><span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="group__DBusString.html#ga8c202a65e938f9bdb859fc6705a4f1bb" title="const version of _dbus_string_get_data_len().">_dbus_string_get_const_data_len</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00093"></a>00093 <span class="keywordtype">int</span> start,
<a name="l00094"></a>00094 <span class="keywordtype">int</span> len);
<a name="l00095"></a>00095 <span class="preprocessor">#endif</span>
<a name="l00096"></a>00096 <span class="preprocessor"></span><span class="preprocessor">#ifndef _dbus_string_set_byte</span>
<a name="l00097"></a>00097 <span class="preprocessor"></span><span class="keywordtype">void</span> <a class="code" href="group__DBusString.html#gab6c823e9406208363fcb5e96d580e738" title="Sets the value of the byte at the given position.">_dbus_string_set_byte</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00098"></a>00098 <span class="keywordtype">int</span> i,
<a name="l00099"></a>00099 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> byte);
<a name="l00100"></a>00100 <span class="preprocessor">#endif</span>
<a name="l00101"></a>00101 <span class="preprocessor"></span><span class="preprocessor">#ifndef _dbus_string_get_byte</span>
<a name="l00102"></a>00102 <span class="preprocessor"></span><span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="group__DBusString.html#gac1cb7b207eac3c6527a5d42fbc5449b1" title="Gets the byte at the given position.">_dbus_string_get_byte</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00103"></a>00103 <span class="keywordtype">int</span> start);
<a name="l00104"></a>00104 <span class="preprocessor">#endif </span><span class="comment">/* _dbus_string_get_byte */</span>
<a name="l00105"></a>00105 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gaa0964d662ad17c58eb044c1b153017a6" title="Inserts a number of bytes of a given value at the given position.">_dbus_string_insert_bytes</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00106"></a>00106 <span class="keywordtype">int</span> i,
<a name="l00107"></a>00107 <span class="keywordtype">int</span> n_bytes,
<a name="l00108"></a>00108 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> byte);
<a name="l00109"></a>00109 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gab0770800dce6df97e5d246105a44e7b4" title="Inserts a single byte at the given position.">_dbus_string_insert_byte</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00110"></a>00110 <span class="keywordtype">int</span> i,
<a name="l00111"></a>00111 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> byte);
<a name="l00112"></a>00112 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga556cc30c3ab032dbc63e217119f0d1f5" title="Like _dbus_string_get_data(), but removes the gotten data from the original string.">_dbus_string_steal_data</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00113"></a>00113 <span class="keywordtype">char</span> **data_return);
<a name="l00114"></a>00114 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> _dbus_string_steal_data_len (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00115"></a>00115 <span class="keywordtype">char</span> **data_return,
<a name="l00116"></a>00116 <span class="keywordtype">int</span> start,
<a name="l00117"></a>00117 <span class="keywordtype">int</span> len);
<a name="l00118"></a>00118 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga7e509d4f959d19d96f83250e62287b06" title="Copies the data from the string into a char*.">_dbus_string_copy_data</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00119"></a>00119 <span class="keywordtype">char</span> **data_return);
<a name="l00120"></a>00120 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> _dbus_string_copy_data_len (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00121"></a>00121 <span class="keywordtype">char</span> **data_return,
<a name="l00122"></a>00122 <span class="keywordtype">int</span> start,
<a name="l00123"></a>00123 <span class="keywordtype">int</span> len);
<a name="l00124"></a>00124 <span class="keywordtype">void</span> <a class="code" href="group__DBusString.html#gaf97b18e419678dbf967d9b9ad1112ca6" title="Copies the contents of a DBusString into a different buffer.">_dbus_string_copy_to_buffer</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00125"></a>00125 <span class="keywordtype">char</span> *buffer,
<a name="l00126"></a>00126 <span class="keywordtype">int</span> len);
<a name="l00127"></a>00127 <span class="keywordtype">void</span> <a class="code" href="group__DBusString.html#gac42891d26084a4da0f63038d93b63828" title="Copies the contents of a DBusString into a different buffer.">_dbus_string_copy_to_buffer_with_nul</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00128"></a>00128 <span class="keywordtype">char</span> *buffer,
<a name="l00129"></a>00129 <span class="keywordtype">int</span> avail_len);
<a name="l00130"></a>00130 <span class="preprocessor">#ifndef _dbus_string_get_length</span>
<a name="l00131"></a>00131 <span class="preprocessor"></span><span class="keywordtype">int</span> <a class="code" href="group__DBusString.html#gaa5136e6fd2c5188f4b88de7863369c6d" title="Gets the length of a string (not including nul termination).">_dbus_string_get_length</a> (<span class="keyword">const</span> <a class="code" href="structDBusString.html">DBusString</a> *str);
<a name="l00132"></a>00132 <span class="preprocessor">#endif </span><span class="comment">/* !_dbus_string_get_length */</span>
<a name="l00133"></a>00133
<a name="l00134"></a>00134 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga8f13997d90ceed2f437706e6b7804d9b" title="Makes a string longer by the given number of bytes.">_dbus_string_lengthen</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00135"></a>00135 <span class="keywordtype">int</span> additional_length);
<a name="l00136"></a>00136 <span class="keywordtype">void</span> <a class="code" href="group__DBusString.html#ga7af1cbfa905f26d972ab644d890548b8" title="Makes a string shorter by the given number of bytes.">_dbus_string_shorten</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00137"></a>00137 <span class="keywordtype">int</span> length_to_remove);
<a name="l00138"></a>00138 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga08c423b93c28dd746dcb93e0461ab95c" title="Sets the length of a string.">_dbus_string_set_length</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00139"></a>00139 <span class="keywordtype">int</span> length);
<a name="l00140"></a>00140 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gaeadfb67c4e796131610499c91d0d7813" title="Align the length of a string to a specific alignment (typically 4 or 8) by appending nul bytes to the...">_dbus_string_align_length</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00141"></a>00141 <span class="keywordtype">int</span> alignment);
<a name="l00142"></a>00142 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga4764e75c464356408fc1a12df93177c1" title="Preallocate extra_bytes such that a future lengthening of the string by extra_bytes is guaranteed to ...">_dbus_string_alloc_space</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00143"></a>00143 <span class="keywordtype">int</span> extra_bytes);
<a name="l00144"></a>00144 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga100c5ce0696822c5a4cfbdfaba674d96" title="Appends a nul-terminated C-style string to a DBusString.">_dbus_string_append</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00145"></a>00145 <span class="keyword">const</span> <span class="keywordtype">char</span> *buffer);
<a name="l00146"></a>00146 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga724656b7091b910965bd1af42d0b7bab" title="Appends block of bytes with the given length to a DBusString.">_dbus_string_append_len</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00147"></a>00147 <span class="keyword">const</span> <span class="keywordtype">char</span> *buffer,
<a name="l00148"></a>00148 <span class="keywordtype">int</span> len);
<a name="l00149"></a>00149 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga41141ca36c361f92b6029530ff83fa66" title="Appends an integer to a DBusString.">_dbus_string_append_int</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00150"></a>00150 <span class="keywordtype">long</span> value);
<a name="l00151"></a>00151 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gaa63064881001085159c78204f70acde8" title="Appends an unsigned integer to a DBusString.">_dbus_string_append_uint</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00152"></a>00152 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> value);
<a name="l00153"></a>00153 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gaa6ecf36e70263659f921a4ef0335db12" title="Appends a single byte to the string, returning FALSE if not enough memory.">_dbus_string_append_byte</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00154"></a>00154 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> byte);
<a name="l00155"></a>00155 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gab0078cf7e0e5bd784ec6d6e0cc3923a2" title="Appends a printf-style formatted string to the DBusString.">_dbus_string_append_printf</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00156"></a>00156 <span class="keyword">const</span> <span class="keywordtype">char</span> *format,
<a name="l00157"></a>00157 ...) _DBUS_GNUC_PRINTF (2, 3);
<a name="l00158"></a>00158 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga8d794f292831d1a7edeb971b13a2c641" title="Appends a printf-style formatted string to the DBusString.">_dbus_string_append_printf_valist</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00159"></a>00159 const <span class="keywordtype">char</span> *format,
<a name="l00160"></a>00160 va_list args);
<a name="l00161"></a>00161 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gae7770fdabda32f3e8d9dd50b083dbf1e" title="Inserts 2 bytes aligned on a 2 byte boundary with any alignment padding initialized to 0...">_dbus_string_insert_2_aligned</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00162"></a>00162 <span class="keywordtype">int</span> insert_at,
<a name="l00163"></a>00163 const <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> octets[2]);
<a name="l00164"></a>00164 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gadd296cf1e6af18cb5bec438e9d353b4e" title="Inserts 4 bytes aligned on a 4 byte boundary with any alignment padding initialized to 0...">_dbus_string_insert_4_aligned</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00165"></a>00165 <span class="keywordtype">int</span> insert_at,
<a name="l00166"></a>00166 const <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> octets[4]);
<a name="l00167"></a>00167 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga108d7d64fb88fffca31e33181cefa232" title="Inserts 8 bytes aligned on an 8 byte boundary with any alignment padding initialized to 0...">_dbus_string_insert_8_aligned</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00168"></a>00168 <span class="keywordtype">int</span> insert_at,
<a name="l00169"></a>00169 const <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> octets[8]);
<a name="l00170"></a>00170 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga267217e412c74c74dc3a3e412da5c600" title="Inserts padding at *insert_at such to align it to the given boundary.">_dbus_string_insert_alignment</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00171"></a>00171 <span class="keywordtype">int</span> *insert_at,
<a name="l00172"></a>00172 <span class="keywordtype">int</span> alignment);
<a name="l00173"></a>00173 <span class="keywordtype">void</span> <a class="code" href="group__DBusString.html#ga7e0e164ad5bb094e5ccad9edc7ae4235" title="Deletes a segment of a DBusString with length len starting at start.">_dbus_string_delete</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00174"></a>00174 <span class="keywordtype">int</span> start,
<a name="l00175"></a>00175 <span class="keywordtype">int</span> len);
<a name="l00176"></a>00176 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gad379fce8d4ef4f7e28f81f50b46ee4c9" title="Moves the end of one string into another string.">_dbus_string_move</a> (<a class="code" href="structDBusString.html">DBusString</a> *source,
<a name="l00177"></a>00177 <span class="keywordtype">int</span> start,
<a name="l00178"></a>00178 <a class="code" href="structDBusString.html">DBusString</a> *dest,
<a name="l00179"></a>00179 <span class="keywordtype">int</span> insert_at);
<a name="l00180"></a>00180 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga3c10f0d1bcaa3b450025b9c6a8b901d7" title="Like _dbus_string_move(), but does not delete the section of the source string that's copied to the d...">_dbus_string_copy</a> (const <a class="code" href="structDBusString.html">DBusString</a> *source,
<a name="l00181"></a>00181 <span class="keywordtype">int</span> start,
<a name="l00182"></a>00182 <a class="code" href="structDBusString.html">DBusString</a> *dest,
<a name="l00183"></a>00183 <span class="keywordtype">int</span> insert_at);
<a name="l00184"></a>00184 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gab8e2dcb2dc71bf225da0827c6086a727" title="Like _dbus_string_move(), but can move a segment from the middle of the source string.">_dbus_string_move_len</a> (<a class="code" href="structDBusString.html">DBusString</a> *source,
<a name="l00185"></a>00185 <span class="keywordtype">int</span> start,
<a name="l00186"></a>00186 <span class="keywordtype">int</span> len,
<a name="l00187"></a>00187 <a class="code" href="structDBusString.html">DBusString</a> *dest,
<a name="l00188"></a>00188 <span class="keywordtype">int</span> insert_at);
<a name="l00189"></a>00189 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gaf5f13bc7ac7a623516930d26ae2589bf" title="Like _dbus_string_copy(), but can copy a segment from the middle of the source string.">_dbus_string_copy_len</a> (const <a class="code" href="structDBusString.html">DBusString</a> *source,
<a name="l00190"></a>00190 <span class="keywordtype">int</span> start,
<a name="l00191"></a>00191 <span class="keywordtype">int</span> len,
<a name="l00192"></a>00192 <a class="code" href="structDBusString.html">DBusString</a> *dest,
<a name="l00193"></a>00193 <span class="keywordtype">int</span> insert_at);
<a name="l00194"></a>00194 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gafe7921a92467cdefaa0a7829d6cf260b" title="Replaces a segment of dest string with a segment of source string.">_dbus_string_replace_len</a> (const <a class="code" href="structDBusString.html">DBusString</a> *source,
<a name="l00195"></a>00195 <span class="keywordtype">int</span> start,
<a name="l00196"></a>00196 <span class="keywordtype">int</span> len,
<a name="l00197"></a>00197 <a class="code" href="structDBusString.html">DBusString</a> *dest,
<a name="l00198"></a>00198 <span class="keywordtype">int</span> replace_at,
<a name="l00199"></a>00199 <span class="keywordtype">int</span> replace_len);
<a name="l00200"></a>00200 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga5d293b49b6afbbd74069d0823acce6b5" title="Looks for the first occurance of a byte, deletes that byte, and moves everything after the byte to th...">_dbus_string_split_on_byte</a> (<a class="code" href="structDBusString.html">DBusString</a> *source,
<a name="l00201"></a>00201 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> byte,
<a name="l00202"></a>00202 <a class="code" href="structDBusString.html">DBusString</a> *tail);
<a name="l00203"></a>00203 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga93e22894a5e2e0d65c179c7d36a8b1c8" title="Parses an integer contained in a DBusString.">_dbus_string_parse_int</a> (const <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00204"></a>00204 <span class="keywordtype">int</span> start,
<a name="l00205"></a>00205 <span class="keywordtype">long</span> *value_return,
<a name="l00206"></a>00206 <span class="keywordtype">int</span> *end_return);
<a name="l00207"></a>00207 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga84cc8d08bb48b7915d673f7cc7886f97" title="Parses an unsigned integer contained in a DBusString.">_dbus_string_parse_uint</a> (const <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00208"></a>00208 <span class="keywordtype">int</span> start,
<a name="l00209"></a>00209 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *value_return,
<a name="l00210"></a>00210 <span class="keywordtype">int</span> *end_return);
<a name="l00211"></a>00211 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga5fe47873b2838339107c3e1f03d1a703" title="Finds the given substring in the string, returning TRUE and filling in the byte index where the subst...">_dbus_string_find</a> (const <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00212"></a>00212 <span class="keywordtype">int</span> start,
<a name="l00213"></a>00213 const <span class="keywordtype">char</span> *substr,
<a name="l00214"></a>00214 <span class="keywordtype">int</span> *found);
<a name="l00215"></a>00215 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga3c98d1913e3ba4deb8eda60b2e262fdb" title="Finds end of line ("\r\n" or "\n") in the string, returning TRUE and filling in the byte index where ...">_dbus_string_find_eol</a> (const <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00216"></a>00216 <span class="keywordtype">int</span> start,
<a name="l00217"></a>00217 <span class="keywordtype">int</span> *found,
<a name="l00218"></a>00218 <span class="keywordtype">int</span> *found_len);
<a name="l00219"></a>00219 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gaf2281731c3119f946726680242a5ae02" title="Finds the given substring in the string, up to a certain position, returning TRUE and filling in the ...">_dbus_string_find_to</a> (const <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00220"></a>00220 <span class="keywordtype">int</span> start,
<a name="l00221"></a>00221 <span class="keywordtype">int</span> end,
<a name="l00222"></a>00222 const <span class="keywordtype">char</span> *substr,
<a name="l00223"></a>00223 <span class="keywordtype">int</span> *found);
<a name="l00224"></a>00224 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga89d458f4f530ee82dbb45f9dcbc9c637" title="Find the given byte scanning backward from the given start.">_dbus_string_find_byte_backward</a> (const <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00225"></a>00225 <span class="keywordtype">int</span> start,
<a name="l00226"></a>00226 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> byte,
<a name="l00227"></a>00227 <span class="keywordtype">int</span> *found);
<a name="l00228"></a>00228 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga677ddb4246c7e7f67ed3145dc3c1c96b" title="Finds a blank (space or tab) in the string.">_dbus_string_find_blank</a> (const <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00229"></a>00229 <span class="keywordtype">int</span> start,
<a name="l00230"></a>00230 <span class="keywordtype">int</span> *found);
<a name="l00231"></a>00231 <span class="keywordtype">void</span> <a class="code" href="group__DBusString.html#ga5698b163289be0066cf10c0f1caf877a" title="Skips blanks from start, storing the first non-blank in *end (blank is space or tab).">_dbus_string_skip_blank</a> (const <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00232"></a>00232 <span class="keywordtype">int</span> start,
<a name="l00233"></a>00233 <span class="keywordtype">int</span> *end);
<a name="l00234"></a>00234 <span class="keywordtype">void</span> <a class="code" href="group__DBusString.html#ga8600259d71a4adc14ab4558a9d2a0f7d" title="Skips whitespace from start, storing the first non-whitespace in *end.">_dbus_string_skip_white</a> (const <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00235"></a>00235 <span class="keywordtype">int</span> start,
<a name="l00236"></a>00236 <span class="keywordtype">int</span> *end);
<a name="l00237"></a>00237 <span class="keywordtype">void</span> <a class="code" href="group__DBusString.html#ga578bb88acec5520825f2ba792cad7938" title="Skips whitespace from end, storing the start index of the trailing whitespace in *start.">_dbus_string_skip_white_reverse</a> (const <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00238"></a>00238 <span class="keywordtype">int</span> end,
<a name="l00239"></a>00239 <span class="keywordtype">int</span> *start);
<a name="l00240"></a>00240 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gad79c34af55b58f0e8b81ecf11b8694bb" title="Tests two DBusString for equality.">_dbus_string_equal</a> (const <a class="code" href="structDBusString.html">DBusString</a> *a,
<a name="l00241"></a>00241 const <a class="code" href="structDBusString.html">DBusString</a> *b);
<a name="l00242"></a>00242 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga84f39f1bf398697920637d2982248c72" title="Checks whether a string is equal to a C string.">_dbus_string_equal_c_str</a> (const <a class="code" href="structDBusString.html">DBusString</a> *a,
<a name="l00243"></a>00243 const <span class="keywordtype">char</span> *c_str);
<a name="l00244"></a>00244 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gacf39727ae9eb411b0c4cb3b891588fb0" title="Tests two DBusString for equality up to the given length.">_dbus_string_equal_len</a> (const <a class="code" href="structDBusString.html">DBusString</a> *a,
<a name="l00245"></a>00245 const <a class="code" href="structDBusString.html">DBusString</a> *b,
<a name="l00246"></a>00246 <span class="keywordtype">int</span> len);
<a name="l00247"></a>00247 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga2095c2a797ae245521a7588b32279110" title="Tests two sub-parts of two DBusString for equality.">_dbus_string_equal_substring</a> (const <a class="code" href="structDBusString.html">DBusString</a> *a,
<a name="l00248"></a>00248 <span class="keywordtype">int</span> a_start,
<a name="l00249"></a>00249 <span class="keywordtype">int</span> a_len,
<a name="l00250"></a>00250 const <a class="code" href="structDBusString.html">DBusString</a> *b,
<a name="l00251"></a>00251 <span class="keywordtype">int</span> b_start);
<a name="l00252"></a>00252 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga4763d06a65cca36986bff030b404c90d" title="Checks whether a string starts with the given C string.">_dbus_string_starts_with_c_str</a> (const <a class="code" href="structDBusString.html">DBusString</a> *a,
<a name="l00253"></a>00253 const <span class="keywordtype">char</span> *c_str);
<a name="l00254"></a>00254 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga4701fa3fabccad3ba64b7bf17c4ae14c" title="Returns whether a string ends with the given suffix.">_dbus_string_ends_with_c_str</a> (const <a class="code" href="structDBusString.html">DBusString</a> *a,
<a name="l00255"></a>00255 const <span class="keywordtype">char</span> *c_str);
<a name="l00256"></a>00256 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga8b7fc22e6738173e1b2cef4b91b9c3c1" title="Assigns a newline-terminated or \r\n-terminated line from the front of the string to the given dest s...">_dbus_string_pop_line</a> (<a class="code" href="structDBusString.html">DBusString</a> *source,
<a name="l00257"></a>00257 <a class="code" href="structDBusString.html">DBusString</a> *dest);
<a name="l00258"></a>00258 <span class="keywordtype">void</span> _dbus_string_delete_first_word (<a class="code" href="structDBusString.html">DBusString</a> *str);
<a name="l00259"></a>00259 <span class="keywordtype">void</span> _dbus_string_delete_leading_blanks (<a class="code" href="structDBusString.html">DBusString</a> *str);
<a name="l00260"></a>00260 <span class="keywordtype">void</span> <a class="code" href="group__DBusString.html#gaa92c6ab2c5e24cbefef0a3f3fc76f98b" title="Deletes leading and trailing whitespace.">_dbus_string_chop_white</a> (<a class="code" href="structDBusString.html">DBusString</a> *str);
<a name="l00261"></a>00261 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gae99a331d4e5b7758652b78dc9c89de84" title="Appends a two-character hex digit to a string, where the hex digit has the value of the given byte...">_dbus_string_append_byte_as_hex</a> (<a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00262"></a>00262 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> byte);
<a name="l00263"></a>00263 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gaabb4873f436e015944a33cd1e3815cc9" title="Encodes a string in hex, the way MD5 and SHA-1 are usually encoded.">_dbus_string_hex_encode</a> (const <a class="code" href="structDBusString.html">DBusString</a> *source,
<a name="l00264"></a>00264 <span class="keywordtype">int</span> start,
<a name="l00265"></a>00265 <a class="code" href="structDBusString.html">DBusString</a> *dest,
<a name="l00266"></a>00266 <span class="keywordtype">int</span> insert_at);
<a name="l00267"></a>00267 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga0a8c20d855f9ddc05718b9e2ac0e33d8" title="Decodes a string from hex encoding.">_dbus_string_hex_decode</a> (const <a class="code" href="structDBusString.html">DBusString</a> *source,
<a name="l00268"></a>00268 <span class="keywordtype">int</span> start,
<a name="l00269"></a>00269 <span class="keywordtype">int</span> *end_return,
<a name="l00270"></a>00270 <a class="code" href="structDBusString.html">DBusString</a> *dest,
<a name="l00271"></a>00271 <span class="keywordtype">int</span> insert_at);
<a name="l00272"></a>00272 <span class="keywordtype">void</span> <a class="code" href="group__DBusString.html#ga698f4b0299e6c6a707fd7e9c14915f00" title="Converts the given range of the string to lower case.">_dbus_string_tolower_ascii</a> (const <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00273"></a>00273 <span class="keywordtype">int</span> start,
<a name="l00274"></a>00274 <span class="keywordtype">int</span> len);
<a name="l00275"></a>00275 <span class="keywordtype">void</span> <a class="code" href="group__DBusString.html#ga9c959f7d18ff21c5ae51846c6ba065f1" title="Converts the given range of the string to upper case.">_dbus_string_toupper_ascii</a> (const <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00276"></a>00276 <span class="keywordtype">int</span> start,
<a name="l00277"></a>00277 <span class="keywordtype">int</span> len);
<a name="l00278"></a>00278 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#gaa4324cd667e21beb31a5481cb0c12b6d" title="Checks that the given range of the string is valid ASCII with no nul bytes.">_dbus_string_validate_ascii</a> (const <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00279"></a>00279 <span class="keywordtype">int</span> start,
<a name="l00280"></a>00280 <span class="keywordtype">int</span> len);
<a name="l00281"></a>00281 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga65f0f04b7c9371406fc87343f691e8da" title="Checks that the given range of the string is valid UTF-8.">_dbus_string_validate_utf8</a> (const <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00282"></a>00282 <span class="keywordtype">int</span> start,
<a name="l00283"></a>00283 <span class="keywordtype">int</span> len);
<a name="l00284"></a>00284 <a class="code" href="group__DBusTypes.html#ga39c9cb0f3a2a8ad6f55cc4855d035349" title="A boolean, valid values are TRUE and FALSE.">dbus_bool_t</a> <a class="code" href="group__DBusString.html#ga199d0fc00ee3cd0300a1b3870d7986a3" title="Checks that the given range of the string is all nul bytes.">_dbus_string_validate_nul</a> (const <a class="code" href="structDBusString.html">DBusString</a> *str,
<a name="l00285"></a>00285 <span class="keywordtype">int</span> start,
<a name="l00286"></a>00286 <span class="keywordtype">int</span> len);
<a name="l00287"></a>00287 <span class="keywordtype">void</span> <a class="code" href="group__DBusString.html#ga9385fd0de31b3f5f4f8baa96bad3fac6" title="Clears all allocated bytes in the string to zero.">_dbus_string_zero</a> (<a class="code" href="structDBusString.html">DBusString</a> *str);
<a name="l00288"></a>00288
<a name="l00289"></a>00289
<a name="l00295"></a>00295 <span class="preprocessor">#define _DBUS_STRING_ALLOCATION_PADDING 8</span>
<a name="l00296"></a>00296 <span class="preprocessor"></span>
<a name="l00304"></a>00304 <span class="preprocessor">#define _DBUS_STRING_DEFINE_STATIC(name, str) \</span>
<a name="l00305"></a>00305 <span class="preprocessor"> static const char _dbus_static_string_##name[] = str; \</span>
<a name="l00306"></a>00306 <span class="preprocessor"> static const DBusString name = { _dbus_static_string_##name, \</span>
<a name="l00307"></a>00307 <span class="preprocessor"> sizeof(_dbus_static_string_##name), \</span>
<a name="l00308"></a>00308 <span class="preprocessor"> sizeof(_dbus_static_string_##name) + \</span>
<a name="l00309"></a>00309 <span class="preprocessor"> _DBUS_STRING_ALLOCATION_PADDING, \</span>
<a name="l00310"></a>00310 <span class="preprocessor"> TRUE, TRUE, FALSE, 0 }</span>
<a name="l00311"></a>00311 <span class="preprocessor"></span>
<a name="l00312"></a>00312 <a class="code" href="group__DBusMacros.html#gae4a9263a43f8220f6e1c0fd07cf6e59a" title="Macro used after declaring functions in the D-Bus header files.">DBUS_END_DECLS</a>
<a name="l00313"></a>00313
<a name="l00314"></a>00314 <span class="preprocessor">#endif </span><span class="comment">/* DBUS_STRING_H */</span>
</pre></div></div><!-- contents -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Mar 3 2016 17:50:31 for D-Bus by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>
</body>
</html>