Main Page | File List | File Members

str.h File Reference

SCEW string functions. More...

#include <expat.h>
#include <string.h>
#include <ctype.h>

Go to the source code of this file.

Defines

#define scew_memcpy(dst, src, n)   memcpy(dst,src,sizeof(XML_Char)*(n))
#define scew_memmove(dst, src, n)   memmove(dst,src,sizeof(XML_Char)*(n))
#define _XT(str)   str
#define scew_fprintf   fprintf
#define scew_sprintf   sprintf
#define scew_strcmp(s1, s2)   strcmp(s1,s2)
#define scew_strspn(s1, s2)   strspn(s1,s2)
#define scew_strcpy(s1, s2)   strcpy(s1,s2)
#define scew_strcat(s1, s2)   strcat(s1,s2)
#define scew_strncpy(s1, s2, n)   strncpy(s1,s2,n)
#define scew_strncat(s1, s2, n)   strncat(s1,s2,n)
#define scew_strlen(s)   strlen(s)
#define scew_isalnum(c)   isalnum((unsigned char)(c))
#define scew_isalpha(c)   isalpha((unsigned char)(c))
#define scew_iscntrl(c)   iscntrl((unsigned char)(c))
#define scew_isdigit(c)   isdigit((unsigned char)(c))
#define scew_isxdigit(c)   isxdigit((unsigned char)(c))
#define scew_isgraph(c)   isgraph((unsigned char)(c))
#define scew_islower(c)   islower((unsigned char)(c))
#define scew_isupper(c)   isupper((unsigned char)(c))
#define scew_isprint(c)   isprint((unsigned char)(c))
#define scew_ispunct(c)   ispunct((unsigned char)(c))
#define scew_isspace(c)   isspace((unsigned char)(c))

Functions

XML_Char * scew_strdup (XML_Char const *src)
void scew_strtrim (XML_Char *src)


Detailed Description

SCEW string functions.

Author:
Aleix Conchillo Flaque <aleix@member.fsf.org>
Date:
Sun Dec 01, 2002 13:05
Id
str.h,v 1.2 2004/01/29 00:34:38 aleix Exp

Function Documentation

XML_Char* scew_strdup XML_Char const *  src  ) 
 

Creates a new copy of the given string. Client must free it.

void scew_strtrim XML_Char *  src  ) 
 

Trims off extra spaces from the beginning and end of a string.


Generated on Tue May 25 23:38:29 2004 for Simple C Expat Wrapper by doxygen 1.3.7