|
5 | 5 |
|
6 | 6 | namespace PolylineAlgorithm; |
7 | 7 |
|
8 | | -using PolylineAlgorithm.Diagnostics; |
9 | 8 | using PolylineAlgorithm.Internal; |
10 | | - |
| 9 | +using PolylineAlgorithm.Internal.Diagnostics; |
11 | 10 | using System; |
12 | 11 | using System.Numerics; |
13 | 12 | using System.Runtime.InteropServices; |
@@ -79,7 +78,7 @@ public static int Normalize(double value, uint precision = 5) { |
79 | 78 | /// This is the inverse of <see cref="Normalize"/>. The method divides <paramref name="value"/> by 10^<paramref name="precision"/> |
80 | 79 | /// and returns a <see cref="double"/>. If <paramref name="precision"/> is zero the integer value is returned as a double unchanged. |
81 | 80 | /// </para> |
82 | | - /// <para>Arithmetic is performed in a <c>checked</c> context so that any overflow is surfaced as an <see cref="OverflowException"/>.</para> |
| 81 | + /// <para>Arithmetic is performed in a <see langword="checked"/> context so that any overflow is surfaced as an <see cref="OverflowException"/>.</para> |
83 | 82 | /// </remarks> |
84 | 83 | /// <param name="value">Integer normalized coordinate (typically produced by <see cref="Normalize"/>).</param> |
85 | 84 | /// <param name="precision">Number of decimal places that were used when normalizing. Default is 5.</param> |
@@ -114,14 +113,14 @@ public static double Denormalize(int value, uint precision = 5) { |
114 | 113 | /// </para> |
115 | 114 | /// <para> |
116 | 115 | /// The <paramref name="position"/> argument is advanced to the character after the last character consumed for the value. |
117 | | - /// If the buffer ends before a complete encoded value is available the method returns <c>false</c> and <paramref name="position"/> |
| 116 | + /// If the buffer ends before a complete encoded value is available the method returns <see langword="false"/> and <paramref name="position"/> |
118 | 117 | /// will point to the buffer end. |
119 | 118 | /// </para> |
120 | 119 | /// </remarks> |
121 | 120 | /// <param name="delta">Reference to the accumulator; the decoded value will be added to this parameter.</param> |
122 | 121 | /// <param name="buffer">Read-only memory containing polyline-encoded characters.</param> |
123 | 122 | /// <param name="position">Reference to the current index in <paramref name="buffer"/>; advanced as characters are read.</param> |
124 | | - /// <returns><c>true</c> if a full value was decoded; <c>false</c> if the buffer ended before the value was complete.</returns> |
| 123 | + /// <returns><see langword="true"/> if a full value was decoded; <see langword="false"/> if the buffer ended before the value was complete.</returns> |
125 | 124 | public static bool TryReadValue(ref int delta, ReadOnlyMemory<char> buffer, ref int position) { |
126 | 125 | // Validate that the position is within the bounds of the buffer. |
127 | 126 | if (position >= buffer.Length) { |
@@ -164,14 +163,14 @@ public static bool TryReadValue(ref int delta, ReadOnlyMemory<char> buffer, ref |
164 | 163 | /// </para> |
165 | 164 | /// <para> |
166 | 165 | /// Before writing the method checks that there is sufficient space in the destination span by calling |
167 | | - /// <see cref="GetRequiredBufferSize(int)"/>. If there is not enough space the method returns <c>false</c> without modifying |
| 166 | + /// <see cref="GetRequiredBufferSize(int)"/>. If there is not enough space the method returns <see langword="false"/> without modifying |
168 | 167 | /// the buffer or position. |
169 | 168 | /// </para> |
170 | 169 | /// </remarks> |
171 | 170 | /// <param name="delta">The integer value to encode (typically a coordinate delta).</param> |
172 | 171 | /// <param name="buffer">Destination character span to write the encoded characters into.</param> |
173 | 172 | /// <param name="position">Reference to the current write index in <paramref name="buffer"/>; advanced as characters are written.</param> |
174 | | - /// <returns><c>true</c> if the value was encoded and written; <c>false</c> if the buffer did not have sufficient space.</returns> |
| 173 | + /// <returns><see langword="true"/> if the value was encoded and written; <see langword="false"/> if the buffer did not have sufficient space.</returns> |
175 | 174 | public static bool TryWriteValue(int delta, Span<char> buffer, ref int position) { |
176 | 175 | // Validate that the position and required space for write is within the bounds of the buffer. |
177 | 176 | if (buffer[position..].Length < GetRequiredBufferSize(delta)) { |
|
0 commit comments