MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / ToString

Function ToString

source/util/string_utils.h:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29// Converts arithmetic value |val| to its default string representation.
30template <class T>
31std::string ToString(T val) {
32 static_assert(
33 std::is_arithmetic<T>::value,
34 "spvtools::utils::ToString is restricted to only arithmetic values");
35 std::stringstream os;
36 os << val;
37 return os.str();
38}
39
40// Converts cardinal number to ordinal number string.
41std::string CardinalToOrdinal(size_t cardinal);

Callers 6

CardinalToOrdinalFunction · 0.70
StrongSIVTestMethod · 0.50
WeakZeroSourceSIVTestMethod · 0.50

Calls 1

strMethod · 0.45

Tested by

no test coverage detected