34#include "dbus-internals.h"
35#include "dbus-string.h"
36#define DBUS_CAN_USE_DBUS_STRING_PRIVATE 1
37#include "dbus-string-private.h"
57 const unsigned char *ap;
58 const unsigned char *bp;
59 const unsigned char *a_end;
60 unsigned long c_str_len;
65 c_str_len = strlen (c_str);
66 if (((
unsigned long)real_a->
len) < c_str_len)
69 ap = real_a->
str + (real_a->
len - c_str_len);
70 bp = (
const unsigned char*) c_str;
71 a_end = real_a->
str + real_a->
len;
112 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.
unsigned char * str
String data, plus nul termination.
int len
Length without nul.