[apps/poincare] Replace CharLayouts with CodePointLayouts

This commit is contained in:
Léa Saviot
2019-01-11 14:09:45 +01:00
committed by Émilie Feral
parent 3f56cb7041
commit f576e31ff1
45 changed files with 238 additions and 421 deletions

View File

@@ -1,6 +1,6 @@
#include "list_controller.h"
#include "app.h"
#include <poincare/char_layout.h>
#include <poincare/code_point_layout.h>
#include <assert.h>
using namespace Shared;
@@ -124,7 +124,7 @@ bool textRepresentsAnEquality(const char * text) {
bool layoutRepresentsAnEquality(Poincare::Layout l) {
Poincare::Layout match = l.recursivelyMatches(
[](Poincare::Layout layout) {
return layout.isChar() && static_cast<Poincare::CharLayout &>(layout).character() == '='; });
return layout.isCodePoint() && static_cast<Poincare::CodePointLayout &>(layout).codePoint() == '='; });
return !match.isUninitialized();
}