Skip to content

Initial docs for StringRuneEnumerator and SpanRuneEnumerator #2821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 6, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions xml/System.Text/SpanRuneEnumerator.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,16 @@
</Attribute>
</Attributes>
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
<summary>Provides an enumerator for the <see cref="T:System.Text.Rune" /> values represented by a span containing UTF-16 text.</summary>
<remarks>
<format type="text/markdown"><![CDATA[

This type is not intended to be referenced directly by application code. Instead, use the <xref:System.MemoryExtensions.EnumerateRunes> method along with language-specific enumeration constructs to enumerate <xref:System.Text.Rune> values within spans.

The C# [foreach](~/docs/csharp/language-reference/keywords/foreach-in.md) of the C# language and the [For Each...Next](~/docs/visual-basic/language-reference/statements/for-each-next-statement.md) construct in Visual Basic hides the complexity of enumerators. Instead of directly manipulating the enumerator, using `foreach` or `For Each...Next` is recommended.

]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName="Current">
Expand All @@ -39,9 +47,8 @@
<ReturnType>System.Text.Rune</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
<summary>Gets the <see cref="T:System.Text.Rune" /> at the current position of the enumerator.</summary>
<value>The <see cref="T:System.Text.Rune" /> at the current position of the enumerator.</value>
</Docs>
</Member>
<Member MemberName="GetEnumerator">
Expand All @@ -61,9 +68,8 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<summary>Returns the current enumerator instance.</summary>
<returns>The current enumerator instance.</returns>
</Docs>
</Member>
<Member MemberName="MoveNext">
Expand All @@ -83,9 +89,8 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<summary>Advances the enumerator to the next <see cref="T:System.Text.Rune" /> of the span.</summary>
<returns>`true` if the enumerator successfully advanced to the next item; `false` if the end of the span has been reached.</returns>
</Docs>
</Member>
</Members>
Expand Down
49 changes: 25 additions & 24 deletions xml/System.Text/StringRuneEnumerator.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,16 @@
</Interface>
</Interfaces>
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
<summary>Provides an enumerator for the <see cref="T:System.Text.Rune" /> values represented by a <see cref="T:System.String" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[

This type is not intended to be referenced directly by application code. Instead, use the <xref:System.String.EnumerateRunes> method along with language-specific enumeration constructs to enumerate <xref:System.Text.Rune> values within strings.

The C# [foreach](~/docs/csharp/language-reference/keywords/foreach-in.md) of the C# language and the [For Each...Next](~/docs/visual-basic/language-reference/statements/for-each-next-statement.md) construct in Visual Basic hides the complexity of enumerators. Instead of directly manipulating the enumerator, using `foreach` or `For Each...Next` is recommended.

]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName="Current">
Expand All @@ -53,9 +61,8 @@
<ReturnType>System.Text.Rune</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
<summary>Gets the <see cref="T:System.Text.Rune" /> at the current position of the enumerator.</summary>
<value>The <see cref="T:System.Text.Rune" /> at the current position of the enumerator.</value>
</Docs>
</Member>
<Member MemberName="GetEnumerator">
Expand All @@ -75,9 +82,8 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<summary>Returns the current enumerator instance.</summary>
<returns>The current enumerator instance.</returns>
</Docs>
</Member>
<Member MemberName="MoveNext">
Expand All @@ -100,9 +106,8 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<summary>Advances the enumerator to the next <see cref="T:System.Text.Rune" /> of the string.</summary>
<returns>`true` if the enumerator successfully advanced to the next item; `false` if the end of the string has been reached.</returns>
</Docs>
</Member>
<Member MemberName="System.Collections.Generic.IEnumerable&lt;System.Text.Rune&gt;.GetEnumerator">
Expand All @@ -124,9 +129,8 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<summary>Returns the current enumerator instance.</summary>
<returns>The current enumerator instance.</returns>
</Docs>
</Member>
<Member MemberName="System.Collections.IEnumerable.GetEnumerator">
Expand All @@ -148,9 +152,8 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<summary>Returns the current enumerator instance.</summary>
<returns>The current enumerator instance.</returns>
</Docs>
</Member>
<Member MemberName="System.Collections.IEnumerator.Current">
Expand All @@ -172,9 +175,8 @@
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
<summary>Gets the <see cref="T:System.Text.Rune" /> at the current position of the enumerator.</summary>
<value>The <see cref="T:System.Text.Rune" /> at the current position of the enumerator.</value>
</Docs>
</Member>
<Member MemberName="System.Collections.IEnumerator.Reset">
Expand All @@ -196,8 +198,7 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
<summary>Resets the current <see cref="T:System.Text.StringRuneEnumerator" /> instance to the beginning of the string.</summary>
</Docs>
</Member>
<Member MemberName="System.IDisposable.Dispose">
Expand All @@ -219,8 +220,8 @@
</ReturnValue>
<Parameters />
<Docs>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
<summary>Releases all resources used by the current <see cref="T:System.Text.StringRuneEnumerator" /> instance.</summary>
<remarks>This method performs no operation and produces no side effects.</remarks>
</Docs>
</Member>
</Members>
Expand Down