-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathWhitespaceParser.h
More file actions
51 lines (38 loc) · 1.5 KB
/
WhitespaceParser.h
File metadata and controls
51 lines (38 loc) · 1.5 KB
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
#pragma once
#include <vector>
NS_BEGIN
//#################################################################################################
class CWhitespaceParser final
{
public:
CWhitespaceParser(void) = default;
CWhitespaceParser(const CWhitespaceParser &src) = default;
CWhitespaceParser(CWhitespaceParser &&src) = default;
explicit CWhitespaceParser(PCNSTR sz);
explicit CWhitespaceParser(const CStr &str);
size_t GetCount(void) const;
size_t GetLength(const bool bIncludeNullTerm = false) const; // Length in characters
size_t GetSize(const bool bIncludeNullTerm = false) const; // Size in bytes
bool IsEmpty(void) const noexcept;
void Empty(void);
CStr Get(void) const;
CStr Get(const size_t nParam) const;
CWhitespaceParser &operator=(const CWhitespaceParser &src) = default;
CWhitespaceParser &operator=(CWhitespaceParser &&src) = default;
CWhitespaceParser &operator=(PCNSTR sz);
CWhitespaceParser &operator=(const CStr &str);
void Assign(PCNSTR sz);
void Assign(const CStr &str);
void Assign(const CWhitespaceParser &src);
CWhitespaceParser &operator+=(PCNSTR sz);
CWhitespaceParser &operator+=(const CStr &str);
CWhitespaceParser &operator+=(const CWhitespaceParser &src);
void Append(PCNSTR sz);
void Append(const CStr &str);
void Append(const CWhitespaceParser &src);
void Insert(const size_t nParam, const CStr &str);
void Delete(const size_t nParam, const size_t nParamCount = 1);
private:
std::vector<CStr> m_vecParams;
};
NS_END