MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / sortOnLength

Function sortOnLength

other_src/astyle/src/ASResource.cpp:166–169  ·  view source on GitHub ↗

* Sort comparison function. * Compares the length of the value of pointers in the vectors. * The LONGEST strings will be first in the vector. * * @params the string pointers to be compared. */

Source from the content-addressed store, hash-verified

164 * @params the string pointers to be compared.
165 */
166bool sortOnLength(const string* a, const string* b)
167{
168 return (*a).length() > (*b).length();
169}
170
171/**
172 * Sort comparison function.

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected