|
|
2ff057 |
|
|
|
2ff057 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
2ff057 |
<head>
|
|
|
2ff057 |
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
|
2ff057 |
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
|
2ff057 |
<meta name="generator" content="Doxygen 1.8.14"/>
|
|
|
2ff057 |
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
|
2ff057 |
<title>rpm: rpmstring.h File Reference</title>
|
|
|
2ff057 |
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
|
2ff057 |
<script type="text/javascript" src="jquery.js"></script>
|
|
|
2ff057 |
<script type="text/javascript" src="dynsections.js"></script>
|
|
|
2ff057 |
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
|
2ff057 |
</head>
|
|
|
2ff057 |
<body>
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
rpm
|
|
|
2ff057 |
4.14.2
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
<script type="text/javascript" src="menudata.js"></script>
|
|
|
2ff057 |
<script type="text/javascript" src="menu.js"></script>
|
|
|
2ff057 |
<script type="text/javascript">
|
|
|
2ff057 |
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
|
2ff057 |
$(function() {
|
|
|
2ff057 |
initMenu('',false,false,'search.php','Search');
|
|
|
2ff057 |
});
|
|
|
2ff057 |
/* @license-end */</script>
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
rpmio
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Functions
|
|
|
2ff057 |
|
|
|
2ff057 |
rpmstring.h File Reference
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
String manipulation helper functions.
|
|
|
2ff057 |
More...
|
|
|
2ff057 |
#include <stddef.h>
|
|
|
2ff057 |
#include <string.h>
|
|
|
2ff057 |
#include <rpm/rpmutil.h>
|
|
|
2ff057 |
|
|
|
2ff057 |
Include dependency graph for rpmstring.h:
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Go to the source code of this file.
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Functions
|
|
|
2ff057 |
static RPM_GNUC_CONST int rislower (int c)
|
|
|
2ff057 |
Locale insensitive islower(3) More...
|
|
|
2ff057 |
|
|
|
2ff057 |
static RPM_GNUC_CONST int risupper (int c)
|
|
|
2ff057 |
Locale insensitive isupper(3) More...
|
|
|
2ff057 |
|
|
|
2ff057 |
static RPM_GNUC_CONST int risalpha (int c)
|
|
|
2ff057 |
Locale insensitive isalpha(3) More...
|
|
|
2ff057 |
|
|
|
2ff057 |
static RPM_GNUC_CONST int risdigit (int c)
|
|
|
2ff057 |
Locale insensitive isdigit(3) More...
|
|
|
2ff057 |
|
|
|
2ff057 |
static RPM_GNUC_CONST int risalnum (int c)
|
|
|
2ff057 |
Locale insensitive isalnum(3) More...
|
|
|
2ff057 |
|
|
|
2ff057 |
static RPM_GNUC_CONST int risblank (int c)
|
|
|
2ff057 |
Locale insensitive isblank(3) More...
|
|
|
2ff057 |
|
|
|
2ff057 |
static RPM_GNUC_CONST int risspace (int c)
|
|
|
2ff057 |
Locale insensitive isspace(3) More...
|
|
|
2ff057 |
|
|
|
2ff057 |
static RPM_GNUC_CONST int rtolower (int c)
|
|
|
2ff057 |
Locale insensitive tolower(3) More...
|
|
|
2ff057 |
|
|
|
2ff057 |
static RPM_GNUC_CONST int rtoupper (int c)
|
|
|
2ff057 |
Locale insensitive toupper(3) More...
|
|
|
2ff057 |
|
|
|
2ff057 |
static RPM_GNUC_CONST unsigned char rnibble (char c)
|
|
|
2ff057 |
Convert hex to binary nibble. More...
|
|
|
2ff057 |
|
|
|
2ff057 |
static int rstreq (const char *s1, const char *s2)
|
|
|
2ff057 |
Test for string equality. More...
|
|
|
2ff057 |
|
|
|
2ff057 |
static int rstreqn (const char *s1, const char *s2, size_t n)
|
|
|
2ff057 |
Test for string equality. More...
|
|
|
2ff057 |
|
|
|
2ff057 |
RPM_GNUC_PURE int rstrcasecmp (const char *s1, const char *s2)
|
|
|
2ff057 |
Locale insensitive strcasecmp(3). More...
|
|
|
2ff057 |
|
|
|
2ff057 |
RPM_GNUC_PURE int rstrncasecmp (const char *s1, const char *s2, size_t n)
|
|
|
2ff057 |
Locale insensitive strncasecmp(3). More...
|
|
|
2ff057 |
|
|
|
2ff057 |
int rasprintf (char **strp, const char *fmt,...) RPM_GNUC_PRINTF(2
|
|
|
2ff057 |
asprintf() clone More...
|
|
|
2ff057 |
|
|
|
2ff057 |
int char * rstrcat (char **dest, const char *src)
|
|
|
2ff057 |
Concatenate two strings with dynamically (re)allocated memory. More...
|
|
|
2ff057 |
|
|
|
2ff057 |
char * rstrscat (char **dest, const char *arg,...) RPM_GNUC_NULL_TERMINATED
|
|
|
2ff057 |
Concatenate multiple strings with dynamically (re)allocated memory. More...
|
|
|
2ff057 |
|
|
|
2ff057 |
size_t rstrlcpy (char *dest, const char *src, size_t n)
|
|
|
2ff057 |
strlcpy() clone: Copy src to string dest of size n. More...
|
|
|
2ff057 |
|
|
|
2ff057 |
RPM_GNUC_PURE unsigned int rstrhash (const char *string)
|
|
|
2ff057 |
String hashing function. More...
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Detailed Description
|
|
|
2ff057 |
String manipulation helper functions.
|
|
|
2ff057 |
|
|
|
2ff057 |
Definition in file rpmstring.h.
|
|
|
2ff057 |
Function Documentation
|
|
|
2ff057 |
|
|
|
2ff057 |
◆ rnibble()
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
static RPM_GNUC_CONST unsigned char rnibble
|
|
|
2ff057 |
(
|
|
|
2ff057 |
char
|
|
|
2ff057 |
c)
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
inlinestatic
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Convert hex to binary nibble.
|
|
|
2ff057 |
- Parameters
|
|
|
2ff057 |
|
|
|
2ff057 |
chex character
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
- Returns
- binary nibble
|
|
|
2ff057 |
|
|
|
2ff057 |
Definition at line 96 of file rpmstring.h.
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
◆ rstreq()
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
static int rstreq
|
|
|
2ff057 |
(
|
|
|
2ff057 |
const char *
|
|
|
2ff057 |
s1,
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
const char *
|
|
|
2ff057 |
s2
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
)
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
inlinestatic
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Test for string equality.
|
|
|
2ff057 |
- Parameters
|
|
|
2ff057 |
|
|
|
2ff057 |
s1string 1
|
|
|
2ff057 |
s2string 2
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
- Returns
- 0 if strings differ, 1 if equal
|
|
|
2ff057 |
|
|
|
2ff057 |
Definition at line 113 of file rpmstring.h.
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
◆ rstreqn()
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
static int rstreqn
|
|
|
2ff057 |
(
|
|
|
2ff057 |
const char *
|
|
|
2ff057 |
s1,
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
const char *
|
|
|
2ff057 |
s2,
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
size_t
|
|
|
2ff057 |
n
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
)
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
inlinestatic
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
Test for string equality.
|
|
|
2ff057 |
- Parameters
|
|
|
2ff057 |
|
|
|
2ff057 |
s1string 1
|
|
|
2ff057 |
s2string 2
|
|
|
2ff057 |
ncompare at most n characters
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
- Returns
- 0 if strings differ, 1 if equal
|
|
|
2ff057 |
|
|
|
2ff057 |
Definition at line 125 of file rpmstring.h.
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
|
|
|
2ff057 |
<address class="footer"><small>
|
|
|
2ff057 |
Generated by
|
|
|
2ff057 |
|
|
|
2ff057 |
1.8.14
|
|
|
2ff057 |
</small></address>
|
|
|
2ff057 |
</body>
|
|
|
2ff057 |
</html>
|