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

Function PyArray_CompareUCS4

numpy/core/src/multiarray/arrayobject.c:566–578  ·  view source on GitHub ↗

NUMPY_API */

Source from the content-addressed store, hash-verified

564/*NUMPY_API
565 */
566NPY_NO_EXPORT int
567PyArray_CompareUCS4(npy_ucs4 const *s1, npy_ucs4 const *s2, size_t len)
568{
569 npy_ucs4 c1, c2;
570 while(len-- > 0) {
571 c1 = *s1++;
572 c2 = *s2++;
573 if (c1 != c2) {
574 return (c1 < c2) ? -1 : 1;
575 }
576 }
577 return 0;
578}
579
580/*NUMPY_API
581 */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected