MCPcopy Create free account
hub / github.com/Norbyte/ositools / StringCompare

Function StringCompare

OsiInterface/Functions/UtilityFunctions.cpp:19–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 }
18
19 bool StringCompare(OsiArgumentDesc & args)
20 {
21 auto a = args[0].String;
22 auto b = args[1].String;
23
24 int rel = strcmp(a, b);
25 if (rel < 0) {
26 args[2].Int32 = -1;
27 }
28 else if (rel == 0) {
29 args[2].Int32 = 0;
30 }
31 else {
32 args[2].Int32 = 1;
33 }
34
35 return true;
36 }
37
38 bool StringLength(OsiArgumentDesc & args)
39 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected