MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / unicodeSubscript

Method unicodeSubscript

3rdparty/qcustomplot/qcustomplot.cpp:7676–7688  ·  view source on GitHub ↗

! \internal Returns the unicode string representing \a number as subscript. This is used to build unicode fractions in \ref unicodeFraction. */

Source from the content-addressed store, hash-verified

7674 fractions in \ref unicodeFraction.
7675*/
7676QString QCPAxisTickerPi::unicodeSubscript(int number) const
7677{
7678 if (number == 0)
7679 return QString(QChar(0x2080));
7680
7681 QString result;
7682 while (number > 0)
7683 {
7684 result.prepend(QChar(0x2080+number%10));
7685 number /= 10;
7686 }
7687 return result;
7688}
7689/* end of 'src/axis/axistickerpi.cpp' */
7690
7691

Callers

nothing calls this directly

Calls 1

QStringClass · 0.50

Tested by

no test coverage detected