aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/CodingStateMachine.cs
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2019-01-10 19:54:18 -0500
committerGitHub <noreply@github.com>2019-01-10 19:54:18 -0500
commit15c89d281e29578a752dd9828e12e6fa243621a8 (patch)
tree49ad7b46cb06c844affe835e5ed7b8d87deebf4a /Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/CodingStateMachine.cs
parent3d867c2c46cec39b669bb8647efef677f32b8a8d (diff)
parentbd169e4fd4f5586ab8dad323a520cbcc10de54fe (diff)
Merge pull request #506 from hawken93/linting
Removing tabs and trailing whitespace
Diffstat (limited to 'Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/CodingStateMachine.cs')
-rw-r--r--Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/CodingStateMachine.cs34
1 files changed, 17 insertions, 17 deletions
diff --git a/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/CodingStateMachine.cs b/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/CodingStateMachine.cs
index f837dd966..484bbca36 100644
--- a/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/CodingStateMachine.cs
+++ b/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/CodingStateMachine.cs
@@ -22,7 +22,7 @@
* Shy Shalom <shooshX@gmail.com>
* Kohei TAKETA <k-tak@void.in> (Java port)
* Rudi Pettazzi <rudi.pettazzi@gmail.com> (C# port)
- *
+ *
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
@@ -48,8 +48,8 @@ namespace UniversalDetector.Core
private SMModel model;
private int currentCharLen;
private int currentBytePos;
-
- public CodingStateMachine(SMModel model)
+
+ public CodingStateMachine(SMModel model)
{
this.currentState = SMModel.START;
this.model = model;
@@ -57,34 +57,34 @@ namespace UniversalDetector.Core
public int NextState(byte b)
{
- // for each byte we get its class, if it is first byte,
+ // for each byte we get its class, if it is first byte,
// we also get byte length
int byteCls = model.GetClass(b);
- if (currentState == SMModel.START) {
+ if (currentState == SMModel.START) {
currentBytePos = 0;
currentCharLen = model.charLenTable[byteCls];
}
-
- // from byte's class and stateTable, we get its next state
+
+ // from byte's class and stateTable, we get its next state
currentState = model.stateTable.Unpack(
currentState * model.ClassFactor + byteCls);
currentBytePos++;
return currentState;
}
-
- public void Reset()
- {
- currentState = SMModel.START;
+
+ public void Reset()
+ {
+ currentState = SMModel.START;
}
- public int CurrentCharLen
- {
- get { return currentCharLen; }
+ public int CurrentCharLen
+ {
+ get { return currentCharLen; }
}
- public string ModelName
- {
- get { return model.Name; }
+ public string ModelName
+ {
+ get { return model.Name; }
}
}
}