MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / StringEquals

Function StringEquals

PanzerChasm/map_loader.cpp:62–73  ·  view source on GitHub ↗

Case-unsensitive strings equality-comparision

Source from the content-addressed store, hash-verified

60
61// Case-unsensitive strings equality-comparision
62static bool StringEquals( const char* const s0, const char* const s1 )
63{
64 unsigned int i= 0;
65 while( s0[i] != '\0' && s1[i] != '\0' )
66 {
67 if( std::tolower( s0[i] ) != std::tolower( s1[i] ) )
68 return false;
69 i++;
70 }
71
72 return std::tolower( s0[i] ) == std::tolower( s1[i] );
73}
74
75// Case-unsensitive substring search
76static const char* GetSubstring( const char* const search_where, const char* const search_what )

Callers 7

LinkTypeFromStringFunction · 0.70
ActionCommandFormStringFunction · 0.70
LoadLevelScriptsMethod · 0.70
LoadMessageMethod · 0.70
LoadProcedureMethod · 0.70
LoadLinksMethod · 0.70
LoadTeleportsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected