Rune 구조체 (System.Text) Microsoft Learn
static void ProcessStringUseRune(string s) { Console.WriteLine( Using Rune ); for (int i = 0; i s.Length;) { if (!Rune.TryGetRuneAt(s, i, out Rune rune)) { throw new Exception( String was not well-formed UTF-16. ); } Console.WriteLine($ Code point: {rune.Value} ); i += rune.Utf16SequenceLength; // increment the iterator by the number of chars in this R...
learn.microsoft.com
没有更多结果了~
- 意见反馈
- 页面反馈