Skip to content

Commit

Permalink
Minor code edits
Browse files Browse the repository at this point in the history
  • Loading branch information
peteroupc committed Jan 16, 2025
1 parent e4444fa commit 1ab6d10
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions CBOR/PeterO/Cbor/CharacterReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public CharacterReader(string str) : this(str, false, false) {
// string.</param>
// <param name='skipByteOrderMark'>If true and the first character in
// the string is U+FEFF, skip that character.</param>
// <exception cref='ArgumentNullException'>The parameter <paramref
// <exception cref="ArgumentNullException">The parameter <paramref
// name='str'/> is null.</exception>
public CharacterReader(string str, bool skipByteOrderMark)
: this(str, skipByteOrderMark, false) {
Expand All @@ -52,7 +52,7 @@ public CharacterReader(string str, bool skipByteOrderMark)
// <param name='errorThrow'>When encountering invalid encoding, throw
// an exception if this parameter is true, or replace it with U+FFFD
// (replacement character) if this parameter is false.</param>
// <exception cref='ArgumentNullException'>The parameter <paramref
// <exception cref="ArgumentNullException">The parameter <paramref
// name='str'/> is null.</exception>
public CharacterReader(
string str,
Expand Down Expand Up @@ -80,12 +80,12 @@ public CharacterReader(
// <param name='length'>The length, in code units, of the desired
// portion of <paramref name='str'/> (but not more than <paramref
// name='str'/> 's length).</param>
// <exception cref='ArgumentException'>Either &#x22;offset&#x22; or
// <exception cref="ArgumentException">Either &#x22;offset&#x22; or
// &#x22;length&#x22; is less than 0 or greater than
// &#x22;str&#x22;&#x27;s length, or &#x22;str&#x22;&#x27;s length
// minus &#x22;offset&#x22; is less than
// &#x22;length&#x22;.</exception>
// <exception cref='ArgumentNullException'>The parameter <paramref
// <exception cref="ArgumentNullException">The parameter <paramref
// name='str'/> is null.</exception>
public CharacterReader(string str, int offset, int length)
: this(str, offset, length, false, false) {
Expand All @@ -105,9 +105,9 @@ public CharacterReader(string str, int offset, int length)
// <param name='errorThrow'>When encountering invalid encoding, throw
// an exception if this parameter is true, or replace it with U+FFFD
// (replacement character) if this parameter is false.</param>
// <exception cref='ArgumentNullException'>The parameter <paramref
// <exception cref="ArgumentNullException">The parameter <paramref
// name='str'/> is null.</exception>
// <exception cref='ArgumentException'>Either <paramref
// <exception cref="ArgumentException">Either <paramref
// name='offset'/> or <paramref name='length'/> is less than 0 or
// greater than <paramref name='str'/> 's length, or <paramref
// name='str'/> 's length minus <paramref name='offset'/> is less than
Expand Down Expand Up @@ -157,7 +157,7 @@ public CharacterReader(
// first in the stream, and replace invalid byte sequences with
// replacement characters (U+FFFD).</summary>
// <param name='stream'>A readable data stream.</param>
// <exception cref='ArgumentNullException'>The parameter <paramref
// <exception cref="ArgumentNullException">The parameter <paramref
// name='stream'/> is null.</exception>
public CharacterReader(Stream stream) : this(stream, 0, false) {
}
Expand Down Expand Up @@ -208,7 +208,7 @@ public CharacterReader(Stream stream, int mode, bool errorThrow)
// <item>3: Detect UTF-16 using BOM, otherwise UTF-8.</item>
// <item>4: Detect UTF-16/UTF-32 using BOM, otherwise UTF-8. (Tries to
// detect UTF-32 first.)</item></list>.</param>
// <exception cref='ArgumentNullException'>The parameter <paramref
// <exception cref="ArgumentNullException">The parameter <paramref
// name='stream'/> is null.</exception>
public CharacterReader(Stream stream, int mode)
: this(stream, mode, false, false) {
Expand Down Expand Up @@ -239,7 +239,7 @@ public CharacterReader(Stream stream, int mode)
// (including when "mode" is 0) and this parameter is <c>true</c>,
// won't skip the BOM character if it occurs at the start of the
// stream.</param>
// <exception cref='ArgumentNullException'>The parameter <paramref
// <exception cref="ArgumentNullException">The parameter <paramref
// name='stream'/> is null.</exception>
public CharacterReader(
Stream stream,
Expand Down Expand Up @@ -273,9 +273,9 @@ private interface IByteReader {
// <returns>The number of code points read from the stream. This can
// be less than the <paramref name='length'/> parameter if the end of
// the stream is reached.</returns>
// <exception cref='ArgumentNullException'>The parameter <paramref
// <exception cref="ArgumentNullException">The parameter <paramref
// name='chars'/> is null.</exception>
// <exception cref='ArgumentException'>Either <paramref name='index'/>
// <exception cref="ArgumentException">Either <paramref name='index'/>
// or <paramref name='length'/> is less than 0 or greater than
// <paramref name='chars'/> 's length, or <paramref name='chars'/> 's
// length minus <paramref name='index'/> is less than <paramref
Expand Down

0 comments on commit 1ab6d10

Please sign in to comment.