old/str.c File Reference

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <except.h>
#include <glib.h>
#include <assert.h>
#include "nps.h"

Classes

struct  T

Defines

#define STR_(x)   Str_## x
#define T   STR_(T)
#define STR_INDEX_ERROR(i, j)   RAISE_MSG(&STR_(Index_Error),"attempted index %ld of length %ld string\n",(i),(j))

Typedefs

typedef struct TT

Functions

struct Except_t STR_ (Index_Error)
void STR_() del (T s)
T STR_() of_utf8 (char *in_s)
T STR_() of_ascii (char *in_s)
long STR_() length (T s)
T STR_() copy (T s)
T STR_() concat (T s1, T s2)
long STR_() index (T db, T query)
char STR_() contains (T db, T query)
char STR_() contains_from (T db, T query)
long STR_() rindex (T db, T query)
long STR_() cmp (T s1, T s2)
char *STR_() to_utf8 (T s)
T STR_() sub (T s, long start, long n)

Define Documentation

#define STR_ (  )     Str_## x
#define STR_INDEX_ERROR ( i,
 )     RAISE_MSG(&STR_(Index_Error),"attempted index %ld of length %ld string\n",(i),(j))
#define T   STR_(T)

Typedef Documentation

typedef struct T* T

Function Documentation

long STR_() cmp ( T  s1,
T  s2 
)
T STR_() concat ( T  s1,
T  s2 
)
char STR_() contains ( T  db,
T  query 
)
char STR_() contains_from ( T  db,
T  query 
)
T STR_() copy ( T  s  ) 
void STR_() del ( T  s  ) 
long STR_() index ( T  db,
T  query 
)
long STR_() length ( T  s  ) 
T STR_() of_ascii ( char *  in_s  ) 
T STR_() of_utf8 ( char *  in_s  ) 
long STR_() rindex ( T  db,
T  query 
)
struct Except_t STR_ ( Index_Error   )  [read]
T STR_() sub ( T  s,
long  start,
long  n 
)
char* STR_() to_utf8 ( T  s  ) 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Sun Sep 11 09:40:46 2011 for NPSML by  doxygen 1.6.3