MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / getOrdinalText

Function getOrdinalText

lib/utils.h:196–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196inline static const char *getOrdinalText(int i)
197{
198 if (i == 1)
199 return "st";
200 if (i == 2)
201 return "nd";
202 if (i == 3)
203 return "rd";
204 return "th";
205}
206
207CPPCHECKLIB int caseInsensitiveStringCompare(const std::string& lhs, const std::string& rhs);
208

Callers 3

argumentSizeErrorMethod · 0.85
valueFlowSubFunctionFunction · 0.85
getErrorPathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected