[unicode] Use the UTF8Decoder to scan const char *

This commit is contained in:
Léa Saviot
2019-01-16 17:03:30 +01:00
committed by Émilie Feral
parent 65e5adafac
commit 41afa92f10
14 changed files with 189 additions and 65 deletions

View File

@@ -1,9 +1,9 @@
#include "equation.h"
#include <poincare/equal.h>
#include <poincare/undefined.h>
#include <poincare/unreal.h>
#include <poincare/rational.h>
#include <kandinsky/unicode/utf8_helper.h>
using namespace Poincare;
@@ -50,7 +50,7 @@ Expression Equation::standardForm(Context * context) const {
}
bool Equation::containsIComplex() const {
return false; //TODO LEA strchr(text(), KDCodePointMathematicalBoldSmallI) != nullptr;
return UTF8Helper::CodePointSearch(text(), KDCodePointMathematicalBoldSmallI) != nullptr;
}
void Equation::tidyStandardForm() {