Steppable 0.0.1
A CAS project written from scratch in C++
Loading...
Searching...
No Matches
steppable::__internals::symbols Namespace Reference

The namespace containing various unicode symbols. More...

Functions

std::string makeSubscript (const std::string &normal)
 Create a subscript string from a normal string.
 
std::string makeSubscript (int normal)
 Create a subscript string from a normal integer.
 
std::string makeSuperscript (const std::string &normal)
 Create a superscript string from a normal string.
 
std::string makeSuperscript (char normal)
 Create a superscript string from a normal character.
 
std::string makeSurd (const std::string &radicand)
 Makes a surd expression from a radicand.
 

Variables

const std::array< std::string, 10 > & SUPERSCRIPTS
 A list of subscript characters.
 
constexpr std::string_view BECAUSE = "\u2235"
 The because symbol (3 dots in a triangle, Unicode U+2235)
 
constexpr std::string_view THEREFORE = "\u2234"
 The therefore symbol (3 dots in a triangle, Unicode U+2234)
 
constexpr std::string_view MULTIPLY = "\u00D7"
 The multiply symbol (Unicode U+00D7)
 
constexpr std::string_view DIVIDED_BY = "\u00F7"
 The divide symbol (Unicode U+00F7)
 
constexpr std::string_view SURD = "\u221A"
 
constexpr std::string_view COMBINE_MACRON = "\u0305"
 
constexpr std::string_view LARGE_DOT = "\u25C9"
 The large dot symbol (Unicode U+25C9)
 
constexpr std::string_view ABOVE_DOT = "\u02D9"
 
constexpr std::string_view SUB_0 = "\u2080"
 The subscript 0 (Unicode U+2080)
 
constexpr std::string_view SUB_Z = "\u1D69"
 The subscript z (Unicode U+2098)
 
constexpr int SUB_MAGIC_NUMBER = 8272
 The subscript magic number (8272)
 
constexpr std::string_view SUP_0 = "\u2070"
 The superscript 0 (Unicode U+2070)
 
constexpr std::string_view SUP_Z = "\u1DBB"
 The superscript z (Unicode U+1DBB)
 
constexpr int SUP_MAGIC_NUMBER = 8304
 The superscript magic number (8304)
 

Detailed Description

The namespace containing various unicode symbols.

Deprecated
This namespace is deprecated and will be removed in the future, as the unicode output is not flexible enough.
Warning
Usage of this namespace is strongly discouraged. Use the steppable::prettyPrint namespace for basic tools, and implement yours in steppable::prettyPrint::printers.

Function Documentation

◆ makeSubscript() [1/2]

std::string steppable::__internals::symbols::makeSubscript ( const std::string & normal)

Create a subscript string from a normal string.

Parameters
[in]normalThe normal string.
Returns
The subscript string.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeSubscript() [2/2]

std::string steppable::__internals::symbols::makeSubscript ( int normal)

Create a subscript string from a normal integer.

Parameters
[in]normalThe normal integer.
Returns
The subscript string.
Here is the call graph for this function:

◆ makeSuperscript() [1/2]

std::string steppable::__internals::symbols::makeSuperscript ( char normal)

Create a superscript string from a normal character.

Parameters
[in]normalThe normal character.
Returns
The superscript string.
Here is the call graph for this function:

◆ makeSuperscript() [2/2]

std::string steppable::__internals::symbols::makeSuperscript ( const std::string & normal)

Create a superscript string from a normal string.

Parameters
[in]normalThe normal string.
Returns
The superscript string.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeSurd()

std::string steppable::__internals::symbols::makeSurd ( const std::string & radicand)

Makes a surd expression from a radicand.

Parameters
radicandThe radicand.
Returns
The surd expression.
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ ABOVE_DOT

std::string_view steppable::__internals::symbols::ABOVE_DOT = "\u02D9"
constexpr

◆ BECAUSE

std::string_view steppable::__internals::symbols::BECAUSE = "\u2235"
constexpr

The because symbol (3 dots in a triangle, Unicode U+2235)

◆ COMBINE_MACRON

std::string_view steppable::__internals::symbols::COMBINE_MACRON = "\u0305"
constexpr

◆ DIVIDED_BY

std::string_view steppable::__internals::symbols::DIVIDED_BY = "\u00F7"
constexpr

The divide symbol (Unicode U+00F7)

◆ LARGE_DOT

std::string_view steppable::__internals::symbols::LARGE_DOT = "\u25C9"
constexpr

The large dot symbol (Unicode U+25C9)

◆ MULTIPLY

std::string_view steppable::__internals::symbols::MULTIPLY = "\u00D7"
constexpr

The multiply symbol (Unicode U+00D7)

◆ SUB_0

std::string_view steppable::__internals::symbols::SUB_0 = "\u2080"
constexpr

The subscript 0 (Unicode U+2080)

Note
This is used to check if a subscript is converted correctly, do not use this in the program.

◆ SUB_MAGIC_NUMBER

int steppable::__internals::symbols::SUB_MAGIC_NUMBER = 8272
constexpr

The subscript magic number (8272)

Note
This is used to check if a subscript is converted correctly, do not use this in the program.

◆ SUB_Z

std::string_view steppable::__internals::symbols::SUB_Z = "\u1D69"
constexpr

The subscript z (Unicode U+2098)

Note
This is used to check if a subscript is converted correctly, do not use this in the program.

◆ SUP_0

std::string_view steppable::__internals::symbols::SUP_0 = "\u2070"
constexpr

The superscript 0 (Unicode U+2070)

Note
This is used to check if a superscript is converted correctly, do not use this in the program.

◆ SUP_MAGIC_NUMBER

int steppable::__internals::symbols::SUP_MAGIC_NUMBER = 8304
constexpr

The superscript magic number (8304)

Note
This is used to check if a superscript is converted correctly, do not use this in the program.

◆ SUP_Z

std::string_view steppable::__internals::symbols::SUP_Z = "\u1DBB"
constexpr

The superscript z (Unicode U+1DBB)

Note
This is used to check if a superscript is converted correctly, do not use this in the program.

◆ SUPERSCRIPTS

const std::array< std::string, 10 > & steppable::__internals::symbols::SUPERSCRIPTS
Initial value:
= { "\u2070", "\u00b9", "\u00b2", "\u00b3", "\u2074",
"\u2075", "\u2076", "\u2077", "\u2078", "\u2079" }

A list of subscript characters.

◆ SURD

std::string_view steppable::__internals::symbols::SURD = "\u221A"
constexpr

◆ THEREFORE

std::string_view steppable::__internals::symbols::THEREFORE = "\u2234"
constexpr

The therefore symbol (3 dots in a triangle, Unicode U+2234)

Untitled