MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / Strncasecmp

Function Strncasecmp

common/StringUtil.h:59–66  ·  view source on GitHub ↗

Platform-independent strcasecmp

Source from the content-addressed store, hash-verified

57
58 /// Platform-independent strcasecmp
59 static inline int Strncasecmp(const char* s1, const char* s2, std::size_t n)
60 {
61#ifdef _MSC_VER
62 return _strnicmp(s1, s2, n);
63#else
64 return strncasecmp(s1, s2, n);
65#endif
66 }
67
68 /// Wrapper around std::from_chars
69 template <typename T>

Callers 9

lessThanMethod · 0.85
GetWrongCasePathFunction · 0.85
GetLoaderMethod · 0.85
FromCharsFunction · 0.85
StartsWithNoCaseFunction · 0.85
EndsWithNoCaseFunction · 0.85
compareNoCaseFunction · 0.85
GetFormatHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected