mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[poincare] Rename RightArrow -> RightwardsArrow
This commit is contained in:
@@ -124,7 +124,7 @@ poincare_src += $(addprefix poincare/src/,\
|
||||
random.cpp \
|
||||
rational.cpp \
|
||||
real_part.cpp \
|
||||
right_arrow_expression.cpp \
|
||||
rightwards_arrow_expression.cpp \
|
||||
round.cpp \
|
||||
sequence.cpp \
|
||||
serialization_helper.cpp \
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#ifndef POINCARE_RIGHT_ARROW_EXPRESSION_H
|
||||
#define POINCARE_RIGHT_ARROW_EXPRESSION_H
|
||||
#ifndef POINCARE_RIGHTWARDS_ARROW_EXPRESSION_H
|
||||
#define POINCARE_RIGHTWARDS_ARROW_EXPRESSION_H
|
||||
|
||||
#include <poincare/expression.h>
|
||||
#include <poincare/symbol_abstract.h>
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
namespace Poincare {
|
||||
|
||||
class RightArrowExpressionNode : public ExpressionNode {
|
||||
class RightwardsArrowExpressionNode : public ExpressionNode {
|
||||
public:
|
||||
// TreeNode
|
||||
int numberOfChildren() const override { return 2; }
|
||||
@@ -1,13 +1,13 @@
|
||||
#ifndef POINCARE_STORE_H
|
||||
#define POINCARE_STORE_H
|
||||
|
||||
#include <poincare/right_arrow_expression.h>
|
||||
#include <poincare/rightwards_arrow_expression.h>
|
||||
#include <poincare/symbol_abstract.h>
|
||||
#include <poincare/evaluation.h>
|
||||
|
||||
namespace Poincare {
|
||||
|
||||
class StoreNode /*final*/ : public RightArrowExpressionNode {
|
||||
class StoreNode /*final*/ : public RightwardsArrowExpressionNode {
|
||||
public:
|
||||
// TreeNode
|
||||
size_t size() const override { return sizeof(StoreNode); }
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#ifndef POINCARE_UNIT_CONVERT_H
|
||||
#define POINCARE_UNIT_CONVERT_H
|
||||
|
||||
#include <poincare/right_arrow_expression.h>
|
||||
#include <poincare/rightwards_arrow_expression.h>
|
||||
#include <poincare/unit.h>
|
||||
#include <poincare/evaluation.h>
|
||||
|
||||
namespace Poincare {
|
||||
|
||||
class UnitConvertNode /*final*/ : public RightArrowExpressionNode {
|
||||
class UnitConvertNode /*final*/ : public RightwardsArrowExpressionNode {
|
||||
public:
|
||||
// TreeNode
|
||||
size_t size() const override { return sizeof(UnitConvertNode); }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <poincare/right_arrow_expression.h>
|
||||
#include <poincare/rightwards_arrow_expression.h>
|
||||
#include <poincare/code_point_layout.h>
|
||||
#include <poincare/horizontal_layout.h>
|
||||
#include <poincare/serialization_helper.h>
|
||||
@@ -6,14 +6,14 @@
|
||||
|
||||
namespace Poincare {
|
||||
|
||||
int RightArrowExpressionNode::serialize(char * buffer, int bufferSize, Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const {
|
||||
int RightwardsArrowExpressionNode::serialize(char * buffer, int bufferSize, Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const {
|
||||
constexpr int stringMaxSize = CodePoint::MaxCodePointCharLength + 1;
|
||||
char string[stringMaxSize];
|
||||
SerializationHelper::CodePoint(string, stringMaxSize, UCodePointRightwardsArrow);
|
||||
return SerializationHelper::Infix(this, buffer, bufferSize, floatDisplayMode, numberOfSignificantDigits, string);
|
||||
}
|
||||
|
||||
Layout RightArrowExpressionNode::createLayout(Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const {
|
||||
Layout RightwardsArrowExpressionNode::createLayout(Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const {
|
||||
HorizontalLayout result = HorizontalLayout::Builder();
|
||||
result.addOrMergeChildAtIndex(childAtIndex(0)->createLayout(floatDisplayMode, numberOfSignificantDigits), 0, false);
|
||||
result.addChildAtIndex(CodePointLayout::Builder(UCodePointRightwardsArrow), result.numberOfChildren(), result.numberOfChildren(), nullptr);
|
||||
Reference in New Issue
Block a user