MCPcopy Create free account
hub / github.com/apache/trafficserver / strcmp

Function strcmp

lib/swoc/include/swoc/string_view_util.h:63–66  ·  view source on GitHub ↗

Compare views with ordering. * * @param lhs input view * @param rhs input view * @return The ordered comparison value. * * - -1 if @a lhs is less than @a rhs * - 1 if @a lhs is greater than @a rhs * - 0 if the views have identical content. * * If one view is the prefix of the other, the shorter view is less (first in the ordering). * * @note For string views, there is no difference b

Source from the content-addressed store, hash-verified

61 * @see memcmp
62 */
63inline int
64strcmp(const std::string_view &lhs, const std::string_view &rhs) {
65 return memcmp(lhs, rhs);
66}
67
68/** Copy bytes.
69 *

Callers 15

TSRemapDoRemapFunction · 0.85
TSRemapNewInstanceFunction · 0.85
CB_servernameFunction · 0.85
mainFunction · 0.85
lookup_addressFunction · 0.85
bind_helperFunction · 0.85
operator ==Method · 0.85
operator <Method · 0.85
remove_allFunction · 0.85
test_TextView.ccFile · 0.85
operator()Method · 0.85
sortMethod · 0.85

Calls 1

memcmpFunction · 0.70