MCPcopy Create free account
hub / github.com/cinder/Cinder / compare

Function compare

include/rapidxml/rapidxml.hpp:320–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318 // Compare strings for equality
319 template<class Ch>
320 inline bool compare(const Ch *p1, std::size_t size1, const Ch *p2, std::size_t size2, bool case_sensitive)
321 {
322 if (size1 != size2)
323 return false;
324 if (case_sensitive)
325 {
326 for (const Ch *end = p1 + size1; p1 < end; ++p1, ++p2)
327 if (*p1 != *p2)
328 return false;
329 }
330 else
331 {
332 for (const Ch *end = p1 + size1; p1 < end; ++p1, ++p2)
333 if (lookup_tables<0>::lookup_upcase[static_cast<unsigned char>(*p1)] != lookup_tables<0>::lookup_upcase[static_cast<unsigned char>(*p2)])
334 return false;
335 }
336 return true;
337 }
338 }
339 //! \endcond
340

Callers 11

FTC_MruList_FindFunction · 0.85
FTC_Cache_LookupFunction · 0.85
previous_attributeMethod · 0.85
next_attributeMethod · 0.85
first_nodeMethod · 0.85
last_nodeMethod · 0.85
previous_siblingMethod · 0.85
next_siblingMethod · 0.85
first_attributeMethod · 0.85
last_attributeMethod · 0.85
parse_node_contentsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected