Source: src/include/si_string.h
|
|
|
|
// String function for Siriel
#ifndef SIRIEL_STRING
#define SIRIEL_STRING
#include
using namespace std;
//Chops last character from string (perl:))
void chop(char *s);
//Removes white spaces around word in string
string remove_spaces(string s);
//Check syntax and remove comentars beginning with #
//till end of line
int check_syntax(string &s);
//returns value on n-th position in string
int string_value(string s, int n);
//parse string and fill int params with values (separated by colon)
void get_int(string s, int *x1, int *y1, int *x2, int *y2);
//converts string to int
int stoi(string text);
string replace_all(string s, string src, string dst);
string remove_newline(string s);
#endif
Generated by: georgik on armada on Sat Jul 24 07:07:15 2004, using kdoc 2.0a54. |