#include "system.h"
#include <rpmlib.h>
+#include <rpmstring.h>
#include <rpmds.h>
#include "rpmio_internal.h" /* XXX for rpmioSlurp */
#include <rpmlib.h>
#include <rpmmacro.h>
+#include <rpmstring.h>
#include "rpmlua.h"
#include <rpmlog.h>
#include "digest.h"
#include <rpmlib.h>
#include <rpmmacro.h> /* XXX rpmtsOpenDB() needs rpmGetPath */
+#include <rpmstring.h>
#include <rpmdb.h>
#include "system.h"
#include <rpmlib.h>
+#include <rpmstring.h>
#include "debug.h"
#include <rpmlib.h>
#include <rpmmacro.h> /* XXX for rpmGetPath() */
#include <rpmdb.h>
+#include <rpmstring.h>
#include <rpmts.h>
#include "system.h"
#include <rpmlib.h>
+#include <rpmstring.h>
#include "legacy.h"
#include "system.h"
#include <rpmlib.h>
+#include <rpmstring.h>
#include "header-py.h"
#include "rpmds-py.h"
#include <rpmlib.h>
#include <rpmmacro.h>
-
+#include <rpmstring.h>
#include <rpmlog.h>
#include "rpmdb_internal.h"
#include "debug.h"
#include "system.h"
+#include <rpmstring.h>
#include "header_internal.h"
#include "debug.h"
#include <rpmpgp.h>
#include <rpmmacro.h>
#include <rpmsq.h>
+#include <rpmstring.h>
#include <rpmlog.h>
#include "rpmdb_internal.h"
#include "system.h"
#include <rpmlib.h>
-#include <rpmio.h>
+#include <rpmstring.h>
#include "debug.h"
struct headerTagIndices_s {
#define STREQ(_t, _f, _fn) ((_fn) == (sizeof(_t)-1) && !strncmp((_t), (_f), (_fn)))
#include <rpmio.h>
+#include <rpmstring.h>
#include <rpmurl.h>
#include <rpmmessages.h>
#include <rpmlog.h>
*/
int timedRead(FD_t fd, void * bufptr, int length);
-static inline int xislower(int c) {
- return (c >= 'a' && c <= 'z');
-}
-static inline int xisupper(int c) {
- return (c >= 'A' && c <= 'Z');
-}
-static inline int xisalpha(int c) {
- return (xislower(c) || xisupper(c));
-}
-static inline int xisdigit(int c) {
- return (c >= '0' && c <= '9');
-}
-static inline int xisalnum(int c) {
- return (xisalpha(c) || xisdigit(c));
-}
-static inline int xisblank(int c) {
- return (c == ' ' || c == '\t');
-}
-static inline int xisspace(int c) {
- return (xisblank(c) || c == '\n' || c == '\r' || c == '\f' || c == '\v');
-}
-
-static inline int xtolower(int c) {
- return ((xisupper(c)) ? (c | ('a' - 'A')) : c);
-}
-static inline int xtoupper(int c) {
- return ((xislower(c)) ? (c & ~('a' - 'A')) : c);
-}
-
-/** \ingroup rpmio
- * Locale insensitive strcasecmp(3).
- */
-int xstrcasecmp(const char * s1, const char * s2) ;
-
-/** \ingroup rpmio
- * Locale insensitive strncasecmp(3).
- */
-int xstrncasecmp(const char *s1, const char * s2, size_t n) ;
-
#ifdef __cplusplus
}
#endif
#include "system.h"
#include "digest.h"
#include "rpmio_internal.h" /* XXX rpmioSlurp */
+
+#include <rpmstring.h>
+
#include "debug.h"
#endif
#include <rpmurl.h>
+#include <rpmstring.h>
#include "rpmio_internal.h"
#include "ugid.h"
int free;
};
-/**
- * Locale insensitive isspace(3).
- */
-static inline int xisspace(int c) {
- return (c == ' ' || c == '\t' || c == '\n' || c == '\r' || c == '\f' || c == '\v');
-}
-
char * stripTrailingChar(char * s, char c)
{
char * t;
extern "C" {
#endif
+static inline int xislower(int c) {
+ return (c >= 'a' && c <= 'z');
+}
+static inline int xisupper(int c) {
+ return (c >= 'A' && c <= 'Z');
+}
+static inline int xisalpha(int c) {
+ return (xislower(c) || xisupper(c));
+}
+static inline int xisdigit(int c) {
+ return (c >= '0' && c <= '9');
+}
+static inline int xisalnum(int c) {
+ return (xisalpha(c) || xisdigit(c));
+}
+static inline int xisblank(int c) {
+ return (c == ' ' || c == '\t');
+}
+static inline int xisspace(int c) {
+ return (xisblank(c) || c == '\n' || c == '\r' || c == '\f' || c == '\v');
+}
+
+static inline int xtolower(int c) {
+ return ((xisupper(c)) ? (c | ('a' - 'A')) : c);
+}
+static inline int xtoupper(int c) {
+ return ((xislower(c)) ? (c & ~('a' - 'A')) : c);
+}
+
+/** \ingroup rpmio
+ * Locale insensitive strcasecmp(3).
+ */
+int xstrcasecmp(const char * s1, const char * s2) ;
+
+/** \ingroup rpmio
+ * Locale insensitive strncasecmp(3).
+ */
+int xstrncasecmp(const char *s1, const char * s2, size_t n) ;
+
/**
* Split string into fields separated by a character.
* @param str string
*/
#include "system.h"
-#include <rpmio.h>
+#include <rpmstring.h>
#include "debug.h"
int xstrcasecmp(const char * s1, const char * s2)