From d1f224ae0f6dd20082198b3da15f3d35deda8574 Mon Sep 17 00:00:00 2001 From: Tom Dykstra Date: Fri, 8 May 2020 18:54:48 -0700 Subject: [PATCH] feedback from PR 4206 --- xml/System/String.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xml/System/String.xml b/xml/System/String.xml index 5b3007854c7..5e4e4bca6b2 100644 --- a/xml/System/String.xml +++ b/xml/System/String.xml @@ -98,7 +98,7 @@ A string is a sequential collection of characters that is used to represent text. A object is a sequential collection of objects that represent a string; a object corresponds to a UTF-16 code unit. The value of the object is the content of the sequential collection of objects, and that value is immutable (that is, it is read-only). For more information about the immutability of strings, see the [Immutability and the StringBuilder class](#Immutability) section later in this topic. The maximum size of a object in memory is 2GB, or about 1 billion characters. -For more information about Unicode, UTF-16, code units, code points, and the and types, see [Introduction to character encoding in .NET](/dotnet/standard/base-types/character-encoding-introduction). +For more information about Unicode, UTF-16, code units, code points, and the and types, see [Introduction to character encoding in .NET](~/docs/dotnet/standard/base-types/character-encoding-introduction.md). In this section: @@ -216,7 +216,7 @@ For more information about Unicode, UTF-16, code units, code points, and the object. In particular, a string may contain multi-character units of text that are formed by a base character followed by one or more combining characters or by surrogate pairs. To work with Unicode characters instead of objects, use the and classes, or the method and the type. The following example illustrates the difference between code that works with objects and code that works with Unicode characters. It compares the number of characters or text elements in each word of a sentence. The string includes two sequences of a base character followed by a combining character. + Consecutive index values might not correspond to consecutive Unicode characters, because a Unicode character might be encoded as more than one object. In particular, a string may contain multi-character units of text that are formed by a base character followed by one or more combining characters or by surrogate pairs. To work with Unicode characters instead of objects, use the and classes, or the method and the struct. The following example illustrates the difference between code that works with objects and code that works with Unicode characters. It compares the number of characters or text elements in each word of a sentence. The string includes two sequences of a base character followed by a combining character. [!code-cpp[System.String.Class#6](~/samples/snippets/cpp/VS_Snippets_CLR_System/system.String.Class/cpp/string.index3.cpp#6)] [!code-csharp-interactive[System.String.Class#6](~/samples/snippets/csharp/VS_Snippets_CLR_System/system.String.Class/cs/index3.cs#6)] @@ -224,7 +224,7 @@ For more information about Unicode, UTF-16, code units, code points, and the method and the class to enumerate all the text elements in a string. You can also retrieve an array that contains the starting index of each text element by calling the method. - For more information about working with units of text rather than individual values, see [Introduction to character encoding in .NET](/dotnet/standard/base-types/character-encoding-introduction). + For more information about working with units of text rather than individual values, see [Introduction to character encoding in .NET](~/docs/dotnet/standard/base-types/character-encoding-introduction.md). ## Null strings and empty strings