From 595c68fe6d66e80135a55e562760dcb3c91ee7f3 Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 6 May 2015 17:01:06 +0900 Subject: [PATCH] Refactored a few for LineState.cs, to be PascalCase --- websocket-sharp/Net/HttpConnection.cs | 8 ++++---- websocket-sharp/Net/LineState.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/websocket-sharp/Net/HttpConnection.cs b/websocket-sharp/Net/HttpConnection.cs index c5b12e29..07ea923f 100644 --- a/websocket-sharp/Net/HttpConnection.cs +++ b/websocket-sharp/Net/HttpConnection.cs @@ -372,19 +372,19 @@ namespace WebSocketSharp.Net var last = offset + count; read = 0; - for (var i = offset; i < last && _lineState != LineState.LF; i++) { + for (var i = offset; i < last && _lineState != LineState.Lf; i++) { read++; var b = buffer[i]; if (b == 13) - _lineState = LineState.CR; + _lineState = LineState.Cr; else if (b == 10) - _lineState = LineState.LF; + _lineState = LineState.Lf; else _currentLine.Append ((char) b); } string ret = null; - if (_lineState == LineState.LF) { + if (_lineState == LineState.Lf) { _lineState = LineState.None; ret = _currentLine.ToString (); _currentLine.Length = 0; diff --git a/websocket-sharp/Net/LineState.cs b/websocket-sharp/Net/LineState.cs index 7266c7ed..c2a8e8a2 100644 --- a/websocket-sharp/Net/LineState.cs +++ b/websocket-sharp/Net/LineState.cs @@ -44,7 +44,7 @@ namespace WebSocketSharp.Net internal enum LineState { None, - CR, - LF + Cr, + Lf } }