[unicode] Use unicode when dealing with chars - Part 2

This commit is contained in:
Léa Saviot
2019-01-29 16:51:28 +01:00
committed by Émilie Feral
parent ac5311d257
commit 4c5251f04f
20 changed files with 186 additions and 127 deletions

View File

@@ -6,6 +6,7 @@
#include <assert.h>
#include <escher/buffer_text_view.h>
#include <escher/palette.h>
#include <ion/unicode/utf8_helper.h>
#include <string.h>
namespace Code {
@@ -41,7 +42,7 @@ static bool shouldAddObject(const char * name, int maxLength) {
return false;
}
assert(name != nullptr);
if (name[0] == '_') {
if (UTF8Helper::CodePointIs(name, '_')) {
return false;
}
return true;