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

Function createFromInteger

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

Source from the content-addressed store, hash-verified

485
486 template <typename IntegerType>
487 static String::CharPointerType createFromInteger (IntegerType number)
488 {
489 char buffer [charsNeededForInt];
490 auto* end = buffer + numElementsInArray (buffer);
491 auto* start = numberToString (end, number);
492 return StringHolder::createFromFixedLength (start, (size_t) (end - start - 1));
493 }
494
495 static String::CharPointerType createFromDouble (double number, int numberOfDecimalPlaces, bool useScientificNotation)
496 {

Callers 1

StringMethod · 0.85

Calls 2

numElementsInArrayFunction · 0.85
numberToStringFunction · 0.85

Tested by

no test coverage detected