| 58 | }; |
| 59 | |
| 60 | struct FixedString |
| 61 | { |
| 62 | inline FixedString() |
| 63 | : Str(nullptr) |
| 64 | {} |
| 65 | |
| 66 | inline FixedString(char const * s) |
| 67 | : Str(s) |
| 68 | {} |
| 69 | |
| 70 | inline FixedString(FixedString const & fs) |
| 71 | : Str(fs.Str) |
| 72 | {} |
| 73 | |
| 74 | inline bool operator == (FixedString const & fs) const |
| 75 | { |
| 76 | return Str == fs.Str; |
| 77 | } |
| 78 | |
| 79 | inline bool operator != (FixedString const & fs) const |
| 80 | { |
| 81 | return Str != fs.Str; |
| 82 | } |
| 83 | |
| 84 | inline bool operator !() const |
| 85 | { |
| 86 | return Str == nullptr; |
| 87 | } |
| 88 | |
| 89 | inline explicit operator bool() const |
| 90 | { |
| 91 | return Str != nullptr; |
| 92 | } |
| 93 | |
| 94 | char const * Str; |
| 95 | }; |
| 96 | |
| 97 | FixedString ToFixedString(const char * s); |
| 98 | |