MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / compare

Function compare

include/hxString.h:267–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265 int compare(const ::String &inRHS) const;
266 #else
267 inline int compare(const ::String &inRHS) const
268 {
269 const char *r = inRHS.__s;
270 if (__s == r) return inRHS.length-length;
271 if (__s==0) return -1;
272 if (r==0) return 1;
273
274 return strcmp(__s,r);
275 //return memcmp(__s,r,length);
276 }
277 #endif
278
279

Callers 9

notNullMethod · 0.85
scompareMethod · 0.85
convertMethod · 0.85
genVariantValueTemp0Method · 0.85
checkExceptionMethod · 0.85
operator<Function · 0.85
operator<=Function · 0.85
operator>Function · 0.85
operator>=Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected