MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / GetLineEnd

Method GetLineEnd

src/Update/Mono.Options/Options.cs:222–235  ·  view source on GitHub ↗
(int start, int length, string description)

Source from the content-addressed store, hash-verified

220 }
221
222 private static int GetLineEnd (int start, int length, string description)
223 {
224 int end = System.Math.Min (start + length, description.Length);
225 int sep = -1;
226 for (int i = start; i < end; ++i) {
227 if (description [i] == '\n')
228 return i+1;
229 if (IsEolChar (description [i]))
230 sep = i+1;
231 }
232 if (sep == -1 || end == description.Length)
233 return end;
234 return sep;
235 }
236 }
237
238 public class OptionValueCollection : IList, IList<string> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected