Based on allowing Unicode strings in Modelica Language MO#3079
We should ideally also support that in MSL, as far as I can see there are two major issues:
Notes:
- The code in ModelicaStrings.c uses proper casts to
(unsigned char) for isalpha etc, so it should work.
- Thus using
Modelica.Utilities.Strings.scanToken("\"€2ÅÄÖ\""); does actually work already.
- If the intended use is to produce good text-tables of results and substrings are used for alignment/truncating it will fail miserably for Unicode and one would need significantly more advanced string-handling. Merely counting Unicode-characters isn't enough due to combining characters. A good work-around is to generate HTML-tables instead.
Based on allowing Unicode strings in Modelica Language MO#3079
We should ideally also support that in MSL, as far as I can see there are two major issues:
Notes:
(unsigned char)forisalphaetc, so it should work.Modelica.Utilities.Strings.scanToken("\"€2ÅÄÖ\"");does actually work already.