33 size_t slen = strlen(
str);
34 size_t elen = strlen(end);
42 return strcmp(
str, end) == 0;
50 strtoint(
const char *pg_restrict
str,
char **pg_restrict endptr,
int base)
54 val = strtol(
str, endptr, base);
93 dstlen = strlen(
str) * 4 + 1;
104 for (p =
str; *p !=
'\0'; p++)
108 if (*p < 32 || *p > 126)
111 snprintf(&dst[
i], dstlen -
i,
"\\x%02x", (
unsigned char) *p);
158 while (
len > 0 && (
str[
len - 1] ==
'\n' ||
#define IS_HIGHBIT_SET(ch)
#define Assert(condition)
void * palloc_extended(Size size, int flags)
int pg_strip_crlf(char *str)
bool pg_is_ascii(const char *str)
int strtoint(const char *pg_restrict str, char **pg_restrict endptr, int base)
bool pg_str_endswith(const char *str, const char *end)
char * pg_clean_ascii(const char *str, int alloc_flags)