From 1ab6d10ebd338453deaa9ee28ce47d48087bf928 Mon Sep 17 00:00:00 2001 From: Peter Occil Date: Thu, 16 Jan 2025 07:20:44 -0500 Subject: [PATCH] Minor code edits --- CBOR/PeterO/Cbor/CharacterReader.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/CBOR/PeterO/Cbor/CharacterReader.cs b/CBOR/PeterO/Cbor/CharacterReader.cs index 963927a7..f5c28a7c 100644 --- a/CBOR/PeterO/Cbor/CharacterReader.cs +++ b/CBOR/PeterO/Cbor/CharacterReader.cs @@ -37,7 +37,7 @@ public CharacterReader(string str) : this(str, false, false) { // string. // If true and the first character in // the string is U+FEFF, skip that character. - // The parameter The parameter is null. public CharacterReader(string str, bool skipByteOrderMark) : this(str, skipByteOrderMark, false) { @@ -52,7 +52,7 @@ public CharacterReader(string str, bool skipByteOrderMark) // 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. - // The parameter The parameter is null. public CharacterReader( string str, @@ -80,12 +80,12 @@ public CharacterReader( // The length, in code units, of the desired // portion of (but not more than 's length). - // Either "offset" or + // Either "offset" or // "length" is less than 0 or greater than // "str"'s length, or "str"'s length // minus "offset" is less than // "length". - // The parameter The parameter is null. public CharacterReader(string str, int offset, int length) : this(str, offset, length, false, false) { @@ -105,9 +105,9 @@ public CharacterReader(string str, int offset, int length) // 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. - // The parameter The parameter is null. - // Either Either or is less than 0 or // greater than 's length, or 's length minus is less than @@ -157,7 +157,7 @@ public CharacterReader( // first in the stream, and replace invalid byte sequences with // replacement characters (U+FFFD). // A readable data stream. - // The parameter The parameter is null. public CharacterReader(Stream stream) : this(stream, 0, false) { } @@ -208,7 +208,7 @@ public CharacterReader(Stream stream, int mode, bool errorThrow) // 3: Detect UTF-16 using BOM, otherwise UTF-8. // 4: Detect UTF-16/UTF-32 using BOM, otherwise UTF-8. (Tries to // detect UTF-32 first.). - // The parameter The parameter is null. public CharacterReader(Stream stream, int mode) : this(stream, mode, false, false) { @@ -239,7 +239,7 @@ public CharacterReader(Stream stream, int mode) // (including when "mode" is 0) and this parameter is true, // won't skip the BOM character if it occurs at the start of the // stream. - // The parameter The parameter is null. public CharacterReader( Stream stream, @@ -273,9 +273,9 @@ private interface IByteReader { // The number of code points read from the stream. This can // be less than the parameter if the end of // the stream is reached. - // The parameter The parameter is null. - // Either + // Either // or is less than 0 or greater than // 's length, or 's // length minus is less than