-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnstring.h
38 lines (36 loc) · 1.01 KB
/
nstring.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
/* * * * * * * * * * * * * * * * * * * * * * * * * * *
* EXPANDED STRINGS FOR C++ *
* BY: IchoTM *
* https://github.com/IchoTM/ExpandedStrings_for_CPP *
* * * * * * * * * * * * * * * * * * * * * * * * * * */
#pragma once
#define WIN32_LEAN_AND_MEAN
#include <string>
#include <iostream>
#include <vector>
using namespace std;
class nstring : public string
{
private:
vector<char> illegalChars;
const bool isIllegal(char);
public:
nstring sheer(int, int);
nstring sheerUntilDelim(char, int, bool);
void autoForm();
void addLaw(char);
void baseLaw();
void rmvLaw(char);
const void getLaws() const;
vector<nstring> divideByDelim(char, bool);
const bool has(char);
const int howMany(char);
nstring& operator=(const char[]);
nstring& operator=(nstring);
nstring& operator+=(char);
nstring& operator+=(nstring);
nstring& operator+(nstring);
char operator[](int);
const bool operator==(nstring);
const bool operator!=(nstring);
};