mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[unicode] Use unicode when dealing with chars - Part 2
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "code_icon.h"
|
||||
#include <apps/i18n.h>
|
||||
#include "helpers.h"
|
||||
#include <ion/unicode/utf8_helper.h>
|
||||
|
||||
namespace Code {
|
||||
|
||||
@@ -47,7 +48,7 @@ bool App::Snapshot::lockOnConsole() const {
|
||||
void App::Snapshot::setOpt(const char * name, char * value) {
|
||||
if (strcmp(name, "script") == 0) {
|
||||
m_scriptStore.deleteAllScripts();
|
||||
char * separator = strchr(value, ':');
|
||||
char * separator = const_cast<char *>(UTF8Helper::CodePointSearch(value, ':'));
|
||||
if (!separator) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user