MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / CefStrBase

Class CefStrBase

core/src/pengu.h:182–217  ·  view source on GitHub ↗

cef string interface

Source from the content-addressed store, hash-verified

180
181/// cef string interface
182struct CefStrBase : cef_string_t
183{
184 CefStrBase();
185
186 ///
187 /// Check if the string is empty.
188 ///
189 bool empty() const;
190
191 // some string manipulations
192
193 bool equal(const char *that) const;
194 bool contain(const char *sub) const;
195 bool startw(const char *sub) const;
196 bool endw(const char *sub) const;
197
198 ///
199 /// Copy the string to utf-16 std string.
200 ///
201 void copy(std::u16string &to) const;
202
203 ///
204 /// Convert the string to utf-8 std string.
205 ///
206 std::string to_utf8() const;
207
208 ///
209 /// Convert the string to utf-16 std string.
210 ///
211 std::u16string to_utf16() const;
212
213 ///
214 /// Convert the string to fs path.
215 ///
216 std::filesystem::path to_path() const;
217};
218
219struct CefStr : CefStrBase
220{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected