aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/SMModel.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/SMModel.cs')
-rw-r--r--Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/SMModel.cs20
1 files changed, 8 insertions, 12 deletions
diff --git a/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/SMModel.cs b/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/SMModel.cs
index 2321ecad2..cb2f201aa 100644
--- a/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/SMModel.cs
+++ b/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/SMModel.cs
@@ -52,21 +52,17 @@ namespace UniversalDetector.Core
public BitPackage classTable;
public BitPackage stateTable;
public int[] charLenTable;
-
+
private string name;
- public string Name {
- get { return name; }
- }
+ public string Name => name;
private int classFactor;
- public int ClassFactor {
- get { return classFactor; }
- }
+ public int ClassFactor => classFactor;
public SMModel(BitPackage classTable, int classFactor,
- BitPackage stateTable, int[] charLenTable, String name)
+ BitPackage stateTable, int[] charLenTable, string name)
{
this.classTable = classTable;
this.classFactor = classFactor;
@@ -74,10 +70,10 @@ namespace UniversalDetector.Core
this.charLenTable = charLenTable;
this.name = name;
}
-
+
public int GetClass(byte b)
- {
- return classTable.Unpack((int)b);
+ {
+ return classTable.Unpack((int)b);
}
- }
+ }
}