@@ -114,12 +114,48 @@ namespace utf8
114
114
return (String == other.String );
115
115
}
116
116
117
+ // -----------------------------------------------------------------------------------------------------------------
118
+ bool ustring::operator ==(const char * other) const
119
+ {
120
+ return (String == other);
121
+ }
122
+
123
+ // -----------------------------------------------------------------------------------------------------------------
124
+ bool ustring::operator ==(const std::basic_string<char >& other) const
125
+ {
126
+ return (String == other);
127
+ }
128
+
129
+ // -----------------------------------------------------------------------------------------------------------------
130
+ bool ustring::operator ==(const std::basic_string_view<char >& other) const
131
+ {
132
+ return (String == other);
133
+ }
134
+
117
135
// -----------------------------------------------------------------------------------------------------------------
118
136
bool ustring::operator !=(const ustring& other) const
119
137
{
120
138
return (String != other.String );
121
139
}
122
140
141
+ // -----------------------------------------------------------------------------------------------------------------
142
+ bool ustring::operator !=(const char * other) const
143
+ {
144
+ return (String != other);
145
+ }
146
+
147
+ // -----------------------------------------------------------------------------------------------------------------
148
+ bool ustring::operator !=(const std::basic_string<char >& other) const
149
+ {
150
+ return (String != other);
151
+ }
152
+
153
+ // -----------------------------------------------------------------------------------------------------------------
154
+ bool ustring::operator !=(const std::basic_string_view<char >& other) const
155
+ {
156
+ return (String != other);
157
+ }
158
+
123
159
// -----------------------------------------------------------------------------------------------------------------
124
160
void ustring::replace_char (std::basic_string_view<char > new_symbol, std::size_t idx)
125
161
{
0 commit comments