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.
startsWith
string_view
1 parent 6179a4d commit 437ba9bCopy full SHA for 437ba9b
packages/host/cpp/CxxNodeApiHostModule.cpp
@@ -11,7 +11,7 @@ using namespace facebook;
11
12
namespace {
13
14
-bool startsWith(const std::string &str, const std::string &prefix) {
+bool startsWith(const std::string_view &str, const std::string_view &prefix) {
15
#if __cplusplus >= 202002L // __cpp_lib_starts_ends_with
16
return str.starts_with(prefix);
17
#else
0 commit comments