MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SeparatorData

Class SeparatorData

Source/Engine/Utilities/TextProcessing.h:20–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 /// Separator structure.
19 /// </summary>
20 struct SeparatorData
21 {
22 public:
23 char C0;
24 char C1;
25
26 public:
27 SeparatorData()
28 : C0(0)
29 , C1(0)
30 {
31 }
32
33 SeparatorData(char c0)
34 : C0(c0)
35 , C1(0)
36 {
37 }
38
39 SeparatorData(char c0, char c1)
40 : C0(c0)
41 , C1(c1)
42 {
43 }
44
45 SeparatorData(const SeparatorData& other)
46 : C0(other.C0)
47 , C1(other.C1)
48 {
49 }
50
51 public:
52 bool IsWhiteSpace() const
53 {
54 return *this == SeparatorData('\r', '\n')
55 || *this == SeparatorData('\n')
56 || *this == SeparatorData('\t')
57 || *this == SeparatorData(' ');
58 }
59
60 public:
61 bool operator==(const SeparatorData& other) const
62 {
63 return C0 == other.C0 && C1 == other.C1;
64 }
65
66 bool operator!=(const SeparatorData& other) const
67 {
68 return C0 != other.C0 || C1 != other.C1;
69 }
70 };
71
72 /// <summary>
73 /// Token structure

Callers 2

Setup_HLSLMethod · 0.85
IsWhiteSpaceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected