-
Notifications
You must be signed in to change notification settings - Fork 43
/
LineParserV03.cs
39 lines (34 loc) · 850 Bytes
/
LineParserV03.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System.Text;
namespace StringsAreEvil
{
/// <summary>
/// Stats:-
/// Took: 8,313 ms
/// Allocated: 4,284,799 kb
/// Peak Working Set: 16,532 kb
///
/// Change:-
/// We only want to process the lines we care about. Therefore we
/// do not need to do any string processing unless the line begins
/// with MNO
/// </summary>
public sealed class LineParserV03 : ILineParser
{
public void ParseLine(string line)
{
if (line.StartsWith("MNO"))
{
var valueHolder = new ValueHolder(line);
}
}
public void ParseLine(char[] line)
{
}
public void Dump()
{
}
public void ParseLine(StringBuilder line)
{
}
}
}