mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 15:50:49 +01:00
[poincare] Clean Multiplication::createLayout
Change-Id: I7ac1da6c9b58a50bbc7fcd1703132237e140e91f
This commit is contained in:
@@ -31,17 +31,16 @@ Expression * Multiplication::clone() const {
|
||||
return new Multiplication(operands(), numberOfOperands(), true);
|
||||
}
|
||||
|
||||
static_assert('\x94' == Ion::Charset::MiddleDot, "Unicode error");
|
||||
ExpressionLayout * Multiplication::privateCreateLayout(FloatDisplayMode floatDisplayMode, ComplexFormat complexFormat) const {
|
||||
return LayoutEngine::createInfixLayout(this, floatDisplayMode, complexFormat, "\x94");
|
||||
const char middleDotString[] = {Ion::Charset::MiddleDot, 0};
|
||||
return LayoutEngine::createInfixLayout(this, floatDisplayMode, complexFormat, middleDotString);
|
||||
}
|
||||
|
||||
static_assert('\x93' == Ion::Charset::MultiplicationSign, "Unicode error");
|
||||
int Multiplication::writeTextInBuffer(char * buffer, int bufferSize) const {
|
||||
return LayoutEngine::writeInfixExpressionTextInBuffer(this, buffer, bufferSize, "\x93");
|
||||
const char multiplicationString[] = {Ion::Charset::MultiplicationSign, 0};
|
||||
return LayoutEngine::writeInfixExpressionTextInBuffer(this, buffer, bufferSize, multiplicationString);
|
||||
}
|
||||
|
||||
|
||||
Expression::Sign Multiplication::sign() const {
|
||||
int sign = 1;
|
||||
for (int i = 0; i < numberOfOperands(); i++) {
|
||||
|
||||
Reference in New Issue
Block a user