We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccec4dd commit fc7cc8fCopy full SHA for fc7cc8f
src/util/dstring.h
@@ -93,7 +93,7 @@ class dstringt final
93
}
94
95
/// equivalent of as_string().starts_with(s)
96
- bool starts_with(const char *s)
+ bool starts_with(const char *s) const
97
{
98
for(const char *t = c_str(); *s != 0; s++, t++)
99
if(*t != *s)
@@ -103,7 +103,7 @@ class dstringt final
103
104
105
106
- bool starts_with(const std::string &prefix)
+ bool starts_with(const std::string &prefix) const
107
108
return as_string().compare(0, prefix.size(), prefix) == 0;
109
0 commit comments