13 # |
13 # |
14 # This library is free software; you can redistribute it and/or |
14 # This library is free software; you can redistribute it and/or |
15 # modify it under the terms of the GNU Lesser General Public |
15 # modify it under the terms of the GNU Lesser General Public |
16 # License as published by the Free Software Foundation; either |
16 # License as published by the Free Software Foundation; either |
17 # version 2.1 of the License, or (at your option) any later version. |
17 # version 2.1 of the License, or (at your option) any later version. |
18 # |
18 # |
19 # This library is distributed in the hope that it will be useful, |
19 # This library is distributed in the hope that it will be useful, |
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
22 # Lesser General Public License for more details. |
22 # Lesser General Public License for more details. |
23 # |
23 # |
24 # You should have received a copy of the GNU Lesser General Public |
24 # You should have received a copy of the GNU Lesser General Public |
25 # License along with this library; if not, write to the Free Software |
25 # License along with this library; if not, write to the Free Software |
26 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
26 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
27 # 02110-1301 USA |
27 # 02110-1301 USA |
28 ######################### END LICENSE BLOCK ######################### |
28 ######################### END LICENSE BLOCK ######################### |
31 from .utf8prober import UTF8Prober |
31 from .utf8prober import UTF8Prober |
32 from .sjisprober import SJISProber |
32 from .sjisprober import SJISProber |
33 from .eucjpprober import EUCJPProber |
33 from .eucjpprober import EUCJPProber |
34 from .gb2312prober import GB2312Prober |
34 from .gb2312prober import GB2312Prober |
35 from .euckrprober import EUCKRProber |
35 from .euckrprober import EUCKRProber |
|
36 from .cp949prober import CP949Prober |
36 from .big5prober import Big5Prober |
37 from .big5prober import Big5Prober |
37 from .euctwprober import EUCTWProber |
38 from .euctwprober import EUCTWProber |
|
39 |
38 |
40 |
39 class MBCSGroupProber(CharSetGroupProber): |
41 class MBCSGroupProber(CharSetGroupProber): |
40 def __init__(self): |
42 def __init__(self): |
41 CharSetGroupProber.__init__(self) |
43 CharSetGroupProber.__init__(self) |
42 self._mProbers = [ \ |
44 self._mProbers = [ |
43 UTF8Prober(), |
45 UTF8Prober(), |
44 SJISProber(), |
46 SJISProber(), |
45 EUCJPProber(), |
47 EUCJPProber(), |
46 GB2312Prober(), |
48 GB2312Prober(), |
47 EUCKRProber(), |
49 EUCKRProber(), |
|
50 CP949Prober(), |
48 Big5Prober(), |
51 Big5Prober(), |
49 EUCTWProber()] |
52 EUCTWProber() |
|
53 ] |
50 self.reset() |
54 self.reset() |