Skip to content

tuple_chrTupleChrTupleChrtuple_chrtuple_chr🔗

説明🔗

tuple_chrTupleChrTupleChrtuple_chrtuple_chr — 整数の tuple を文字へ変換する。

書式🔗

tuple_chr( integer T, out string Chr )void TupleChr( const HTuple& T, HTuple* Chr )static void HOperatorSet.TupleChr( HTuple t, out HTuple chr )def tuple_chr( t: MaybeSequence[int] ) -> Sequence[str]

def tuple_chr_s( t: MaybeSequence[int] ) -> strHerror tuple_chr( const Hlong T, char* Chr )

Herror T_tuple_chr( const Htuple T, Htuple* Chr )

HTuple HTuple::TupleChr( ) const

HTuple HTuple.TupleChr( )

説明🔗

tuple_chrTupleChr は整数から成る入力 tuple Ttt をそれぞれ長さ1の文字の tuple へ変換します。 HALCONライブラリで使用されるエンコーディングが UTF-8 (set_system('filename_encoding', 'utf8') 参照) であり、文字列オペレータがコードポイント(set_system('tuple_string_operator_mode', 'codepoint') 参照) で動作するように設定されている場合(両方ともデフォルト)、 オペレータは Unicode 文字列を受け入れ適切な UTF-8 の文字表現で文字列を返します。 HALCONライブラリのエンコードが 'locale'"locale" に設定されているか文字列オペレータが 'byte'"byte" の場合、 オペレータは0から256までの数値のみ受け入れます。その場合オペレータ tuple_chrTupleChr は、 それぞれ1バイトの長さの文字列を返えされ、その入力番号は ANSI コードとして設定されます。 種々のモデルと更なるエンコーディングの問題の詳細記述については、Tuple / String Operations も参照下さい。

入力tupleが空の場合、この関数は空のtupleを返します。

HDevelopインライン演算🔗

HDevelopは tuple_chrTupleChr の代わりとなるインライン演算を備えており、以下の構文形式で使 用することができます::

Chr := chr(T)

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

Ttt (input_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)MaybeSequence[int]Htuple (Hlong)

Unicode コードまたは ANSI の文字コードを入力する tuple

制限: 0 <= T

Chrchrchr (output_control) string(-array) → (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)

入力 tuple の文字コードから作成された文字列を出力する tuple

他のオペレーターとの組み合わせ🔗

組み合わせ

他の選択候補

tuple_chrtTupleChrt

関連項目

tuple_ordTupleOrd, tuple_ordsTupleOrds

モジュール🔗

Foundation