32#include "dbus-internals.h"
33#include "dbus-string.h"
34#define DBUS_CAN_USE_DBUS_STRING_PRIVATE 1
35#include "dbus-string-private.h"
55 const unsigned char *ap;
56 const unsigned char *bp;
57 const unsigned char *a_end;
58 unsigned long c_str_len;
63 c_str_len = strlen (c_str);
64 if (((
unsigned long)real_a->
len) < c_str_len)
67 ap = real_a->
str + (real_a->
len - c_str_len);
68 bp = (
const unsigned char*) c_str;
69 a_end = real_a->
str + real_a->
len;
110 if (real->str[i] ==
byte)
#define _dbus_assert(condition)
Aborts with an error message if the condition is false.
#define NULL
A null pointer, defined appropriately for C or C++.
#define TRUE
Expands to "1".
#define FALSE
Expands to "0".
#define DBUS_CONST_STRING_PREAMBLE(str)
Checks assertions about a string that may be const or locked.
#define DBUS_GENERIC_STRING_PREAMBLE(real)
Checks a bunch of assertions about a string object.
dbus_bool_t _dbus_string_ends_with_c_str(const DBusString *a, const char *c_str)
Returns whether a string ends with the given suffix.
dbus_bool_t _dbus_string_find_byte_backward(const DBusString *str, int start, unsigned char byte, int *found)
Find the given byte scanning backward from the given start.
dbus_uint32_t dbus_bool_t
A boolean, valid values are TRUE and FALSE.
unsigned char * str
String data, plus nul termination.
int len
Length without nul.