MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / printDigits

Function printDigits

JUCE/modules/juce_core/text/juce_String.cpp:387–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385
386 template <typename Type>
387 static char* printDigits (char* t, Type v) noexcept
388 {
389 *--t = 0;
390
391 do
392 {
393 *--t = static_cast<char> ('0' + (char) (v % 10));
394 v /= 10;
395
396 } while (v > 0);
397
398 return t;
399 }
400
401 // pass in a pointer to the END of a buffer..
402 static char* numberToString (char* t, int64 n) noexcept

Callers 1

numberToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected