MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / unicodeSubscript

Method unicodeSubscript

qcustomplot/qcustomplot.cpp:6985–6997  ·  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

6983 fractions in \ref unicodeFraction.
6984*/
6985QString QCPAxisTickerPi::unicodeSubscript(int number) const
6986{
6987 if (number == 0)
6988 return QString(QChar(0x2080));
6989
6990 QString result;
6991 while (number > 0)
6992 {
6993 result.prepend(QChar(0x2080+number%10));
6994 number /= 10;
6995 }
6996 return result;
6997}
6998/* end of 'src/axis/axistickerpi.cpp' */
6999
7000

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected