aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/EUCKRProber.cs
diff options
context:
space:
mode:
authorErwin de Haan <EraYaN@users.noreply.github.com>2019-01-13 23:28:05 +0100
committerErwin de Haan <EraYaN@users.noreply.github.com>2019-01-13 23:28:05 +0100
commitae0732136fe72e5e3c26517e9e350178bf2e9b59 (patch)
treecdfc9cd6ce97ceca0b2d8d3023d9815f80357dd5 /Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/EUCKRProber.cs
parentd7b7be395b76c7fcc49d3baffeb59d51a9b36378 (diff)
parentf8dd182e422db49d98cc090f4e205cc46517f610 (diff)
Merge remote-tracking branch 'upstream/dev' into build-system-consolidation
Diffstat (limited to 'Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/EUCKRProber.cs')
-rw-r--r--Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/EUCKRProber.cs14
1 files changed, 7 insertions, 7 deletions
diff --git a/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/EUCKRProber.cs b/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/EUCKRProber.cs
index 67d4b0a72..b1543dae1 100644
--- a/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/EUCKRProber.cs
+++ b/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/EUCKRProber.cs
@@ -46,15 +46,15 @@ namespace UniversalDetector.Core
public EUCKRProber()
{
codingSM = new CodingStateMachine(new EUCKRSMModel());
- distributionAnalyser = new EUCKRDistributionAnalyser();
+ distributionAnalyser = new EUCKRDistributionAnalyser();
Reset();
}
-
+
public override string GetCharsetName()
{
- return "EUC-KR";
+ return "EUC-KR";
}
-
+
public override ProbingState HandleData(byte[] buf, int offset, int len)
{
int codingState;
@@ -81,12 +81,12 @@ namespace UniversalDetector.Core
}
}
lastChar[0] = buf[max-1];
-
+
if (state == ProbingState.Detecting)
if (distributionAnalyser.GotEnoughData() && GetConfidence() > SHORTCUT_THRESHOLD)
state = ProbingState.FoundIt;
return state;
-
+
}
public override float GetConfidence()
@@ -96,7 +96,7 @@ namespace UniversalDetector.Core
public override void Reset()
{
- codingSM.Reset();
+ codingSM.Reset();
state = ProbingState.Detecting;
distributionAnalyser.Reset();
//mContextAnalyser.Reset();