swh:1:snp:7d9f1bc35e120776766db9334626062f837c20ad
Raw File
Tip revision: 3ef4639f000fb16549a336e00ac2ad3910363efa authored by Unknown author on 22 June 2000, 00:00:00 UTC
version 0.2
Tip revision: 3ef4639
Utils.h
/*
 * See Copyright for the license status of this software.
 */

#ifndef UTILS_H
#define UTILS_H

#include "RS_XML.h"
#ifdef USE_R
#include "RSCommon.h"
#else
#include "S.h"
#endif

int isBlank(const char *str);
char *trim(char *str);

USER_OBJECT_ RS_XML(invokeFunction)(USER_OBJECT_ fun, USER_OBJECT_ opArgs);
USER_OBJECT_ RS_XML(findFunction)(const char *opName, USER_OBJECT_ functions);

void RS_XML(SetNames)(int n, const char *cnames[], USER_OBJECT_ ans);
int RS_XML(SetClassName)(const char *name, USER_OBJECT_ target);

#ifndef SET_CLASS_NAME
#define SET_CLASS_NAME(localClassName, target)  RS_XML(SetClassName)((localClassName), (target))
#endif

#ifdef LIBXML2
#include <libxml/hash.h>
int xmlHashSize(xmlHashTablePtr table);
#endif

#endif

back to top