mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 17:20:53 +01:00
[escher/ion] Standard methods in UTF8Helper used in text_area
String manipulations need to be done using an UTF8 decoder, but some manipulations can be optimized if the code points we manipulate are only one char long. These optimizations are done inside UTF8Helper methods.
This commit is contained in:
@@ -50,7 +50,7 @@ Expression Equation::standardForm(Context * context) const {
|
||||
}
|
||||
|
||||
bool Equation::containsIComplex() const {
|
||||
return UTF8Helper::CodePointSearch(text(), UCodePointMathematicalBoldSmallI) != nullptr;
|
||||
return *(UTF8Helper::CodePointSearch(text(), UCodePointMathematicalBoldSmallI)) != 0;
|
||||
}
|
||||
|
||||
void Equation::tidyStandardForm() {
|
||||
|
||||
Reference in New Issue
Block a user