MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / is_rust_hash

Function is_rust_hash

src/rustDemangle.cpp:1756–1768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1754}
1755
1756static bool is_rust_hash(const char *s, size_t len) {
1757 if (len == 0 || s[0] != 'h') {
1758 return false;
1759 }
1760
1761 for (size_t i = 1; i < len; i++) {
1762 if (!((s[i] >= '0' && s[i] <= '9') || (s[i] >= 'a' && s[i] <= 'f') || (s[i] >= 'A' && s[i] <= 'F'))) {
1763 return false;
1764 }
1765 }
1766
1767 return true;
1768}
1769
1770NODISCARD static overflow_status rust_demangle_legacy_display_demangle(struct demangle_legacy res, char *out, size_t len, bool alternate)
1771{

Calls

no outgoing calls

Tested by

no test coverage detected