qr{w
zJ{Cq2PCW-UUpRH;H)efF7yoa5gZ53@sPCW#iaRW3R{|ZtOwsiM#$Asd_2C6`*=w<3
zGN?zqjD~_&jX7Q1WxhT^uu5h-hQV@EgPOKlg%dF;e5sNE61Ma%@IVB8ge|S&%+LsV
z&__Fhg@OiHiTH!!LRe;jc_=vw<5nrL9X}97!8&u#e#QF}O%3
z`+2wbwx^Sll12+wSEsvz*cn};h1m1PaJ&+-TP`3%+g`aSx28g{bjoU0d2yLWUx8!J
zAaO^14K+G8KU#Wm1JD#56(DHn5TwN9G8NiqpEqQ?HliSOvGqw$IYRn5cZKYe>(iij
zF<4X9Txr6hC4KP(4>f0FWa2eH-Y_Uh
pI|h6B={Tt3!`BvWF0TE3nYufhiPPyp;KiKF%EHFH!t~$R{{dixlwJS;
literal 0
HcmV?d00001
diff --git a/missing b/missing
deleted file mode 100755
index 1c8ff70..0000000
--- a/missing
+++ /dev/null
@@ -1,367 +0,0 @@
-#! /bin/sh
-# Common stub for a few missing GNU programs while installing.
-
-scriptversion=2006-05-10.23
-
-# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
-# Free Software Foundation, Inc.
-# Originally by Fran,cois Pinard , 1996.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-if test $# -eq 0; then
- echo 1>&2 "Try \`$0 --help' for more information"
- exit 1
-fi
-
-run=:
-sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
-sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
-
-# In the cases where this matters, `missing' is being run in the
-# srcdir already.
-if test -f configure.ac; then
- configure_ac=configure.ac
-else
- configure_ac=configure.in
-fi
-
-msg="missing on your system"
-
-case $1 in
---run)
- # Try to run requested program, and just exit if it succeeds.
- run=
- shift
- "$@" && exit 0
- # Exit code 63 means version mismatch. This often happens
- # when the user try to use an ancient version of a tool on
- # a file that requires a minimum version. In this case we
- # we should proceed has if the program had been absent, or
- # if --run hadn't been passed.
- if test $? = 63; then
- run=:
- msg="probably too old"
- fi
- ;;
-
- -h|--h|--he|--hel|--help)
- echo "\
-$0 [OPTION]... PROGRAM [ARGUMENT]...
-
-Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
-error status if there is no known handling for PROGRAM.
-
-Options:
- -h, --help display this help and exit
- -v, --version output version information and exit
- --run try to run the given command, and emulate it if it fails
-
-Supported PROGRAM values:
- aclocal touch file \`aclocal.m4'
- autoconf touch file \`configure'
- autoheader touch file \`config.h.in'
- autom4te touch the output file, or create a stub one
- automake touch all \`Makefile.in' files
- bison create \`y.tab.[ch]', if possible, from existing .[ch]
- flex create \`lex.yy.c', if possible, from existing .c
- help2man touch the output file
- lex create \`lex.yy.c', if possible, from existing .c
- makeinfo touch the output file
- tar try tar, gnutar, gtar, then tar without non-portable flags
- yacc create \`y.tab.[ch]', if possible, from existing .[ch]
-
-Send bug reports to ."
- exit $?
- ;;
-
- -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
- echo "missing $scriptversion (GNU Automake)"
- exit $?
- ;;
-
- -*)
- echo 1>&2 "$0: Unknown \`$1' option"
- echo 1>&2 "Try \`$0 --help' for more information"
- exit 1
- ;;
-
-esac
-
-# Now exit if we have it, but it failed. Also exit now if we
-# don't have it and --version was passed (most likely to detect
-# the program).
-case $1 in
- lex|yacc)
- # Not GNU programs, they don't have --version.
- ;;
-
- tar)
- if test -n "$run"; then
- echo 1>&2 "ERROR: \`tar' requires --run"
- exit 1
- elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
- exit 1
- fi
- ;;
-
- *)
- if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
- # We have it, but it failed.
- exit 1
- elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
- # Could not run --version or --help. This is probably someone
- # running `$TOOL --version' or `$TOOL --help' to check whether
- # $TOOL exists and not knowing $TOOL uses missing.
- exit 1
- fi
- ;;
-esac
-
-# If it does not exist, or fails to run (possibly an outdated version),
-# try to emulate it.
-case $1 in
- aclocal*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`acinclude.m4' or \`${configure_ac}'. You might want
- to install the \`Automake' and \`Perl' packages. Grab them from
- any GNU archive site."
- touch aclocal.m4
- ;;
-
- autoconf)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`${configure_ac}'. You might want to install the
- \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
- archive site."
- touch configure
- ;;
-
- autoheader)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`acconfig.h' or \`${configure_ac}'. You might want
- to install the \`Autoconf' and \`GNU m4' packages. Grab them
- from any GNU archive site."
- files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
- test -z "$files" && files="config.h"
- touch_files=
- for f in $files; do
- case $f in
- *:*) touch_files="$touch_files "`echo "$f" |
- sed -e 's/^[^:]*://' -e 's/:.*//'`;;
- *) touch_files="$touch_files $f.in";;
- esac
- done
- touch $touch_files
- ;;
-
- automake*)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
- You might want to install the \`Automake' and \`Perl' packages.
- Grab them from any GNU archive site."
- find . -type f -name Makefile.am -print |
- sed 's/\.am$/.in/' |
- while read f; do touch "$f"; done
- ;;
-
- autom4te)
- echo 1>&2 "\
-WARNING: \`$1' is needed, but is $msg.
- You might have modified some files without having the
- proper tools for further handling them.
- You can get \`$1' as part of \`Autoconf' from any GNU
- archive site."
-
- file=`echo "$*" | sed -n "$sed_output"`
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
- if test -f "$file"; then
- touch $file
- else
- test -z "$file" || exec >$file
- echo "#! /bin/sh"
- echo "# Created by GNU Automake missing as a replacement of"
- echo "# $ $@"
- echo "exit 0"
- chmod +x $file
- exit 1
- fi
- ;;
-
- bison|yacc)
- echo 1>&2 "\
-WARNING: \`$1' $msg. You should only need it if
- you modified a \`.y' file. You may need the \`Bison' package
- in order for those modifications to take effect. You can get
- \`Bison' from any GNU archive site."
- rm -f y.tab.c y.tab.h
- if test $# -ne 1; then
- eval LASTARG="\${$#}"
- case $LASTARG in
- *.y)
- SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
- if test -f "$SRCFILE"; then
- cp "$SRCFILE" y.tab.c
- fi
- SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
- if test -f "$SRCFILE"; then
- cp "$SRCFILE" y.tab.h
- fi
- ;;
- esac
- fi
- if test ! -f y.tab.h; then
- echo >y.tab.h
- fi
- if test ! -f y.tab.c; then
- echo 'main() { return 0; }' >y.tab.c
- fi
- ;;
-
- lex|flex)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified a \`.l' file. You may need the \`Flex' package
- in order for those modifications to take effect. You can get
- \`Flex' from any GNU archive site."
- rm -f lex.yy.c
- if test $# -ne 1; then
- eval LASTARG="\${$#}"
- case $LASTARG in
- *.l)
- SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
- if test -f "$SRCFILE"; then
- cp "$SRCFILE" lex.yy.c
- fi
- ;;
- esac
- fi
- if test ! -f lex.yy.c; then
- echo 'main() { return 0; }' >lex.yy.c
- fi
- ;;
-
- help2man)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified a dependency of a manual page. You may need the
- \`Help2man' package in order for those modifications to take
- effect. You can get \`Help2man' from any GNU archive site."
-
- file=`echo "$*" | sed -n "$sed_output"`
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
- if test -f "$file"; then
- touch $file
- else
- test -z "$file" || exec >$file
- echo ".ab help2man is required to generate this page"
- exit 1
- fi
- ;;
-
- makeinfo)
- echo 1>&2 "\
-WARNING: \`$1' is $msg. You should only need it if
- you modified a \`.texi' or \`.texinfo' file, or any other file
- indirectly affecting the aspect of the manual. The spurious
- call might also be the consequence of using a buggy \`make' (AIX,
- DU, IRIX). You might want to install the \`Texinfo' package or
- the \`GNU make' package. Grab either from any GNU archive site."
- # The file to touch is that specified with -o ...
- file=`echo "$*" | sed -n "$sed_output"`
- test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
- if test -z "$file"; then
- # ... or it is the one specified with @setfilename ...
- infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
- file=`sed -n '
- /^@setfilename/{
- s/.* \([^ ]*\) *$/\1/
- p
- q
- }' $infile`
- # ... or it is derived from the source name (dir/f.texi becomes f.info)
- test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
- fi
- # If the file does not exist, the user really needs makeinfo;
- # let's fail without touching anything.
- test -f $file || exit 1
- touch $file
- ;;
-
- tar)
- shift
-
- # We have already tried tar in the generic part.
- # Look for gnutar/gtar before invocation to avoid ugly error
- # messages.
- if (gnutar --version > /dev/null 2>&1); then
- gnutar "$@" && exit 0
- fi
- if (gtar --version > /dev/null 2>&1); then
- gtar "$@" && exit 0
- fi
- firstarg="$1"
- if shift; then
- case $firstarg in
- *o*)
- firstarg=`echo "$firstarg" | sed s/o//`
- tar "$firstarg" "$@" && exit 0
- ;;
- esac
- case $firstarg in
- *h*)
- firstarg=`echo "$firstarg" | sed s/h//`
- tar "$firstarg" "$@" && exit 0
- ;;
- esac
- fi
-
- echo 1>&2 "\
-WARNING: I can't seem to be able to run \`tar' with the given arguments.
- You may want to install GNU tar or Free paxutils, or check the
- command line arguments."
- exit 1
- ;;
-
- *)
- echo 1>&2 "\
-WARNING: \`$1' is needed, and is $msg.
- You might have modified some files without having the
- proper tools for further handling them. Check the \`README' file,
- it often tells you about the needed prerequisites for installing
- this package. You may also peek at any GNU archive site, in case
- some other package would contain this missing \`$1' program."
- exit 1
- ;;
-esac
-
-exit 0
-
-# Local variables:
-# eval: (add-hook 'write-file-hooks 'time-stamp)
-# time-stamp-start: "scriptversion="
-# time-stamp-format: "%:y-%02m-%02d.%02H"
-# time-stamp-end: "$"
-# End:
diff --git a/src/Library/Properties/AssemblyInfo.cs b/src/Library/Properties/AssemblyInfo.cs
deleted file mode 100644
index 3a9682a..0000000
--- a/src/Library/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,21 +0,0 @@
-// AssemblyInfo.cs created with MonoDevelop
-//
-// Author:
-// Rudi Pettazzi
-//
-using System.Reflection;
-
-[assembly: AssemblyTitle("Ude")]
-[assembly: AssemblyDescription("C# port of Mozilla Universal Charset Detector")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Ude")]
-[assembly: AssemblyCopyright("Copyright © 2009 Rudi Pettazzi ")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-[assembly: AssemblyVersion("0.1.0.0")]
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
-
-
-
diff --git a/src/Makefile.am b/src/Makefile.am
deleted file mode 100644
index 3fcbedd..0000000
--- a/src/Makefile.am
+++ /dev/null
@@ -1,70 +0,0 @@
-
-EXTRA_DIST =
-BUILD_DIR=$(top_builddir)/bin
-ASSEMBLY = $(BUILD_DIR)/Ude.dll
-COMPILE_TARGET = library
-LINUX_PKGCONFIG = $(UDE_PC)
-
-if ENABLE_DEBUG_ANY_CPU
-ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize- -debug "-define:DEBUG;TRACE"
-ASSEMBLY_MDB = $(ASSEMBLY).mdb
-endif
-
-if ENABLE_RELEASE_ANY_CPU
-ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ "-define:TRACE"
-ASSEMBLY_MDB =
-endif
-
-all: $(ASSEMBLY) $(LINUX_PKGCONFIG)
-
-FILES = \
- Ude.Core/CharDistributionAnalyser.cs \
- Ude.Core/CharsetProber.cs \
- Properties/AssemblyInfo.cs \
- Ude.Core/CodingStateMachine.cs \
- Ude.Core/EscCharsetProber.cs \
- Ude.Core/EscSM.cs \
- Ude.Core/HebrewProber.cs \
- Ude.Core/Latin1Prober.cs \
- Ude.Core/MBCSGroupProber.cs \
- Ude.Core/BitPackage.cs \
- Ude.Core/SBCharsetProber.cs \
- Ude.Core/SBCSGroupProber.cs \
- Ude.Core/UniversalDetector.cs \
- Ude.Core/UTF8Prober.cs \
- Ude.Core/MBCSSM.cs \
- Ude.Core/SequenceModel.cs \
- Ude.Core/GB18030Prober.cs \
- Ude.Core/SMModel.cs \
- Ude.Core/LangCyrillicModel.cs \
- Ude.Core/LangBulgarianModel.cs \
- Ude.Core/LangHebrewModel.cs \
- Ude.Core/LangGreekModel.cs \
- Ude.Core/LangHungarianModel.cs \
- Ude.Core/LangThaiModel.cs \
- Ude.Core/Big5Prober.cs \
- Ude.Core/EUCJPProber.cs \
- Ude.Core/EUCKRProber.cs \
- Ude.Core/EUCTWProber.cs \
- Ude.Core/JapaneseContextAnalyser.cs \
- Ude.Core/SJISProber.cs \
- Ude/ICharsetDetector.cs \
- Ude/CharsetDetector.cs \
- Ude/DetectionConfidence.cs \
- Ude.Core/Charsets.cs
-
-EXTRAS = ude.pc.in
-REFERENCES = System
-UDE_PC = $(BUILD_DIR)/ude.pc
-
-CLEANFILES = $(LINUX_PKGCONFIG) $(ASSEMBLY) $(ASSEMBLY_MDB) $(UDE_PC)
-MAINTAINERCLEANFILES = Makefile.in
-
-include $(top_srcdir)/Makefile.include
-
-$(eval $(call emit-deploy-wrapper,UDE_PC,ude.pc))
-
-$(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources)
- mkdir -p $(dir $(ASSEMBLY))
- gmcs $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_references_ref)
-
diff --git a/src/UTF-unknown.csproj b/src/UTF-unknown.csproj
new file mode 100644
index 0000000..a5ce717
--- /dev/null
+++ b/src/UTF-unknown.csproj
@@ -0,0 +1,43 @@
+
+
+
+ netstandard1.3;net40
+
+
+ UTF.Unknown
+ UTF.Unknown
+ 1.0.0-alpha1
+
+
+
+ Library
+
+
+ Julian Verdurmen, Rudi Pettazzi, Shy Shalom
+ en-US
+ UTF Unknown
+
+
+ Easily detect characterset for files, strings, steams and other bytes.
+
+ Detection of character sets with a simple, redesigned, interface.
+
+ This package is forked from Ude (https://github.com/errepi/ude),
+ which is a port of the Mozilla Universal Charset Detector (https://mxr.mozilla.org/mozilla/source/extensions/universalchardet/).
+
+
+
+
+
+
+ charset;detection;unicode;ascii;netstandard
+ First alpha
+
+ https://github.com/CharsetDetector/UTF-unknown
+ https://github.com/CharsetDetector/UTF-unknown/blob/master/license/MPL-1.1.txt
+ false
+ git
+ https://github.com/CharsetDetector/UTF-unknown
+
+
+
\ No newline at end of file
diff --git a/src/Ude.csproj b/src/Ude.csproj
deleted file mode 100644
index 3eea61e..0000000
--- a/src/Ude.csproj
+++ /dev/null
@@ -1,133 +0,0 @@
-
-
-
- Debug
- AnyCPU
- 8.0.50727
- 2.0
- {7BECB850-389A-44FC-8523-3EF0B2540F07}
- Library
- Properties
- Ude
- Ude
-
-
- v3.5
-
-
-
-
- 2.0
-
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
- Library
- Ude
- Ude
- false
- true
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
- Library
- Ude
- false
- Ude
- false
- true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/Ude.csproj.DotSettings b/src/Ude.csproj.DotSettings
deleted file mode 100644
index f3bff25..0000000
--- a/src/Ude.csproj.DotSettings
+++ /dev/null
@@ -1,2 +0,0 @@
-
- True
\ No newline at end of file
diff --git a/src/Ude.mdp b/src/Ude.mdp
deleted file mode 100644
index 9a6d1f3..0000000
--- a/src/Ude.mdp
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/ude.pc.in b/src/ude.pc.in
deleted file mode 100644
index 33af5cf..0000000
--- a/src/ude.pc.in
+++ /dev/null
@@ -1,8 +0,0 @@
-prefix=@prefix@
-assemblies_dir=${prefix}/lib/@PACKAGE@
-Libraries=${assemblies_dir}/Ude.dll
-
-Name: Ude
-Description: C# porting of Mozilla Universal Charset Detector
-Version: 0.1
-Libs: -r:@prefix@/lib/@PACKAGE@/Ude.dll
diff --git a/tests/CharsetProberTest.cs b/tests/CharsetProberTest.cs
deleted file mode 100644
index 1e5a162..0000000
--- a/tests/CharsetProberTest.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-// CharsetProberTest.cs created with MonoDevelop
-//
-// Author:
-// Rudi Pettazzi
-//
-
-using Ude.Core;
-using Xunit;
-
-namespace Ude.Tests
-{
- public class CharsetProberTest
- {
- [Fact]
- public void TestFilterWithEnglishLetter()
- {
- byte[] buf = { 0xBF, 0x68, 0x21, 0x21, 0x65, 0x6C, 0x6F, 0x21, 0x21 };
- DummyCharsetProber p = new DummyCharsetProber();
- p.TestFilterWithEnglishLetter(buf, 0, buf.Length);
- }
-
- [Fact]
- public void TestFilterWithoutEnglishLetter()
- {
- byte[] buf = { 0xEE, 0x21, 0x6C, 0x21, 0xEE, 0x6C, 0x6C };
- DummyCharsetProber p = new DummyCharsetProber();
- p.TestFilterWithoutEnglishLetter(buf, 0, buf.Length);
-
-
- }
-
-
- private class DummyCharsetProber : CharsetProber
- {
- public byte[] TestFilterWithEnglishLetter(byte[] buf, int offset, int len)
- {
- return FilterWithEnglishLetters(buf, offset, len);
- }
-
- public byte[] TestFilterWithoutEnglishLetter(byte[] buf, int offset, int len)
- {
- return FilterWithoutEnglishLetters(buf, offset, len);
- }
-
- public override float GetConfidence() { return 0.0f; }
- public override void Reset() { }
- public override string GetCharsetName() { return null; }
- public override ProbingState HandleData(byte[] buf, int offset, int len)
- {
- return ProbingState.Detecting;
- }
-
- }
-
-
- }
-}
-
diff --git a/tests/Makefile.am b/tests/Makefile.am
deleted file mode 100644
index 2d79b73..0000000
--- a/tests/Makefile.am
+++ /dev/null
@@ -1,79 +0,0 @@
-if ENABLE_TESTS
-
-EXTRA_DIST =
-COMPILE_TARGET = library
-BUILD_DIR=bin/Debug
-ASSEMBLY = $(BUILD_DIR)/Ude.Tests.dll
-ASSEMBLY_MDB = $(ASSEMBLY).mdb
-PROJECT_REFERENCES = $(top_builddir)/bin/Ude.dll
-ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize- -debug "-define:DEBUG;TRACE"
-
-FILES = \
- Properties/AssemblyInfo.cs \
- Ude.Tests/BitPackageTest.cs \
- Ude.Tests/CharsetDetectorTest.cs \
- Ude.Tests/CharsetProberTest.cs \
- Ude.Tests/CharsetDetectorTestBatch.cs
-
-EXTRAS = \
- Data/big5/1.txt \
- Data/eucjp/1.txt \
- Data/euckr/euc1.txt \
- Data/euckr/euc2.txt \
- Data/gb18030/1.txt \
- Data/ibm855/1.txt \
- Data/ibm866/1.txt \
- Data/iso2022jp/1.txt \
- Data/iso2022kr/iso1.txt \
- Data/iso2022kr/iso2.txt \
- Data/iso88597/greek.txt \
- Data/koi8r/1.txt \
- Data/latin1/1.txt \
- Data/latin1/2.txt \
- Data/latin1/3.txt \
- Data/latin1/4.txt \
- Data/maccyrillic/1.txt \
- Data/shiftjis/1.txt \
- Data/shiftjis/2.txt \
- Data/shiftjis/3.txt \
- Data/shiftjis/4.txt \
- Data/utf8/1.txt \
- Data/utf8/2.txt \
- Data/utf8/3.txt \
- Data/utf8/4.txt \
- Data/utf8/5.txt \
- Data/utf8/greek.txt \
- Data/utf8/he1.txt \
- Data/utf8/he2.txt \
- Data/utf8/he3.txt \
- Data/utf8/russian.txt \
- Data/windows1251/1.txt \
- Data/windows1253/greek.txt \
- Data/windows1255/he1.txt \
- Data/windows1255/he2.txt \
- Data/windows1255/he3.txt
-
-REFERENCES = System $(MONO_NUNIT_LIBS)
-PROGRAMFILES = $(UDE_DLL)
-
-CLEANFILES = $(PROGRAMFILES) $(BUILD_DIR)/*
-MAINTAINERCLEANFILES = Makefile.in
-
-all: $(ASSEMBLY) $(PROGRAMFILES)
-
-test: $(ASSEMBLY)
- nunit-console $(ASSEMBLY)
-
-include $(top_srcdir)/Makefile.include
-
-UDE_DLL = $(top_builddir)/bin/Ude.dll
-
-$(eval $(call emit-deploy-target,UDE_DLL))
-
-$(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES)
- mkdir -p $(dir $(ASSEMBLY))
- cp $(PROGRAMFILES) $(dir $(ASSEMBLY))
- gmcs $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_references_ref)
-
-endif
-
diff --git a/tests/Properties/AssemblyInfo.cs b/tests/Properties/AssemblyInfo.cs
deleted file mode 100644
index f5e030e..0000000
--- a/tests/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-// AssemblyInfo.cs created with MonoDevelop
-//
-// Author:
-// Rudi Pettazzi
-//
-using System.Reflection;
-
-[assembly: AssemblyTitle("Ude.Tests")]
-[assembly: AssemblyDescription("Unit tests for Ude")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Ude.Tests")]
-[assembly: AssemblyCopyright("Copyright © rudi pettazzi 2008")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-[assembly: AssemblyVersion("0.1.0.0")]
-[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("")]
-
diff --git a/tests/UTF-unknown.Tests.csproj b/tests/UTF-unknown.Tests.csproj
new file mode 100644
index 0000000..add65b6
--- /dev/null
+++ b/tests/UTF-unknown.Tests.csproj
@@ -0,0 +1,16 @@
+
+
+
+ netcoreapp1.1
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/Ude.Tests.csproj b/tests/Ude.Tests.csproj
deleted file mode 100644
index 4c49ab2..0000000
--- a/tests/Ude.Tests.csproj
+++ /dev/null
@@ -1,153 +0,0 @@
-
-
-
- Debug
- AnyCPU
- 8.0.50727
- 2.0
- {53C6763B-CA4B-4F14-9326-A43C29FF0B4E}
- Library
- Ude.Tests
- UdeTests
- v4.5
-
-
-
-
- 2.0
-
- publish\
- true
- Disk
- false
- Foreground
- 7
- Days
- false
- false
- true
- 0
- 1.0.0.%2a
- false
- false
- true
-
-
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
- Library
- Ude.Tests
- Ude.Tests
- false
- true
- false
-
-
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
- Library
- Ude.Tests
- true
- Ude.Tests
- false
- true
- false
-
-
-
-
-
- ..\..\packages\xunit.abstractions.2.0.0\lib\net35\xunit.abstractions.dll
- True
-
-
- ..\..\packages\xunit.assert.2.1.0\lib\dotnet\xunit.assert.dll
- True
-
-
- ..\..\packages\xunit.extensibility.core.2.1.0\lib\dotnet\xunit.core.dll
- True
-
-
- ..\..\packages\xunit.extensibility.execution.2.1.0\lib\net45\xunit.execution.desktop.dll
- True
-
-
-
-
-
-
-
-
-
-
-
-
-
- {7BECB850-389A-44FC-8523-3EF0B2540F07}
- Ude
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- False
- .NET Framework 3.5 SP1
- true
-
-
-
\ No newline at end of file
diff --git a/tests/Ude.Tests.mdp b/tests/Ude.Tests.mdp
deleted file mode 100644
index cf257cd..0000000
--- a/tests/Ude.Tests.mdp
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/tests/packages.config b/tests/packages.config
deleted file mode 100644
index 69a4ec4..0000000
--- a/tests/packages.config
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
From 58e0b4cbe92fd660e1ce0434d789e41f3b78a581 Mon Sep 17 00:00:00 2001
From: Julian Verdurmen <304NotModified@users.noreply.github.com>
Date: Fri, 7 Apr 2017 20:24:17 +0200
Subject: [PATCH 33/41] adjust namespaces
---
example/Udetect.cs | 4 ++--
src/CharsetDetector.cs | 4 ++--
src/Core/BIG5DistributionAnalyser.cs | 2 +-
src/Core/BIG5SMModel.cs | 2 +-
src/Core/Big5Prober.cs | 2 +-
src/Core/BitPackage.cs | 2 +-
src/Core/BulgarianModel.cs | 2 +-
src/Core/CharDistributionAnalyser.cs | 2 +-
src/Core/CharsetProber.cs | 2 +-
src/Core/Charsets.cs | 2 +-
src/Core/CodingStateMachine.cs | 2 +-
src/Core/CyrillicModel.cs | 2 +-
src/Core/EUCJPContextAnalyser.cs | 2 +-
src/Core/EUCJPDistributionAnalyser.cs | 2 +-
src/Core/EUCJPProber.cs | 2 +-
src/Core/EUCJPSMModel.cs | 2 +-
src/Core/EUCKRDistributionAnalyser.cs | 2 +-
src/Core/EUCKRProber.cs | 2 +-
src/Core/EUCKRSMModel.cs | 2 +-
src/Core/EUCTWDistributionAnalyser.cs | 2 +-
src/Core/EUCTWProber.cs | 2 +-
src/Core/EUCTWSMModel.cs | 2 +-
src/Core/EscCharsetProber.cs | 2 +-
src/Core/GB18030DistributionAnalyser.cs | 2 +-
src/Core/GB18030Prober.cs | 2 +-
src/Core/GB18030SMModel.cs | 2 +-
src/Core/GreekModel.cs | 2 +-
src/Core/HZSMModel.cs | 2 +-
src/Core/HebrewModel.cs | 2 +-
src/Core/HebrewProber.cs | 2 +-
src/Core/HungarianModel.cs | 2 +-
src/Core/ISO2022CNSMModel.cs | 2 +-
src/Core/ISO2022JPSMModel.cs | 2 +-
src/Core/ISO2022KRSMModel.cs | 2 +-
src/Core/Ibm855Model.cs | 2 +-
src/Core/Ibm866Model.cs | 2 +-
src/Core/InputState.cs | 2 +-
src/Core/JapaneseContextAnalyser.cs | 2 +-
src/Core/Koi8rModel.cs | 2 +-
src/Core/Latin1Prober.cs | 2 +-
src/Core/Latin2HungarianModel.cs | 2 +-
src/Core/Latin5BulgarianModel.cs | 2 +-
src/Core/Latin5Model.cs | 2 +-
src/Core/Latin7Model.cs | 2 +-
src/Core/MBCSGroupProber.cs | 2 +-
src/Core/MacCyrillicModel.cs | 2 +-
src/Core/ProbingState.cs | 2 +-
src/Core/SBCSGroupProber.cs | 2 +-
src/Core/SJISContextAnalyser.cs | 2 +-
src/Core/SJISDistributionAnalyser.cs | 2 +-
src/Core/SJISProber.cs | 2 +-
src/Core/SJISSMModel.cs | 2 +-
src/Core/SMModel.cs | 2 +-
src/Core/SequenceModel.cs | 2 +-
src/Core/SingleByteCharSetProber.cs | 2 +-
src/Core/ThaiModel.cs | 2 +-
src/Core/UCS2BESMModel.cs | 2 +-
src/Core/UCS2LESMModel.cs | 2 +-
src/Core/UTF8Prober.cs | 2 +-
src/Core/UTF8SMModel.cs | 2 +-
src/Core/Win1250HungarianModel.cs | 2 +-
src/Core/Win1251BulgarianModel.cs | 2 +-
src/Core/Win1251Model.cs | 2 +-
src/Core/Win1253Model.cs | 2 +-
src/Core/Win1255Model.cs | 2 +-
src/DetectionConfidence.cs | 2 +-
src/{V2 => }/DetectionResult.cs | 4 ++--
src/{V2 => }/DetectionSummary.cs | 2 +-
src/UTF-unknown.csproj | 1 +
tests/BitPackageTest.cs | 4 ++--
tests/CharsetDetectorTest.cs | 3 ++-
tests/CharsetDetectorTestBatch.cs | 3 ++-
tests/UTF-unknown.Tests.csproj | 1 +
73 files changed, 79 insertions(+), 75 deletions(-)
rename src/{V2 => }/DetectionResult.cs (96%)
rename src/{V2 => }/DetectionSummary.cs (97%)
diff --git a/example/Udetect.cs b/example/Udetect.cs
index 1505509..dc950d4 100644
--- a/example/Udetect.cs
+++ b/example/Udetect.cs
@@ -5,9 +5,9 @@
//
using System;
-using System.IO;
+using UtfUnknown;
-namespace Ude.Example
+namespace ConsoleExample
{
public class Udetect
{
diff --git a/src/CharsetDetector.cs b/src/CharsetDetector.cs
index 43e6e1c..92f4de2 100644
--- a/src/CharsetDetector.cs
+++ b/src/CharsetDetector.cs
@@ -40,9 +40,9 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
-using Ude.Core;
+using UtfUnknown.Core;
-namespace Ude
+namespace UtfUnknown
{
///
/// Default implementation of charset detection interface.
diff --git a/src/Core/BIG5DistributionAnalyser.cs b/src/Core/BIG5DistributionAnalyser.cs
index f44783e..fb91fb6 100644
--- a/src/Core/BIG5DistributionAnalyser.cs
+++ b/src/Core/BIG5DistributionAnalyser.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class BIG5DistributionAnalyser : CharDistributionAnalyser
{
diff --git a/src/Core/BIG5SMModel.cs b/src/Core/BIG5SMModel.cs
index e59a81f..b75c886 100644
--- a/src/Core/BIG5SMModel.cs
+++ b/src/Core/BIG5SMModel.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class BIG5SMModel : SMModel
{
diff --git a/src/Core/Big5Prober.cs b/src/Core/Big5Prober.cs
index af10359..27cdf4f 100644
--- a/src/Core/Big5Prober.cs
+++ b/src/Core/Big5Prober.cs
@@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class Big5Prober : CharsetProber
{
diff --git a/src/Core/BitPackage.cs b/src/Core/BitPackage.cs
index 2e66edb..3774579 100644
--- a/src/Core/BitPackage.cs
+++ b/src/Core/BitPackage.cs
@@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class BitPackage
{
diff --git a/src/Core/BulgarianModel.cs b/src/Core/BulgarianModel.cs
index a70a2c0..b44bac5 100644
--- a/src/Core/BulgarianModel.cs
+++ b/src/Core/BulgarianModel.cs
@@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public abstract class BulgarianModel : SequenceModel
{
diff --git a/src/Core/CharDistributionAnalyser.cs b/src/Core/CharDistributionAnalyser.cs
index fb5eab6..4e0b591 100644
--- a/src/Core/CharDistributionAnalyser.cs
+++ b/src/Core/CharDistributionAnalyser.cs
@@ -35,7 +35,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
///
/// Base class for the Character Distribution Method, used for
diff --git a/src/Core/CharsetProber.cs b/src/Core/CharsetProber.cs
index 650d74a..e77300f 100644
--- a/src/Core/CharsetProber.cs
+++ b/src/Core/CharsetProber.cs
@@ -38,7 +38,7 @@
using System.IO;
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public abstract class CharsetProber
{
diff --git a/src/Core/Charsets.cs b/src/Core/Charsets.cs
index d5ab94a..0d5242a 100644
--- a/src/Core/Charsets.cs
+++ b/src/Core/Charsets.cs
@@ -35,7 +35,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude
+namespace UtfUnknown.Core
{
///
/// TODO a lot of is unused
diff --git a/src/Core/CodingStateMachine.cs b/src/Core/CodingStateMachine.cs
index 5ae3030..f227df3 100644
--- a/src/Core/CodingStateMachine.cs
+++ b/src/Core/CodingStateMachine.cs
@@ -37,7 +37,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
///
/// Parallel state machine for the Coding Scheme Method
diff --git a/src/Core/CyrillicModel.cs b/src/Core/CyrillicModel.cs
index 245ce66..a046bea 100644
--- a/src/Core/CyrillicModel.cs
+++ b/src/Core/CyrillicModel.cs
@@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public abstract class CyrillicModel : SequenceModel
{
diff --git a/src/Core/EUCJPContextAnalyser.cs b/src/Core/EUCJPContextAnalyser.cs
index 141ea8c..acdbfb6 100644
--- a/src/Core/EUCJPContextAnalyser.cs
+++ b/src/Core/EUCJPContextAnalyser.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class EUCJPContextAnalyser : JapaneseContextAnalyser
{
diff --git a/src/Core/EUCJPDistributionAnalyser.cs b/src/Core/EUCJPDistributionAnalyser.cs
index 9fe4152..660b026 100644
--- a/src/Core/EUCJPDistributionAnalyser.cs
+++ b/src/Core/EUCJPDistributionAnalyser.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class EUCJPDistributionAnalyser : SJISDistributionAnalyser
{
diff --git a/src/Core/EUCJPProber.cs b/src/Core/EUCJPProber.cs
index 58a8211..7c5a82d 100644
--- a/src/Core/EUCJPProber.cs
+++ b/src/Core/EUCJPProber.cs
@@ -35,7 +35,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class EUCJPProber : CharsetProber
{
diff --git a/src/Core/EUCJPSMModel.cs b/src/Core/EUCJPSMModel.cs
index 60729f9..f6a1d53 100644
--- a/src/Core/EUCJPSMModel.cs
+++ b/src/Core/EUCJPSMModel.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class EUCJPSMModel : SMModel
{
diff --git a/src/Core/EUCKRDistributionAnalyser.cs b/src/Core/EUCKRDistributionAnalyser.cs
index e2aa724..01b3ad2 100644
--- a/src/Core/EUCKRDistributionAnalyser.cs
+++ b/src/Core/EUCKRDistributionAnalyser.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class EUCKRDistributionAnalyser : CharDistributionAnalyser
{
diff --git a/src/Core/EUCKRProber.cs b/src/Core/EUCKRProber.cs
index ad288ff..97fb1ef 100644
--- a/src/Core/EUCKRProber.cs
+++ b/src/Core/EUCKRProber.cs
@@ -35,7 +35,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class EUCKRProber : CharsetProber
{
diff --git a/src/Core/EUCKRSMModel.cs b/src/Core/EUCKRSMModel.cs
index 93806d1..48931f1 100644
--- a/src/Core/EUCKRSMModel.cs
+++ b/src/Core/EUCKRSMModel.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class EUCKRSMModel : SMModel
{
diff --git a/src/Core/EUCTWDistributionAnalyser.cs b/src/Core/EUCTWDistributionAnalyser.cs
index 8ef7c5f..252f63a 100644
--- a/src/Core/EUCTWDistributionAnalyser.cs
+++ b/src/Core/EUCTWDistributionAnalyser.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class EUCTWDistributionAnalyser : CharDistributionAnalyser
{
diff --git a/src/Core/EUCTWProber.cs b/src/Core/EUCTWProber.cs
index dabf09d..07e93a3 100644
--- a/src/Core/EUCTWProber.cs
+++ b/src/Core/EUCTWProber.cs
@@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class EUCTWProber : CharsetProber
{
diff --git a/src/Core/EUCTWSMModel.cs b/src/Core/EUCTWSMModel.cs
index c8b13be..51cca93 100644
--- a/src/Core/EUCTWSMModel.cs
+++ b/src/Core/EUCTWSMModel.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class EUCTWSMModel : SMModel
{
diff --git a/src/Core/EscCharsetProber.cs b/src/Core/EscCharsetProber.cs
index 4a3ac8a..3e67c9a 100644
--- a/src/Core/EscCharsetProber.cs
+++ b/src/Core/EscCharsetProber.cs
@@ -35,7 +35,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class EscCharsetProber : CharsetProber
{
diff --git a/src/Core/GB18030DistributionAnalyser.cs b/src/Core/GB18030DistributionAnalyser.cs
index fb3469b..0851e84 100644
--- a/src/Core/GB18030DistributionAnalyser.cs
+++ b/src/Core/GB18030DistributionAnalyser.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class GB18030DistributionAnalyser : CharDistributionAnalyser
{
diff --git a/src/Core/GB18030Prober.cs b/src/Core/GB18030Prober.cs
index e9a52b0..b327964 100644
--- a/src/Core/GB18030Prober.cs
+++ b/src/Core/GB18030Prober.cs
@@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
// We use gb18030 to replace gb2312, because 18030 is a superset.
public class GB18030Prober : CharsetProber
diff --git a/src/Core/GB18030SMModel.cs b/src/Core/GB18030SMModel.cs
index fd14f79..479f5c8 100644
--- a/src/Core/GB18030SMModel.cs
+++ b/src/Core/GB18030SMModel.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class GB18030SMModel : SMModel
{
diff --git a/src/Core/GreekModel.cs b/src/Core/GreekModel.cs
index 8a015b0..d8b3464 100644
--- a/src/Core/GreekModel.cs
+++ b/src/Core/GreekModel.cs
@@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public abstract class GreekModel : SequenceModel
{
diff --git a/src/Core/HZSMModel.cs b/src/Core/HZSMModel.cs
index 1be8c46..3a02881 100644
--- a/src/Core/HZSMModel.cs
+++ b/src/Core/HZSMModel.cs
@@ -39,7 +39,7 @@
///
/// Escaped charsets state machines
///
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class HZSMModel : SMModel
{
diff --git a/src/Core/HebrewModel.cs b/src/Core/HebrewModel.cs
index 9260d70..ef92579 100644
--- a/src/Core/HebrewModel.cs
+++ b/src/Core/HebrewModel.cs
@@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public abstract class HebrewModel : SequenceModel
{
diff --git a/src/Core/HebrewProber.cs b/src/Core/HebrewProber.cs
index b296568..166541f 100644
--- a/src/Core/HebrewProber.cs
+++ b/src/Core/HebrewProber.cs
@@ -135,7 +135,7 @@
* charset identified, either "windows-1255" or "ISO-8859-8".
*
*/
-namespace Ude.Core
+namespace UtfUnknown.Core
{
///
diff --git a/src/Core/HungarianModel.cs b/src/Core/HungarianModel.cs
index b17970d..cde6544 100644
--- a/src/Core/HungarianModel.cs
+++ b/src/Core/HungarianModel.cs
@@ -35,7 +35,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public abstract class HungarianModel : SequenceModel
{
diff --git a/src/Core/ISO2022CNSMModel.cs b/src/Core/ISO2022CNSMModel.cs
index b0441f1..a317917 100644
--- a/src/Core/ISO2022CNSMModel.cs
+++ b/src/Core/ISO2022CNSMModel.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class ISO2022CNSMModel : SMModel
{
diff --git a/src/Core/ISO2022JPSMModel.cs b/src/Core/ISO2022JPSMModel.cs
index 5f519bd..53f8431 100644
--- a/src/Core/ISO2022JPSMModel.cs
+++ b/src/Core/ISO2022JPSMModel.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class ISO2022JPSMModel : SMModel
{
diff --git a/src/Core/ISO2022KRSMModel.cs b/src/Core/ISO2022KRSMModel.cs
index f982758..c630115 100644
--- a/src/Core/ISO2022KRSMModel.cs
+++ b/src/Core/ISO2022KRSMModel.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class ISO2022KRSMModel : SMModel
{
diff --git a/src/Core/Ibm855Model.cs b/src/Core/Ibm855Model.cs
index 936c2ff..6aba62d 100644
--- a/src/Core/Ibm855Model.cs
+++ b/src/Core/Ibm855Model.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class Ibm855Model : CyrillicModel
{
diff --git a/src/Core/Ibm866Model.cs b/src/Core/Ibm866Model.cs
index 09e3787..3e6416a 100644
--- a/src/Core/Ibm866Model.cs
+++ b/src/Core/Ibm866Model.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class Ibm866Model : CyrillicModel
{
diff --git a/src/Core/InputState.cs b/src/Core/InputState.cs
index df9d81d..28f398f 100644
--- a/src/Core/InputState.cs
+++ b/src/Core/InputState.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
enum InputState
{
diff --git a/src/Core/JapaneseContextAnalyser.cs b/src/Core/JapaneseContextAnalyser.cs
index 1303e05..b3f451e 100644
--- a/src/Core/JapaneseContextAnalyser.cs
+++ b/src/Core/JapaneseContextAnalyser.cs
@@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public abstract class JapaneseContextAnalyser
{
diff --git a/src/Core/Koi8rModel.cs b/src/Core/Koi8rModel.cs
index 0a37686..752b4c2 100644
--- a/src/Core/Koi8rModel.cs
+++ b/src/Core/Koi8rModel.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class Koi8rModel : CyrillicModel
{
diff --git a/src/Core/Latin1Prober.cs b/src/Core/Latin1Prober.cs
index a8546df..5a85955 100644
--- a/src/Core/Latin1Prober.cs
+++ b/src/Core/Latin1Prober.cs
@@ -38,7 +38,7 @@
using System;
-namespace Ude.Core
+namespace UtfUnknown.Core
{
// TODO: Using trigrams the detector should be able to discriminate between
// latin-1 and iso8859-2
diff --git a/src/Core/Latin2HungarianModel.cs b/src/Core/Latin2HungarianModel.cs
index 3bfab2e..5356ecc 100644
--- a/src/Core/Latin2HungarianModel.cs
+++ b/src/Core/Latin2HungarianModel.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class Latin2HungarianModel : HungarianModel
{
diff --git a/src/Core/Latin5BulgarianModel.cs b/src/Core/Latin5BulgarianModel.cs
index b486964..d397a2e 100644
--- a/src/Core/Latin5BulgarianModel.cs
+++ b/src/Core/Latin5BulgarianModel.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class Latin5BulgarianModel : BulgarianModel
{
diff --git a/src/Core/Latin5Model.cs b/src/Core/Latin5Model.cs
index 0f975e8..badef07 100644
--- a/src/Core/Latin5Model.cs
+++ b/src/Core/Latin5Model.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class Latin5Model : CyrillicModel
{
diff --git a/src/Core/Latin7Model.cs b/src/Core/Latin7Model.cs
index f181e9f..bd135a9 100644
--- a/src/Core/Latin7Model.cs
+++ b/src/Core/Latin7Model.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class Latin7Model : GreekModel
{
diff --git a/src/Core/MBCSGroupProber.cs b/src/Core/MBCSGroupProber.cs
index dcc9f06..1060cbc 100644
--- a/src/Core/MBCSGroupProber.cs
+++ b/src/Core/MBCSGroupProber.cs
@@ -38,7 +38,7 @@
using System;
-namespace Ude.Core
+namespace UtfUnknown.Core
{
///
/// Multi-byte charsets probers
diff --git a/src/Core/MacCyrillicModel.cs b/src/Core/MacCyrillicModel.cs
index 39e9666..f6b44c7 100644
--- a/src/Core/MacCyrillicModel.cs
+++ b/src/Core/MacCyrillicModel.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class MacCyrillicModel : CyrillicModel
{
diff --git a/src/Core/ProbingState.cs b/src/Core/ProbingState.cs
index b3b6013..c932f88 100644
--- a/src/Core/ProbingState.cs
+++ b/src/Core/ProbingState.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public enum ProbingState
{
diff --git a/src/Core/SBCSGroupProber.cs b/src/Core/SBCSGroupProber.cs
index 2d38e09..1223136 100644
--- a/src/Core/SBCSGroupProber.cs
+++ b/src/Core/SBCSGroupProber.cs
@@ -38,7 +38,7 @@
using System;
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class SBCSGroupProber : CharsetProber
{
diff --git a/src/Core/SJISContextAnalyser.cs b/src/Core/SJISContextAnalyser.cs
index e74a442..34ff82b 100644
--- a/src/Core/SJISContextAnalyser.cs
+++ b/src/Core/SJISContextAnalyser.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class SJISContextAnalyser : JapaneseContextAnalyser
{
diff --git a/src/Core/SJISDistributionAnalyser.cs b/src/Core/SJISDistributionAnalyser.cs
index 7b1275e..5c91717 100644
--- a/src/Core/SJISDistributionAnalyser.cs
+++ b/src/Core/SJISDistributionAnalyser.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class SJISDistributionAnalyser : CharDistributionAnalyser
{
diff --git a/src/Core/SJISProber.cs b/src/Core/SJISProber.cs
index 0368dc4..b246845 100644
--- a/src/Core/SJISProber.cs
+++ b/src/Core/SJISProber.cs
@@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
///
/// for S-JIS encoding, observe characteristic:
diff --git a/src/Core/SJISSMModel.cs b/src/Core/SJISSMModel.cs
index b5a0c76..942f14c 100644
--- a/src/Core/SJISSMModel.cs
+++ b/src/Core/SJISSMModel.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class SJISSMModel : SMModel
{
diff --git a/src/Core/SMModel.cs b/src/Core/SMModel.cs
index 340a78e..c8cf344 100644
--- a/src/Core/SMModel.cs
+++ b/src/Core/SMModel.cs
@@ -38,7 +38,7 @@
using System;
-namespace Ude.Core
+namespace UtfUnknown.Core
{
///
/// State machine model
diff --git a/src/Core/SequenceModel.cs b/src/Core/SequenceModel.cs
index 04ad46f..96d8bb1 100644
--- a/src/Core/SequenceModel.cs
+++ b/src/Core/SequenceModel.cs
@@ -38,7 +38,7 @@
using System;
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public abstract class SequenceModel
{
diff --git a/src/Core/SingleByteCharSetProber.cs b/src/Core/SingleByteCharSetProber.cs
index d636ed6..b34e1a9 100644
--- a/src/Core/SingleByteCharSetProber.cs
+++ b/src/Core/SingleByteCharSetProber.cs
@@ -38,7 +38,7 @@
using System;
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class SingleByteCharSetProber : CharsetProber
diff --git a/src/Core/ThaiModel.cs b/src/Core/ThaiModel.cs
index 9e4a89f..7f6b8b6 100644
--- a/src/Core/ThaiModel.cs
+++ b/src/Core/ThaiModel.cs
@@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class ThaiModel : SequenceModel
{
diff --git a/src/Core/UCS2BESMModel.cs b/src/Core/UCS2BESMModel.cs
index 0364780..04ea053 100644
--- a/src/Core/UCS2BESMModel.cs
+++ b/src/Core/UCS2BESMModel.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class UCS2BESMModel : SMModel
{
diff --git a/src/Core/UCS2LESMModel.cs b/src/Core/UCS2LESMModel.cs
index 9085936..6f86e0d 100644
--- a/src/Core/UCS2LESMModel.cs
+++ b/src/Core/UCS2LESMModel.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class UCS2LESMModel : SMModel
{
diff --git a/src/Core/UTF8Prober.cs b/src/Core/UTF8Prober.cs
index 51db0d0..2ee2d59 100644
--- a/src/Core/UTF8Prober.cs
+++ b/src/Core/UTF8Prober.cs
@@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class UTF8Prober : CharsetProber
{
diff --git a/src/Core/UTF8SMModel.cs b/src/Core/UTF8SMModel.cs
index 4fac311..f4d7309 100644
--- a/src/Core/UTF8SMModel.cs
+++ b/src/Core/UTF8SMModel.cs
@@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class UTF8SMModel : SMModel
{
diff --git a/src/Core/Win1250HungarianModel.cs b/src/Core/Win1250HungarianModel.cs
index e1a9dcc..729face 100644
--- a/src/Core/Win1250HungarianModel.cs
+++ b/src/Core/Win1250HungarianModel.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class Win1250HungarianModel : HungarianModel
{
diff --git a/src/Core/Win1251BulgarianModel.cs b/src/Core/Win1251BulgarianModel.cs
index 2737477..7716553 100644
--- a/src/Core/Win1251BulgarianModel.cs
+++ b/src/Core/Win1251BulgarianModel.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class Win1251BulgarianModel : BulgarianModel
{
diff --git a/src/Core/Win1251Model.cs b/src/Core/Win1251Model.cs
index 2749ef1..b602c46 100644
--- a/src/Core/Win1251Model.cs
+++ b/src/Core/Win1251Model.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class Win1251Model : CyrillicModel
{
diff --git a/src/Core/Win1253Model.cs b/src/Core/Win1253Model.cs
index e6605ab..a5a228b 100644
--- a/src/Core/Win1253Model.cs
+++ b/src/Core/Win1253Model.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class Win1253Model : GreekModel
{
diff --git a/src/Core/Win1255Model.cs b/src/Core/Win1255Model.cs
index ade259b..aaf4698 100644
--- a/src/Core/Win1255Model.cs
+++ b/src/Core/Win1255Model.cs
@@ -1,4 +1,4 @@
-namespace Ude.Core
+namespace UtfUnknown.Core
{
public class Win1255Model : HebrewModel
{
diff --git a/src/DetectionConfidence.cs b/src/DetectionConfidence.cs
index e3daccb..46db4ad 100644
--- a/src/DetectionConfidence.cs
+++ b/src/DetectionConfidence.cs
@@ -36,7 +36,7 @@
*
* ***** END LICENSE BLOCK ***** */
-namespace Ude
+namespace UtfUnknown
{
///
/// TODO not used?
diff --git a/src/V2/DetectionResult.cs b/src/DetectionResult.cs
similarity index 96%
rename from src/V2/DetectionResult.cs
rename to src/DetectionResult.cs
index 6107203..73bacf2 100644
--- a/src/V2/DetectionResult.cs
+++ b/src/DetectionResult.cs
@@ -1,8 +1,8 @@
using System;
using System.Text;
-using Ude.Core;
+using UtfUnknown.Core;
-namespace Ude
+namespace UtfUnknown
{
public class DetectionResult
{
diff --git a/src/V2/DetectionSummary.cs b/src/DetectionSummary.cs
similarity index 97%
rename from src/V2/DetectionSummary.cs
rename to src/DetectionSummary.cs
index f67049f..0849acf 100644
--- a/src/V2/DetectionSummary.cs
+++ b/src/DetectionSummary.cs
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.Linq;
-namespace Ude
+namespace UtfUnknown
{
public class DetectionSummary
{
diff --git a/src/UTF-unknown.csproj b/src/UTF-unknown.csproj
index a5ce717..52d1881 100644
--- a/src/UTF-unknown.csproj
+++ b/src/UTF-unknown.csproj
@@ -38,6 +38,7 @@
false
git
https://github.com/CharsetDetector/UTF-unknown
+ UtfUnknown