WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Strings.h
1#ifndef _WINC_STRINGS
2#define _WINC_STRINGS
3
4namespace WXP {
5 class Strings {
6 int max;
7 int num;
8 char **vals;
9
10 public:
11 Strings( );
12 Strings( int num );
13 Strings( const char *string, char delim, int num );
14 Strings( const char *string, char delim, int num, const char *groups );
15 Strings( const char *string, char delim );
16 Strings( const char *string );
17 Strings( int cnt, const char *str[] );
18 Strings( const Strings &strings );
19 Strings operator=( const Strings &strings );
20 ~Strings();
21 int init();
22 int clear();
23 int set( int num );
24 int expand( int num );
25 int add( const char *string );
26 int set( int ind, const char *string );
27 int set( const char *string, char delim, int num );
28 int set( const char *string, char delim );
29 int set( const char *string, char delim, int num, const char *groups );
30 int set( const char *string );
31 int set( int cnt, const char *str[] );
32 int set( const Strings &strings );
33 int set( const char *string, const char *pattern );
34 const char *getString( int ind );
35 const char *getString( int ind, char delim );
36 const char *getString( int ind, int off );
37 const char *getStringAfter( int ind, char ch );
38 char getChar( int ind, int off );
39 bool valid( int ind );
40 bool equal( int ind, const char *str );
41 bool equal( int ind, int off, const char *str );
42 bool equal( int ind, const char *str, int num );
43 bool iequal( int ind, const char *str );
44 bool iequal( int ind, int off, const char *str );
45 bool iequal( int ind, const char *str, int num );
46 int find( const char *str );
47 int index( int ind, char s1 );
48 bool contains( int ind, const char *str );
49 int occurs( int ind, char c );
50 int getLength( int ind );
51 int scanf( int ind, const char *fmt, ... );
52 int scanf( int ind, int off, const char *fmt, ... );
53 int getInt( int ind );
54 int getInt( int ind, int off );
55 int getIntAfter( int ind, char ch );
56 long getLong( int ind );
57 long getLong( int ind, int off );
58 long getLongAfter( int ind, char ch );
59 float getFloat( int ind );
60 float getFloat( int ind, int off );
61 float getFloatAfter( int ind, char ch );
62 bool check( int ind, const char *pat );
63
65 int getNum( ){ return num; };
66 int print();
67 };
68}
69#endif
This class creates a list of strings.
Definition Strings.h:5
int getLength(int ind)
Definition Strings.cc:779
int init()
Definition Strings.cc:123
int getInt(int ind)
Definition Strings.cc:833
int scanf(int ind, const char *fmt,...)
Definition Strings.cc:792
const char * getString(int ind)
Definition Strings.cc:593
bool iequal(int ind, const char *str)
Definition Strings.cc:703
char getChar(int ind, int off)
Definition Strings.cc:645
long getLong(int ind)
Definition Strings.cc:867
const char * getStringAfter(int ind, char ch)
Definition Strings.cc:630
int getNum()
Definition Strings.h:65
int find(const char *str)
Definition Strings.cc:741
int set(int num)
Definition Strings.cc:147
int index(int ind, char s1)
Definition Strings.cc:755
int print()
Definition Strings.cc:940
bool equal(int ind, const char *str)
Definition Strings.cc:664
Strings operator=(const Strings &strings)
Definition Strings.cc:101
~Strings()
Definition Strings.cc:111
int clear()
Definition Strings.cc:133
Strings()
Definition Strings.cc:24
float getFloat(int ind)
Definition Strings.cc:901
int add(const char *string)
Definition Strings.cc:181
int expand(int num)
Definition Strings.cc:161
All WXP classes fall under the WXP namespace.
Definition Angle.h:4