MCPcopy Create free account
hub / github.com/dirkvranckaert/AndroidDecompiler / sortOnLength

Function sortOnLength

astyle/src/ASResource.cpp:171–174  ·  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

169 * @params the string pointers to be compared.
170 */
171bool sortOnLength(const string* a, const string* b)
172{
173 return (*a).length() > (*b).length();
174}
175
176/**
177 * Sort comparison function.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected