-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstring.h
56 lines (45 loc) · 1.27 KB
/
string.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#pragma once
#include <iostream>
class TString
{
public:
TString();
TString(char* _string);
TString(int len, char c);
TString(const TString& p);
~TString();
char* Get_String();
void Set_String(char* _string);
int Get_Length();
int Str_Len(const char* str);
int Find(char ñ);
int* Find(TString& p);
int Get_Count_Of_Split();
int Get_Count_Of_Find_Indexes();
int Get_Count_String_Of_Symbols();
TString* Split(char c);
TString operator + (const char* s);
TString operator + (const TString& p);
TString& operator = (const TString& p);
TString& operator = (const char* s);
TString& operator += (const char* s);
TString& operator += (const TString& p);
bool operator == (TString& p);
bool operator < (TString& p);
bool operator > (TString& p);
char& operator [] (int n);
friend std::ostream& operator << (std::ostream& B, TString& A);
friend std::istream& operator >> (std::istream& B, TString& A);
int DoubleStr(int k);
char Most_Popular_Symbol();
int** String_Of_Symbols();
void Set_Count_String_Of_Symbols(int count);
void Set_Count_Of_Split(int count);
void Set_Count_Of_Find_Indexes(int count);
protected:
char* string;
int length;
int countSplit;
int countFinds;
int countStringOfSymbols;
};