表示領域の右側にある表示区画には、ファイルの ASCII 表示ビューが表示されます。

3.1. 使用方法

ファイルを編集する

  1. ファイルを編集するには、下記の手順に従います。

  2. ファイルの ASCII ビューまたは 16 進ビューをクリックします。カーソルがアクティブなビューでは、カーソルがフル表示されます。カーソルがアクティブでない ビューでは、カーソルがアウトライン表示されます。

    • Use the scrollbar on the window or the arrow keys on the keyboard to scroll through the file.
    • ウィンドウ上のスクロールバーまたはキーボード上の矢印キーを用いて、ファイルをスクロールします。
  3. Edit the ASCII format in the same way you edit a normal text file. To edit the hexadecimal format, use the values 0 to 9 and a to f.

To insert data and not overwrite existing data, choose Edit ▸ Insert Mode.

To cut, copy, and paste data, choose Edit ▸ Cut, Edit ▸ Copy, and Edit ▸ Paste.

To undo an edit, choose Edit ▸ Undo. To redo an edit, choose Edit ▸ Redo. The number of previous edits that you can undo is determined by the Maximum number of undo levels setting in the セクション 4.1 - GHex を設定するには、「編集」 ▸ 「設定」を選択します。「設定」ダイアログには下記のタブが表示されます。 tabbed section of the Preferences dialog.

3.2. 既存のデータを上書きせずに新規データを挿入したい場合は「編集」 ▸ 「挿入モード」を選択します。

ファイルを保存する

  • ファイルの保存は、下記のいずれかの方法で行えます。
  • ファイルに加えた変更を保存するには、「ファイル」 ▸ 「保存」を選択します。

3.3. To Revert to the Last Saved Version of a File

To revert to the last version of the current file that you saved and undo all of the edits that you made to the file since you last saved the file, choose File ▸ Revert, then click Yes in the Question dialog.

3.4. 現在のファイルを新規ファイル名で保存するには、「ファイル」 ▸ 「名前をつけて保存」を選択します。この場合は「バッファを書き込むファイル名を選択」ダイアログに新規フ ァイル名を入力し、「了解」をクリックします。

ファイル内のデータを検索する

  1. ファイル内にある ASCII ないし 16 進の文字列を検索するには、下記の手順に従います。

  2. 「編集」 ▸ 「検索」を選択します。

    • 「データ検索」ダイアログで、下記のオプションのいずれかを選択します。
    • 「16進データを検索」
  3. 「ASCIIデータを検索」

  4. 検索する文字列を入力します。

  5. 文字列の次の一致を検索するには、「次を検索」をクリックします。

  6. Click Cancel to close the Find Data dialog.

3.5. To Perform an Advanced Find

To perform an advanced find, perform the following steps:

  1. Choose Edit ▸ Advanced Find.
  2. In the Find Data dialog, select the required search criteria. For information about how to add new search criteria, see セクション 3.6 - To Add Search Criteria.
  3. 検索する文字列を入力します。
  4. 文字列の次の一致を検索するには、「次を検索」をクリックします。
  5. Click Close to close the Find Data dialog.

3.6. To Add Search Criteria

To add search criteria, perform the following steps:

  1. Choose Edit ▸ Advanced Find.

  2. In the Find Data dialog, click Add New.

  3. In the Find Data: Add Search dialog, choose one of the following options:

    • 「データ検索」ダイアログで、下記のオプションのいずれかを選択します。
    • 「16進データを検索」
  4. 「ASCIIデータを検索」

  5. Use the color wheel or the spin boxes to select a color to highlight the search criteria.

  6. Click Add.

  7. Click Cancel to close the Find Data dialog.

3.7. To Remove Search Criteria

To remove search criteria, perform the following steps:

  1. Choose Edit ▸ Advanced Find.
  2. In the Find Data dialog, select the search criteria that you want to remove.
  3. Click Remove Selected.
  4. Click Cancel to close the Find Data dialog.

3.8. 文字列の前の一致を検索するには、「前を検索」をクリックします。

ファイル内のデータを検索して置換する

  1. ファイル内にある ASCII ないし 16 進の文字列の検索と置換をするには、下記の手順に従います。

  2. 「編集」 ▸ 「置換」を選択します。

    • 「 検索およびデータの置換」ダイアログで、下記のオプションのいずれかを選択します。
    • 「16進データを置換」
  3. 「ASCII データを置換」

  4. 最初のテキストボックスに、検索する文字列を入力します。

  5. 2 番目のテキストボックスに、検索した文字列と置換する文字列を入力します。

  6. 「次を検索」をクリックします。

  7. Click Cancel to close the Find & Replace Data dialog.

3.9. 現在の該当文字列を置換するには「置換」をクリックし、すべての該当文字列を一 度に置換するには「全て置換」をクリックします。

To add another view of the current file to your GHex window, choose View ▸ Add View.

現在のファイルの新規ビューをGHexウィンドウやデスクトップに追加するには、「ビュー」 ▸ 「ビューを追加」を選択します。

3.10. To Change the Data Group Type

To change how GHex displays the hexadecimal content of a file in the GHex window, choose View ▸ Group Data As, then select one of the following menu items:

  • Bytes - single bytes
  • Words - groups of two bytes
  • Longwords - groups of four bytes

3.11. 現在のファイルのビューを削除するには、「ビュー」 ▸ 「ビューを削除」を選択します。なお、開いていた最後のビューを削除すると、アプリケーションは自動的に終了します。

ファイルを区別するために、ファイル名にページ番号を追加。

3.12. GHex ウィンドウ内のデータを HTML にエクスポートするには、「ファイル」 ▸ 「HTMLとして保存」を選択します。HTML ファイルを作成するディレクトリおよびファイル名を指定し、「了解」をクリックします。GHex により下記の処理が実行されます。 たとえばファイル名を log.html と指定すると、GHex の作成する HTML ファイルの名前は log00000000.htmllog00000001.htmllog00000002.html のようになります。

キャラクタテーブルを表示する

3.13. 0 から 255 の各値に対応する ASCII キャラクタ、16 進数、10 進数、8 進数、2 進数を示した表を表示するには、「ウィンドウ」 ▸ 「文字一覧表」を選択します。

データを変換表示する

  1. 2 進数、10 進数、16 進数、ASCII 間でのデータを変換表示 (最大 4 バイト) するには、下記の手順に従います。

  2. 「ウィンドウ」 ▸ 「基底変換」を選択します。

    • 次のアクションから 1 つを実行します。
    • 「基底変換」ダイアログ上の該当するフィールドに変換するデータを入力し、リターン キーを押します。

    また、現在のカーソル位置にあるデータを変換する場合は、「カーソル下の値を取得」ボタンをクリックします。

  3. Click Close to close the Base Converter dialog.

3.14. To Show or Hide the Type Conversion Dialog

To show or hide the type conversion dialog, choose Windows ▸ Type Conversion Dialog.

The type conversion dialog displays the value of the selected character in the following representations:

  • Signed 8 bit
  • Unsigned 8 bit
  • Signed 16 bit
  • Unsigned 16 bit
  • Signed 32 bit
  • Unsigned 32 bit
  • 32 bit float
  • 64 bit float
  • Hexadecimal
  • Octal
  • Binary
  • Stream Length

The type conversion dialog also contains the following options:

Show little endian decoding

Select this option to show little endian decoding.

Show unsigned and float as hexadecimal

Select this option to show unsigned and float numbers as hexadecimal numbers.

3.15. GHex によりデータの変換結果が、他のフィールドに表示されます。

ファイルを印刷する

ファイルを印刷するには、「ファイル」 ▸ 「印刷」を選択します。「印刷」ダイアログで必要な印刷オプションを選択して、「 了解」をクリックします。