MCPcopy Create free account
hub / github.com/OpenMC2/OpenMC2 / compare_paths

Function compare_paths

src/Archive.cpp:106–114  ·  view source on GitHub ↗

mc2: 0x005FC830 (a = eax, b = edx)

Source from the content-addressed store, hash-verified

104
105// mc2: 0x005FC830 (a = eax, b = edx)
106static bool compare_paths(const char *a, const char *b) {
107 for (; ; ++a, ++b) {
108 char x = *a == '\\' ? '/' : std::tolower(*a);
109 char y = *a == '\\' ? '/' : std::tolower(*b);
110 if (x < y) return true;
111 if (y < x) return false;
112 if (x == '\0') return false;
113 }
114}
115
116static void sub_5FCF50(std::uint32_t *a, std::uint32_t *b, std::uint32_t *esi) {
117 std::uint32_t edx = a[0], ecx = a[1];

Callers 1

sub_5FD3A0Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected