Lines Matching refs:xmlChar
5 * the xmlChar* type. All functions named xmlStr* have been moved here
33 * @cur: the input xmlChar *
36 * a strndup for array of xmlChar's
38 * Returns a new xmlChar * or NULL
40 xmlChar *
41 xmlStrndup(const xmlChar *cur, int len) {
42 xmlChar *ret;
45 ret = (xmlChar *) xmlMallocAtomic((len + 1) * sizeof(xmlChar));
50 memcpy(ret, cur, len * sizeof(xmlChar));
57 * @cur: the input xmlChar *
59 * a strdup for array of xmlChar's. Since they are supposed to be
63 * Returns a new xmlChar * or NULL
65 xmlChar *
66 xmlStrdup(const xmlChar *cur) {
67 const xmlChar *p = cur;
79 * a strndup for char's to xmlChar's
81 * Returns a new xmlChar * or NULL
84 xmlChar *
87 xmlChar *ret;
90 ret = (xmlChar *) xmlMallocAtomic((len + 1) * sizeof(xmlChar));
96 ret[i] = (xmlChar) cur[i];
107 * a strdup for char's to xmlChar's
109 * Returns a new xmlChar * or NULL
112 xmlChar *
123 * @str1: the first xmlChar *
124 * @str2: the second xmlChar *
126 * a strcmp for xmlChar's
132 xmlStrcmp(const xmlChar *str1, const xmlChar *str2) {
147 * @str1: the first xmlChar *
148 * @str2: the second xmlChar *
157 xmlStrEqual(const xmlChar *str1, const xmlChar *str2) {
171 * @str: the second xmlChar *
179 xmlStrQEqual(const xmlChar *pref, const xmlChar *name, const xmlChar *str) {
196 * @str1: the first xmlChar *
197 * @str2: the second xmlChar *
200 * a strncmp for xmlChar's
206 xmlStrncmp(const xmlChar *str1, const xmlChar *str2, int len) {
225 static const xmlChar casemap[256] = {
262 * @str1: the first xmlChar *
263 * @str2: the second xmlChar *
265 * a strcasecmp for xmlChar's
271 xmlStrcasecmp(const xmlChar *str1, const xmlChar *str2) {
286 * @str1: the first xmlChar *
287 * @str2: the second xmlChar *
290 * a strncasecmp for xmlChar's
296 xmlStrncasecmp(const xmlChar *str1, const xmlChar *str2, int len) {
312 * @str: the xmlChar * array
313 * @val: the xmlChar to search
315 * a strchr for xmlChar's
317 * Returns the xmlChar * for the first occurrence or NULL.
320 const xmlChar *
321 xmlStrchr(const xmlChar *str, xmlChar val) {
324 if (*str == val) return((xmlChar *) str);
332 * @str: the xmlChar * array (haystack)
333 * @val: the xmlChar to search (needle)
335 * a strstr for xmlChar's
337 * Returns the xmlChar * for the first occurrence or NULL.
340 const xmlChar *
341 xmlStrstr(const xmlChar *str, const xmlChar *val) {
351 if (!xmlStrncmp(str, val, n)) return((const xmlChar *) str);
360 * @str: the xmlChar * array (haystack)
361 * @val: the xmlChar to search (needle)
363 * a case-ignoring strstr for xmlChar's
365 * Returns the xmlChar * for the first occurrence or NULL.
368 const xmlChar *
369 xmlStrcasestr(const xmlChar *str, xmlChar *val) {
387 * @str: the xmlChar * array (haystack)
393 * Returns the xmlChar * for the first occurrence or NULL.
396 xmlChar *
397 xmlStrsub(const xmlChar *str, int start, int len) {
414 * @str: the xmlChar * array
416 * length of a xmlChar's string
418 * Returns the number of xmlChar contained in the ARRAY.
422 xmlStrlen(const xmlChar *str) {
435 * @cur: the original xmlChar * array
436 * @add: the xmlChar * array added
439 * a strncat for array of xmlChar's, it will extend @cur with the len
443 * Returns a new xmlChar *, the original @cur is reallocated if needed
447 xmlChar *
448 xmlStrncat(xmlChar *cur, const xmlChar *add, int len) {
450 xmlChar *ret;
460 ret = (xmlChar *) xmlRealloc(cur, (size + len + 1) * sizeof(xmlChar));
465 memcpy(&ret[size], add, len * sizeof(xmlChar));
472 * @str1: first xmlChar string
473 * @str2: second xmlChar string
480 * Returns a new xmlChar * or NULL
482 xmlChar *
483 xmlStrncatNew(const xmlChar *str1, const xmlChar *str2, int len) {
485 xmlChar *ret;
495 ret = (xmlChar *) xmlMalloc((size + len + 1) * sizeof(xmlChar));
500 memcpy(ret, str1, size * sizeof(xmlChar));
501 memcpy(&ret[size], str2, len * sizeof(xmlChar));
508 * @cur: the original xmlChar * array
509 * @add: the xmlChar * array added
511 * a strcat for array of xmlChar's. Since they are supposed to be
515 * Returns a new xmlChar * containing the concatenated string.
517 xmlChar *
518 xmlStrcat(xmlChar *cur, const xmlChar *add) {
519 const xmlChar *p = add;
541 xmlStrPrintf(xmlChar *buf, int len, const xmlChar *msg, ...) {
569 xmlStrVPrintf(xmlChar *buf, int len, const xmlChar *msg, va_list ap) {
607 xmlUTF8Size(const xmlChar *utf) {
608 xmlChar mask;
638 xmlUTF8Charcmp(const xmlChar *utf1, const xmlChar *utf2) {
658 xmlChar *utf) {
825 xmlUTF8Strsize(const xmlChar *utf, int len) {
826 const xmlChar *ptr=utf;
827 xmlChar ch;
857 xmlChar *
858 xmlUTF8Strndup(const xmlChar *utf, int len) {
859 xmlChar *ret;
864 ret = (xmlChar *) xmlMallocAtomic((i + 1) * sizeof(xmlChar));
868 (len + 1) * (long)sizeof(xmlChar));
871 memcpy(ret, utf, i * sizeof(xmlChar));
886 const xmlChar *
887 xmlUTF8Strpos(const xmlChar *utf, int pos) {
888 xmlChar ch;
905 return((xmlChar *)utf);
919 xmlUTF8Strloc(const xmlChar *utf, const xmlChar *utfchar) {
921 xmlChar ch;
955 xmlChar *
956 xmlUTF8Strsub(const xmlChar *utf, int start, int len) {
958 xmlChar ch;