LibRCG  3.1.1
rstring.h
Go to the documentation of this file.
1 
9 #ifndef _RSTRING_H_
10 #define _RSTRING_H_
11 
12 #include "list.h"
13 
22 int trimStart(char* str);
23 
32 int trimEnd(char* str);
33 
43 int trim(char* str);
44 
55 int charElem(char c,const char* str);
56 
70 List words(const char* str);
71 
89 List strSep(const char* str,const char* delim);
90 
91 #endif
List words(const char *str)
Given a string, computes the list of words that the string contains.
Definition: rstring.c:100
int charElem(char c, const char *str)
Checks if there is an occurrence of a specific character in a string.
Definition: rstring.c:85
int trimEnd(char *str)
Removes trailing whitespaces of a string.
Definition: rstring.c:37
Implementation of a linked list.
int trim(char *str)
Removes leading and trailing whitespaces of a string, as well as consecutive whitespaces in the middl...
Definition: rstring.c:54
int trimStart(char *str)
Removes leading whitespaces of a string.
Definition: rstring.c:14
List strSep(const char *str, const char *delim)
Splits a string.
Definition: rstring.c:138
Linked list structure.
Definition: list.h:37

LibRCG © 2004-2015   Rui Carlos Gonçalves