MCPcopy Create free account
hub / github.com/numpy/numpy / character_cmp

Function character_cmp

numpy/core/src/umath/string_ufuncs.cpp:19–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17
18template <typename character>
19static inline int
20character_cmp(character a, character b)
21{
22 if (a == b) {
23 return 0;
24 }
25 else if (a < b) {
26 return -1;
27 }
28 else {
29 return 1;
30 }
31}
32
33
34/*

Callers 1

string_cmpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected