You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System/String.xml
+10-28Lines changed: 10 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -11756,24 +11756,15 @@ Because this method returns the modified string, you can chain together successi
11756
11756
11757
11757
## Remarks
11758
11758
11759
-
This method searches for all newline sequences within the string and canonicalizes them to match
11760
-
the newline sequence for the current environment. For example, when running on Windows, all
11761
-
occurrences of non-Windows newline sequences will be replaced with the sequence CRLF. When
11762
-
running on Unix, all occurrences of non-Unix newline sequences will be replaced with
11763
-
a single LF character.
11759
+
This method searches for all newline sequences within the string and canonicalizes them to match the newline sequence for the current environment. For example, when running on Windows, all occurrences of non-Windows newline sequences will be replaced with the sequence CRLF. When running on Unix, all occurrences of non-Unix newline sequences will be replaced with a single LF character.
11764
11760
11765
-
It is not recommended that protocol parsers utilize this API. Protocol specifications often
11766
-
mandate specific newline sequences. For example, HTTP/1.1 (RFC 8615) mandates that the request
11767
-
line, status line, and headers lines end with CRLF. Since this API operates over a wide range
11768
-
of newline sequences, a protocol parser utilizing this API could exhibit behaviors unintended
11769
-
by the protocol's authors.
11761
+
It is not recommended that protocol parsers utilize this API. Protocol specifications often mandate specific newline sequences. For example, HTTP/1.1 (RFC 8615) mandates that the request line, status line, and headers lines end with CRLF. Since this API operates over a wide range of newline sequences, a protocol parser utilizing this API could exhibit behaviors unintended by the protocol's authors.
11770
11762
11771
-
This overload is equivalent to calling <xref:System.String.ReplaceLineEndings(System.String)>, passing
11772
-
<xref:System.Environment.NewLine> as the <em>replacementText</em> parameter.
11763
+
This overload is equivalent to calling <xref:System.String.ReplaceLineEndings(System.String)>, passing <xref:System.Environment.NewLine> as the <em>replacementText</em> parameter.
11773
11764
11774
-
This method is guaranteed O(n) complexity, where <em>n</em> is the length of the input string.
11765
+
This method is guaranteed O(n) complexity, where <em>n</em> is the length of the input string.
11775
11766
11776
-
]]></format>
11767
+
]]></format>
11777
11768
</remarks>
11778
11769
</Docs>
11779
11770
</Member>
@@ -11811,24 +11802,15 @@ This method searches for all newline sequences within the string and canonicaliz
11811
11802
11812
11803
## Remarks
11813
11804
11814
-
This method searches for all newline sequences within the string and canonicalizes them to the
11815
-
newline sequence provided by `replacementText`. If `replacementText`
11816
-
is <xref:System.String.Empty>, all newline sequences within the string will be removed.
11805
+
This method searches for all newline sequences within the string and canonicalizes them to the newline sequence provided by `replacementText`. If `replacementText` is <xref:System.String.Empty>, all newline sequences within the string will be removed.
11817
11806
11818
-
It is not recommended that protocol parsers utilize this API. Protocol specifications often
11819
-
mandate specific newline sequences. For example, HTTP/1.1 (RFC 8615) mandates that the request
11820
-
line, status line, and headers lines end with CRLF. Since this API operates over a wide range
11821
-
of newline sequences, a protocol parser utilizing this API could exhibit behaviors unintended
11822
-
by the protocol's authors.
11807
+
It is not recommended that protocol parsers utilize this API. Protocol specifications often mandate specific newline sequences. For example, HTTP/1.1 (RFC 8615) mandates that the request line, status line, and headers lines end with CRLF. Since this API operates over a wide range of newline sequences, a protocol parser utilizing this API could exhibit behaviors unintended by the protocol's authors.
11823
11808
11824
-
The list of recognized newline sequences is CR (U+000D), LF (U+000A), CRLF (U+000D U+000A),
11825
-
NEL (U+0085), LS (U+2028), FF (U+000C), and PS (U+2029). This list is given by the Unicode
11826
-
Standard, Sec. 5.8, Recommendation R4 and Table 5-2.
11809
+
The list of recognized newline sequences is CR (U+000D), LF (U+000A), CRLF (U+000D U+000A), NEL (U+0085), LS (U+2028), FF (U+000C), and PS (U+2029). This list is given by the Unicode Standard, Sec. 5.8, Recommendation R4 and Table 5-2.
11827
11810
11828
-
This method is guaranteed O(n * r) complexity, where <em>n</em> is the length of the input string,
11829
-
and where <em>r</em> is the length of `replacementText`.
11811
+
This method is guaranteed O(n * r) complexity, where <em>n</em> is the length of the input string, and where <em>r</em> is the length of `replacementText`.
0 commit comments