23 #ifndef _GLIBCXX_CSTRING
28 char *dup = strdup(str);
45 memcpy(neu, p, len+1);
62 int len = end-start+1;
65 const char *eos = (
const char *)memchr(start, 0, len);
67 if (eos) len = eos-
start;
69 memcpy(result, start, len);
77 result = nulldup(start);
101 return str+strcspn(str, buf);
103 return strchrnul(str, chr);
107 template <
typename NUM>
109 return "s"+(val == 1);
111 template <>
inline const char *
plural(
float);
112 template <>
inline const char *
plural(
double);
115 #error arb_string.h included twice
char * ARB_strdup(const char *str)
char * ARB_strpartdup(const char *start, const char *end)
const char * ARB_keep_string(char *str)
const char * plural(NUM val)
static HelixNrInfo * start
char * ARB_strduplen(const char *p, unsigned len)
TYPE * ARB_alloc(size_t nelem)
const char * ARB_date_string(void)
void failed_to_allocate(const char *reason) __ATTR__NORETURN
const char * ARB_dateTime_suffix(void)
char * ARB_strndup(const char *start, int len)
const char * ARB_strchrnul(const char *str, int chr)