MCPcopy Create free account
hub / github.com/NativeScript/android / StartsWith

Function StartsWith

test-app/runtime/src/main/cpp/HMRSupport.cpp:16–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace tns {
15
16static inline bool StartsWith(const std::string& s, const char* prefix) {
17 size_t n = strlen(prefix);
18 return s.size() >= n && s.compare(0, n, prefix) == 0;
19}
20
21// Per-module hot data and callbacks. Keyed by canonical module path (file path or URL).
22static std::unordered_map<std::string, v8::Global<v8::Object>> g_hotData;

Callers 1

CanonicalizeHttpUrlKeyFunction · 0.85

Calls 2

sizeMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected