-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#539 Add support for cp1364 and cp1388.
Conversion tables contributed by [@BenceBenedek](https://github.com/BenceBenedek).
- Loading branch information
Showing
11 changed files
with
3,471 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/codepage/CodePage1364.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright 2018 ABSA Group Limited | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package za.co.absa.cobrix.cobol.parser.encoding.codepage | ||
|
||
import za.co.absa.cobrix.cobol.parser.encoding.codepage.TwoByteCodePage.createEbcdicToUnicodeTable | ||
|
||
/** | ||
* EBCDIC code page CCSID-1364 (Korean). | ||
*/ | ||
class CodePage1364 extends TwoByteCodePage(CodePage1364.ebcdicToAsciiMapping) { | ||
override def codePageShortName: String = "cp1364" | ||
} | ||
|
||
object CodePage1364 { | ||
val ebcdicToAsciiMapping: Array[Char] = { | ||
/** | ||
* This is the EBCDIC Code Page 1364 contributed by https://github.com/BenceBenedek | ||
* https://www.ibm.com/docs/en/i/7.3?topic=reference-ccsid-values | ||
*/ | ||
createEbcdicToUnicodeTable(TwoByteTables1364.mappingTableEbcdic1364(), TwoByteTables1364.mappingTableUnicode1364()) | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/codepage/CodePage1388.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright 2018 ABSA Group Limited | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package za.co.absa.cobrix.cobol.parser.encoding.codepage | ||
|
||
import za.co.absa.cobrix.cobol.parser.encoding.codepage.TwoByteCodePage.createEbcdicToUnicodeTable | ||
|
||
/** | ||
* EBCDIC code page CCSID-1388 (Simplified Chinese) | ||
*/ | ||
class CodePage1388 extends TwoByteCodePage(CodePage1388.ebcdicToAsciiMapping) { | ||
override def codePageShortName: String = "cp1388" | ||
} | ||
|
||
object CodePage1388 { | ||
val ebcdicToAsciiMapping: Array[Char] = { | ||
/** | ||
* This is the EBCDIC Code Page 1388 contributed by https://github.com/BenceBenedek | ||
* https://www.ibm.com/docs/en/i/7.3?topic=reference-ccsid-values | ||
*/ | ||
createEbcdicToUnicodeTable(TwoByteTables1388.mappingTableEbcdic1388(), TwoByteTables1388.mappingTableUnicode1388()) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 0 additions & 37 deletions
37
...parser/src/main/scala/za/co/absa/cobrix/cobol/parser/encoding/codepage/TwoByteTables.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.