cef string interface
| 180 | |
| 181 | /// cef string interface |
| 182 | struct 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 | |
| 219 | struct CefStr : CefStrBase |
| 220 | { |
nothing calls this directly
no outgoing calls
no test coverage detected