aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/UTF8Prober.cs
diff options
context:
space:
mode:
authorhawken <hawken@thehawken.org>2019-01-07 23:27:46 +0000
committerhawken <hawken@thehawken.org>2019-01-07 23:27:46 +0000
commitbd169e4fd4f5586ab8dad323a520cbcc10de54fe (patch)
tree25ac796d1cbba2d1411612e210b2fde904593ddb /Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/UTF8Prober.cs
parentba1794f64bb1959b3af0fbbddca57df14a5544a9 (diff)
remove trailing whitespace
Diffstat (limited to 'Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/UTF8Prober.cs')
-rw-r--r--Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/UTF8Prober.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/UTF8Prober.cs b/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/UTF8Prober.cs
index 084797c5e..a469e2a0c 100644
--- a/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/UTF8Prober.cs
+++ b/Emby.Server.Implementations/TextEncoding/UniversalDetector/Core/UTF8Prober.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"),
@@ -46,11 +46,11 @@ namespace UniversalDetector.Core
public UTF8Prober()
{
- numOfMBChar = 0;
+ numOfMBChar = 0;
codingSM = new CodingStateMachine(new UTF8SMModel());
Reset();
}
-
+
public override string GetCharsetName() {
return "UTF-8";
}
@@ -66,7 +66,7 @@ namespace UniversalDetector.Core
{
int codingState = SMModel.START;
int max = offset + len;
-
+
for (int i = offset; i < max; i++) {
codingState = codingSM.NextState(buf[i]);
@@ -97,7 +97,7 @@ namespace UniversalDetector.Core
{
float unlike = 0.99f;
float confidence = 0.0f;
-
+
if (numOfMBChar < 6) {
for (int i = 0; i < numOfMBChar; i++)
unlike *= ONE_CHAR_PROB;