From c27c7f0f007188181c7839ab59f31cd99c935ab1 Mon Sep 17 00:00:00 2001 From: Rob Hague Date: Fri, 25 Jul 2025 15:48:48 +0100 Subject: [PATCH 1/2] Update docs on Rune.DecodeFromUtf8 This was updated in https://github.com/dotnet/runtime/pull/328/ --- xml/System.Text/Rune.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Text/Rune.xml b/xml/System.Text/Rune.xml index 10acdb37994..1b56091fe14 100644 --- a/xml/System.Text/Rune.xml +++ b/xml/System.Text/Rune.xml @@ -327,7 +327,7 @@ The general convention is to call this method in a loop, slicing the `source` bu if the source buffer begins with a valid UTF-8 encoded scalar value. then contains the decoded , and contains the number of values used in the input buffer to encode the . - if the source buffer is empty or contains only a standalone UTF-8 high surrogate character. then contains , and contains the length of the input buffer. + if the source buffer is empty or contains only a partial UTF-8 subsequence. then contains , and contains the length of the input buffer. if the source buffer begins with an ill-formed UTF-8 encoded scalar value. then contains , and contains the number of values used in the input buffer to encode the ill-formed sequence. . From c9b0cc19e313b07942a3d739edc703bb8cf79956 Mon Sep 17 00:00:00 2001 From: Rob Hague Date: Fri, 25 Jul 2025 16:03:27 +0100 Subject: [PATCH 2/2] also DecodeLastFromUtf8 --- xml/System.Text/Rune.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Text/Rune.xml b/xml/System.Text/Rune.xml index 1b56091fe14..610e69dc408 100644 --- a/xml/System.Text/Rune.xml +++ b/xml/System.Text/Rune.xml @@ -427,7 +427,7 @@ This method is very similar to if the source buffer ends with a valid UTF-8 encoded scalar value. then contains the decoded , and contains the number of values used in the input buffer to encode the . - if the source buffer is empty or contains only a standalone UTF-8 high surrogate character. then contains , and contains the length of the input buffer. + if the source buffer is empty or contains only a partial UTF-8 subsequence. then contains , and contains the length of the input buffer. if the source buffer ends with an ill-formed UTF-8 encoded scalar value. then contains , and contains the number of values used in the input buffer to encode the ill-formed sequence. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy