Chain.h | Chain.h | |||
---|---|---|---|---|
skipping to change at line 42 | skipping to change at line 42 | |||
// Description: all base operations on strings | // Description: all base operations on strings | |||
// | // | |||
// Status: IMPLEMENTED | // Status: IMPLEMENTED | |||
/////////////////////////////////////////////////////////////////////////// //// | /////////////////////////////////////////////////////////////////////////// //// | |||
// INCLUDES | // INCLUDES | |||
#include <iostream> | #include <iostream> | |||
using namespace std; | using namespace std; | |||
#define STATICBUFSIZE 50 | ||||
class Chain { | class Chain { | |||
public: | public: | |||
Chain(); | Chain(); | |||
Chain(const char* s); | Chain(const char* s); | |||
Chain(const char* s, int len); | Chain(const char* s, int len); | |||
Chain(const Chain& str); | Chain(const Chain& str); | |||
Chain(const char c); | Chain(const char c); | |||
Chain(unsigned long l); | Chain(unsigned long l); | |||
skipping to change at line 114 | skipping to change at line 116 | |||
friend Chain operator + ( const Chain& str1, const Chain& str2); | friend Chain operator + ( const Chain& str1, const Chain& str2); | |||
friend ostream& operator << (ostream& s, const Chain& str); | friend ostream& operator << (ostream& s, const Chain& str); | |||
friend istream& operator >> (istream& s, Chain &str); | friend istream& operator >> (istream& s, Chain &str); | |||
private: | private: | |||
bool matchAtPos(const Chain& s1, int pos) const; | bool matchAtPos(const Chain& s1, int pos) const; | |||
char *_buf; | char *_buf; | |||
unsigned long _len; | unsigned long _len; | |||
char _staticBuf[STATICBUFSIZE]; | ||||
}; | }; | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 3 lines changed or added | |||