aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/SequenceModel.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/SequenceModel.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/SequenceModel.cs')
-rw-r--r--Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/SequenceModel.cs30
1 files changed, 15 insertions, 15 deletions
diff --git a/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/SequenceModel.cs b/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/SequenceModel.cs
index 9048796b5..fc824b5a2 100644
--- a/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/SequenceModel.cs
+++ b/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/SequenceModel.cs
@@ -21,7 +21,7 @@
* Contributor(s):
* Shy Shalom <shooshX@gmail.com>
* 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"),
@@ -39,36 +39,36 @@
using System;
namespace UniversalDetector.Core
-{
+{
public abstract class SequenceModel
{
// [256] table use to find a char's order
protected byte[] charToOrderMap;
-
- // [SAMPLE_SIZE][SAMPLE_SIZE] table to find a 2-char sequence's
- // frequency
+
+ // [SAMPLE_SIZE][SAMPLE_SIZE] table to find a 2-char sequence's
+ // frequency
protected byte[] precedenceMatrix;
-
+
// freqSeqs / totalSeqs
protected float typicalPositiveRatio;
-
+
public float TypicalPositiveRatio {
get { return typicalPositiveRatio; }
}
-
- // not used
+
+ // not used
protected bool keepEnglishLetter;
-
+
public bool KeepEnglishLetter {
get { return keepEnglishLetter; }
}
-
+
protected String charsetName;
public string CharsetName {
get { return charsetName; }
}
-
+
public SequenceModel(
byte[] charToOrderMap,
byte[] precedenceMatrix,
@@ -82,16 +82,16 @@ namespace UniversalDetector.Core
this.keepEnglishLetter = keepEnglishLetter;
this.charsetName = charsetName;
}
-
+
public byte GetOrder(byte b)
{
return charToOrderMap[b];
}
-
+
public byte GetPrecedence(int pos)
{
return precedenceMatrix[pos];
}
-
+
}
}