Page MenuHomeFeedback Tracker

UTF String support missing GetRune and ToUTF() or equivalent functions
Assigned, UrgentPublic

Description

Equivalent UTF8 functions for strings appear to be missing. For example: a plain ascii string we can perform the following to obtain the char value of each char of a string.

for (int j = 0; j < str.Length(); j++) {
    int c = str[j].ToAscii();
    Print(c);
}

However, there appears no equivalent for a Unicode string which would look similar to:

for (int j = 0; j < str.LengthUtf8(); j++) {
    int c = str.GetRune(j).ToUtf8();
    Print(c);
}

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General

Event Timeline

antihax created this task.Jul 29 2023, 3:22 PM
Geez changed the task status from New to Assigned.Jul 31 2023, 11:14 AM