Skip to content

tuple_is_string_elemTupleIsStringElemTupleIsStringElemtuple_is_string_elemtuple_is_string_elem🔗

説明🔗

tuple_is_string_elemTupleIsStringElemTupleIsStringElemtuple_is_string_elemtuple_is_string_elem — tuple の要素のタイプが string であるかどうかを調べる。

書式🔗

tuple_is_string_elem( tuple T, out number IsString )void TupleIsStringElem( const HTuple& T, HTuple* IsString )static void HOperatorSet.TupleIsStringElem( HTuple t, out HTuple isString )def tuple_is_string_elem( t: HTupleType ) -> Sequence[int]

def tuple_is_string_elem_s( t: HTupleType ) -> intHerror tuple_is_string_elem( const char* T, Hlong* IsString )

Herror T_tuple_is_string_elem( const Htuple T, Htuple* IsString )

HTuple HTuple::TupleIsStringElem( ) const

HTuple HTuple.TupleIsStringElem( )

説明🔗

tuple_is_string_elemTupleIsStringElem は、入力 tuple Ttt の要素を 個別に調べます。

タイプ string のすべての要素に対して、値 1(true)が IsStringisStringis_string に返され、そうでない場合は、0(false)が返されます。

例外: 入力tuple が 空🔗

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

HDevelopインライン演算🔗

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

IsString := is_string_elem(T)

実行情報🔗

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

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

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

パラメーター🔗

Ttt (input_control) tuple(-array) → (string / real / integer / handle)HTuple (HString / double / Hlong / HHandle)HTuple (string / double / int / long / HHandle)HTupleTypeHtuple (char* / double / Hlong / handle)

入力 tuple

IsStringisStringis_string (output_control) number(-array) → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

入力 tuple の要素がタイプ string であるかどうか

例🔗

(HDevelop)


tuple_is_string_elem ([3.1416,'pi',3], IsString)
* IsString = [false, true, false]

結果🔗

パラメーターが有効な場合、オペレーター tuple_is_string_elemTupleIsStringElem は値 2 (H_MSG_TRUE) を返します。

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

組み合わせ

他の選択候補

tuple_typeTupleType, tuple_type_elemTupleTypeElem, tuple_is_stringTupleIsString

関連項目

tuple_is_mixedTupleIsMixed, tuple_is_intTupleIsInt, tuple_is_realTupleIsReal, tuple_is_stringTupleIsString, tuple_is_mixedTupleIsMixed, tuple_is_int_elemTupleIsIntElem, tuple_is_real_elemTupleIsRealElem, tuple_is_numberTupleIsNumber, tuple_is_handle_elemTupleIsHandleElem, tuple_is_handleTupleIsHandle

モジュール🔗

Foundation