| 4 | namespace AlphaTab.Core.EcmaScript; |
| 5 | |
| 6 | internal static class String |
| 7 | { |
| 8 | public static string FromCharCode(double code) |
| 9 | { |
| 10 | return "" + (char)(int)code; |
| 11 | } |
| 12 | |
| 13 | public static string FromCodePoint(double code) |
| 14 | { |
| 15 | return char.ConvertFromUtf32((int)code); |
| 16 | } |
| 17 | |
| 18 | public static string FromCodePoint(IList<double> codes) |
| 19 | { |
| 20 | return string.Concat(codes.Select(c => char.ConvertFromUtf32((int)c)).ToArray()); |
| 21 | } |
| 22 | } |
no outgoing calls