JPH04150112A - Character code checking processor - Google Patents

Character code checking processor

Info

Publication number
JPH04150112A
JPH04150112A JP27107590A JP27107590A JPH04150112A JP H04150112 A JPH04150112 A JP H04150112A JP 27107590 A JP27107590 A JP 27107590A JP 27107590 A JP27107590 A JP 27107590A JP H04150112 A JPH04150112 A JP H04150112A
Authority
JP
Japan
Prior art keywords
code
character
character code
byte
section
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP27107590A
Other languages
Japanese (ja)
Inventor
Hideyuki Hoshi
星 英幸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP27107590A priority Critical patent/JPH04150112A/en
Publication of JPH04150112A publication Critical patent/JPH04150112A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To improve the reliability and to reduce the processing time by identifying whether a character code is a one-byte code or a two-byte code and retrieving whether or not the character code is stored in a character code storage section. CONSTITUTION:A shift code detection section 3 detects an undesired shift code by the check item of an input record and a code type identification section 4 identifies that the code to be checked is whether the code is a one-byte code or a two-byte code and applies a required processing. Then a character code retrieval control section 5 accesses a character code storage section 6 based on the checking mode, decides the result of retrieval and controls a pointer to check a succeeding code when the code is normal and informs the information to a result display section 7 when the code is in error. Thus, even an item in which a one-byte code system and a two-byte code system are present in mixture is checked, the information with high reliability is secured and the processing time is shortened.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は文字コードチェック処理装置に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a character code check processing device.

〔従来の技術〕[Conventional technology]

近年、情報処理装置は高度な使用をされることが多くな
ってきており、またその情報量も増大している。従って
その信頼性の向上と処理時間の短縮は重要な課題となっ
ている。例えば、データベース等の外部記憶装置の記憶
情報を更新する場合にその更新情報に誤ったコードがな
いかどうかのチェックを行なうとき、従来の方式では同
一項目内のコードのチェックにおいてシフトコードを検
出する機能と1バイト系コードか2バイト系コードなの
かを識別する機能がなかったので、1バイト系コードと
2バイト系コードの混在している項目のチェックは不可
能であった。
In recent years, information processing devices have been increasingly used in sophisticated ways, and the amount of information they contain has also increased. Therefore, improving the reliability and shortening the processing time are important issues. For example, when updating information stored in an external storage device such as a database and checking whether there are any incorrect codes in the updated information, conventional methods detect shift codes when checking codes within the same item. Since there was no function to distinguish between 1-byte code and 2-byte code, it was impossible to check items in which 1-byte code and 2-byte code were mixed.

また、1バイトコード、2バイトコードをそれぞれ全コ
ード収録している文字コード記憶部については、1つの
文字単位に全コード配列されている収録方式であったた
め記憶容量の大きいものが必要であった。
In addition, the character code storage unit that stores all 1-byte and 2-byte codes required a large memory capacity because the recording method was to arrange all codes for each character. .

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかし、近年の情報処理の複雑化、情報量の増大化など
の理由から、上述のような従来のシステムでは、対応し
きれなくなっている。
However, due to the complexity of information processing and the increase in the amount of information in recent years, the conventional systems described above are no longer able to cope with this problem.

データベースなどの外部記憶装置の記憶情報には誤った
情報は入らないようにチェックをかけるが、文字情報に
おいては1バイト系コード、2バイト系コードが混在し
ている項目に関してはチェックすることができないとい
う問題がある。
Information stored in external storage devices such as databases is checked to prevent incorrect information from entering, but character information cannot be checked for items that contain a mixture of 1-byte and 2-byte codes. There is a problem.

また美大な情報量のため処理時間が長いという問題もあ
る。
Another problem is that the processing time is long due to the large amount of information.

文字コード記憶部に関しては美大なコード数のため記憶
容量も大きくなるという問題がある。
Regarding the character code storage section, there is a problem in that the storage capacity is also large due to the large number of codes.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の文字コードチェック処理装置は、外部媒体より
入力されたレコードの文字コードの妥当性のチェックを
行い文字として定義されていないコードを識別するシス
テムにおいて、前記システムを起動するために必要な情
報を与え前記情報によって前記システムの制御を行う起
動情報制御部と、レコードに収録されている不要なシフ
トコードを検出するシフトコード検出部と、チェックす
る文字コードが1バイトコードか2バイI・コードかを
識別するコート種別識別部と、各文字コードが収録され
ている文字コード記憶部と、入力された文字コードが前
記文字コード記憶部に収録されているかどうか検索を行
う文字コード検索制御部とを有する。
The character code check processing device of the present invention is a system that checks the validity of character codes of records input from an external medium and identifies codes that are not defined as characters, and provides information necessary for starting the system. a startup information control unit that controls the system based on the information; a shift code detection unit that detects unnecessary shift codes recorded in records; and a shift code detection unit that detects whether the character code to be checked is a 1-byte code or a 2-byte I code. a code type identification unit for identifying whether the character code is a code type, a character code storage unit storing each character code, and a character code search control unit for searching whether the input character code is stored in the character code storage unit; has.

また、本発明の文字コードチェック処理装置において、
コード種別識別部は入力されたレコードの1文字ごとに
コード種別を識別するようにして構成される。
Further, in the character code check processing device of the present invention,
The code type identification section is configured to identify the code type for each character of the input record.

さらに、本発明の文字コードチェック処理装置において
、文字コード記憶部は2次元テーブル3階層型の2バイ
トコードテーブルを有する。
Furthermore, in the character code check processing device of the present invention, the character code storage section has a 2-byte code table with a 3-layer 2-dimensional table.

〔実施例〕〔Example〕

以下図面を参照しつつ本発明について説明する。 The present invention will be described below with reference to the drawings.

第1図は本発明の一実施例を示す構成図、第2図はシス
テム全体の処理を示す説明図、第3図は文字コード記憶
部の構成を示す説明図である。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram showing the processing of the entire system, and FIG. 3 is an explanatory diagram showing the configuration of a character code storage section.

図中、1は入力レコードアクセス部、2は起動情報制御
部、3はシフトコード検出部、4はコード種別識別部、
5は文字コード検索制御部、6は文字コード記憶部を表
す。
In the figure, 1 is an input record access section, 2 is a startup information control section, 3 is a shift code detection section, 4 is a code type identification section,
5 represents a character code search control section, and 6 represents a character code storage section.

入力レコードアクセス部1は外部媒体上(磁気ディスク
、磁気テープ、フロッピーディスクなど)のファイルを
読み込んでデータの処理を実行する。起動情報制御部2
は利用者がこのシステムを起動するために必要な情報を
与え、それによってシステムの制御を行う。必要な情報
とは、コード体系(JIS−EBCIDIK)、有効バ
イト数、出力装置指定である。この情報をシフトコード
検出部3.コード種別識別部4.結果表示部7に通知し
、この情報によって処理する。
The input record access unit 1 reads a file on an external medium (magnetic disk, magnetic tape, floppy disk, etc.) and processes the data. Startup information control unit 2
gives the user the information necessary to start this system, and controls the system accordingly. The necessary information is the code system (JIS-EBCIDIK), the number of effective bytes, and the output device designation. This information is transferred to the shift code detection section 3. Code type identification section 4. The result display unit 7 is notified and processing is performed based on this information.

シフトコード検出部3は入力レコードのチェック項目に
おいて不要なシフトコードを検出する。
The shift code detection unit 3 detects unnecessary shift codes in check items of input records.

シフトコードのバイト数分をチェック項目の先頭のバイ
ト数から取り出し、1バイトシフトコード、2バイトシ
フトコードと照合してチェック処理を行う。例えば、不
要なシフトコードとは同じシフトコードが2個以上連続
で出現したときの2個目以降のシフトコードなとである
。不要なシフトコードを検出した場合には結果表示部7
へ通知する。
The number of bytes of the shift code is taken out from the number of bytes at the beginning of the check item, and the checking process is performed by comparing it with the 1-byte shift code and the 2-byte shift code. For example, unnecessary shift codes include the second and subsequent shift codes when two or more of the same shift codes appear consecutively. If an unnecessary shift code is detected, the result display section 7
Notify.

コード種別識別部4は、現在のチェックするコードが1
バイトコードであるのか2バイトコードなのかを識別し
処理を行う。シフトコード検出部3において1バイトシ
フトコードを検出した場合にチェックモードに1を、2
バイトコードを検出した場合にはチェックモードに2を
それぞれ設定し、コード種別識別部4によって上記のチ
ェックモードを参照し識別する。
The code type identification unit 4 indicates that the current code to be checked is 1.
It identifies whether it is a byte code or a 2-byte code and processes it. When the shift code detection unit 3 detects a 1-byte shift code, the check mode is set to 1 and 2.
When a bytecode is detected, the check mode is set to 2, and the code type identifying section 4 refers to the above check mode for identification.

文字コード検索制御部5はチェックモードをもとに文字
コード記憶部6をアクセスする。文字コードテーブルを
参照するに当たって配列の添字の操作を行い、2次元テ
ーブルの3階層型を制御している。検索の結果を判定し
、正常の場合には次のコードをチェックするためにポイ
ンタの操作を行う。エラーの場合にはその情報を結果表
示部7に通知する。
The character code search control section 5 accesses the character code storage section 6 based on the check mode. When referring to the character code table, the subscripts of the array are manipulated to control the three-layer type of the two-dimensional table. The search result is determined, and if it is normal, the pointer is manipulated to check the next code. In the case of an error, the information is notified to the result display section 7.

文字コード記憶部6は、EBCIDIKIバイトコード
、EBCIDIK2バイトコード、JIS1バイトコー
ド、JIS2バイトコードを収録している。2バイトコ
ードのテーブルは2次元テーブルの3階層型になってい
る。(第3図参照)。
The character code storage unit 6 stores an EBCIDIKI bytecode, an EBCIDIK2 bytecode, a JIS1 bytecode, and a JIS2 bytecode. The 2-byte code table is a three-layered two-dimensional table. (See Figure 3).

結果表示部7はシフトコード検出部3や文字コード検索
制御部5からエラー情報を受は取り、利用者に通知する
。コンソール及び印刷装置の選択は利用者が行うことか
できる。
The result display section 7 receives error information from the shift code detection section 3 and character code search control section 5, and notifies the user. The console and printing device can be selected by the user.

次に上記の文字コートチェック処理装置の動作について
説明する。ます、第2図を参照すると、処理20は外部
媒体上(磁気ディスク、磁気テープ、フロッピーディス
クなど)のファイルを読み込む。読み込んだレコードの
チェック項目について、処理21のシフトコードチェッ
クにおいて不要なシフトコードを検出する。
Next, the operation of the above-mentioned character coat check processing device will be explained. Referring now to FIG. 2, a process 20 reads a file on an external medium (magnetic disk, magnetic tape, floppy disk, etc.). Regarding the check items of the read record, unnecessary shift codes are detected in the shift code check in process 21.

処理22の判定結果によりエラーの場合は、エラー情報
を結果表示部7に通知する。処理22の判定結果が正常
の場合は、処理23によって検出されたシフトコードが
1バイトシフトコードか2バイトシフトコードかを識別
し、各コードの文字検索を行う。
If the determination result in process 22 is an error, error information is notified to the result display unit 7. If the determination result in process 22 is normal, process 23 identifies whether the detected shift code is a 1-byte shift code or a 2-byte shift code, and performs a character search for each code.

1バイトシフトコードの場合は、処理24によって文字
コード記憶部6の1ハイド系テーブルを参照し該当文字
コードを検索する。
In the case of a 1-byte shift code, the 1-hide table in the character code storage section 6 is referred to in step 24 to search for the corresponding character code.

2バイトシフトコードの場合は、処理25によって1バ
イトシフトコードの場合と同様に2バイト系テーブルを
参照して該当文字コードを検索する。
In the case of a 2-byte shift code, the corresponding character code is searched by referring to the 2-byte table in step 25 in the same way as in the case of a 1-byte shift code.

処理26は上記の検索結果を判定し、エラーの場合は結
果表示部7にエラー情報を知らせる。正常の場合は、チ
ェックモードが1の時ポインタに1を加える。チェック
モードが2の時はポインタに2加え、有効バイト数にな
るまで処理21のシフトコードチェックを行い、その後
処理22.処理23を繰り返す。
A process 26 judges the above search results, and in the case of an error, notifies the result display section 7 of error information. If it is normal, add 1 to the pointer when the check mode is 1. When the check mode is 2, add 2 to the pointer, perform shift code check in process 21 until the number of valid bytes is reached, and then perform process 22. Repeat process 23.

処理27はエラー情報を編集してコンソールまたは印刷
装置によって利用者に通知する。
Process 27 edits the error information and notifies the user via the console or printing device.

〔発明の効果〕〔Effect of the invention〕

以上説明した如く本発明によれば、1バイト系コード、
2バイト系コードが混在した項目においてもチェックが
可能なので、より信頼性の高い情報を確保できる。また
処理時間も短縮することができる。
As explained above, according to the present invention, 1-byte code,
Since it is possible to check even items containing a mixture of double-byte codes, more reliable information can be secured. Furthermore, processing time can also be shortened.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の一実施例を示す構成図、第2図は処理
を示す説明図、第3図は文字コード記憶部のテーブル構
成を示す説明図である。 1・・・入力レコードアクセス部、2・・・起動情報制
御部、3・・・シフトコード検出部、4・・・コード種
別識別部、5・・・文字コード検索制御部、6・・・文
字コード記憶部。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram showing processing, and FIG. 3 is an explanatory diagram showing the table structure of a character code storage section. DESCRIPTION OF SYMBOLS 1... Input record access section, 2... Start-up information control section, 3... Shift code detection section, 4... Code type identification section, 5... Character code search control section, 6... Character code storage section.

Claims (1)

【特許請求の範囲】 1、外部媒体より入力されたレコードの文字コードの妥
当性のチェックを行い文字として定義されていないコー
ドを識別するシステムにおいて、前記システムを起動す
るために必要な情報を与え前記情報によって前記システ
ムの制御を行う起動情報制御部と、レコードに収録され
ている不要なシフトコードを検出するシフトコード検出
部と、チェックする文字コードが1バイトコードか2バ
イトコードかを識別するコード種別識別部と、各文字コ
ードが収録されている文字コード記憶部と、入力された
文字コードが前記文字コード記憶部に収録されているか
どうか検索を行う文字コード検索制御部とを有すること
を特徴とする文字コードチェック処理装置。 2、請求項1記載の文字コードチェック処理装置におい
て、コード種別識別部は入力されたレコードの1文字ご
とにコード種別を識別することを特徴とする文字コード
チェック処理装置。 3、請求項1または2記載の文字コードチェック処理装
置において、文字コード記憶部は2次元テーブル3階層
型の2バイトコードテーブルを有することを特徴とする
文字コードチェック処理装置。
[Claims] 1. In a system that checks the validity of character codes of records input from an external medium and identifies codes that are not defined as characters, the system provides information necessary to start the system. A startup information control unit that controls the system based on the information, a shift code detection unit that detects unnecessary shift codes recorded in records, and identifies whether the character code to be checked is a 1-byte code or a 2-byte code. The present invention includes a code type identification section, a character code storage section storing each character code, and a character code search control section that searches whether the input character code is stored in the character code storage section. Characteristic character code check processing device. 2. The character code check processing device according to claim 1, wherein the code type identifying section identifies the code type for each character of the input record. 3. The character code check processing device according to claim 1 or 2, wherein the character code storage section has a 2-byte code table with a 3-layer two-dimensional table.
JP27107590A 1990-10-09 1990-10-09 Character code checking processor Pending JPH04150112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27107590A JPH04150112A (en) 1990-10-09 1990-10-09 Character code checking processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27107590A JPH04150112A (en) 1990-10-09 1990-10-09 Character code checking processor

Publications (1)

Publication Number Publication Date
JPH04150112A true JPH04150112A (en) 1992-05-22

Family

ID=17495033

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27107590A Pending JPH04150112A (en) 1990-10-09 1990-10-09 Character code checking processor

Country Status (1)

Country Link
JP (1) JPH04150112A (en)

Similar Documents

Publication Publication Date Title
JPH0765035A (en) Structured document retrieving device
WO2001093263A1 (en) Information recording medium, information recording method, information recording apparatus, information reproducing method, and information reproducing apparatus
JPH04150112A (en) Character code checking processor
US6738771B2 (en) Data processing method, computer readable recording medium, and data processing device
JPH081642B2 (en) Keyword search method
JPH02151944A (en) Data processor
JPS6014324A (en) Associative storage device
JP3348279B2 (en) Price lookup data search circuit, search method therefor, and recording medium storing control program therefor
US6356895B1 (en) Method and computer program product for processing system files using a trigger program
JPH036634A (en) File storing system for floppy disk
JPH04230576A (en) Method for retrieving record
JPH10240744A (en) System for processing retrieval of range division chart and method therefor and recording medium for recording retrieval processing program
JP2002007536A (en) Data base retrieval system of business office system
JPH0327457A (en) Definition system for multi-media data item attribute
JPH0664599B2 (en) Document file search device
JPH04342044A (en) Record retrieving device
JPH05120340A (en) Routing address managing method
JPH0210468A (en) Picture information reading-out method
JPH03276254A (en) Document control system
JPH07121312A (en) Initializing system
JPH0447581A (en) File storing system for floppy disk
JPS629433A (en) Data base access mechanism
JPH0973462A (en) Method and device for drawing retrieval
JPS63250739A (en) Filing device
JPH023871A (en) Picture information filing device