tuple_is_string_elemtuple_is_string_elemTupleIsStringElemTupleIsStringElemtuple_is_string_elem (Operator)

Name

tuple_is_string_elemtuple_is_string_elemTupleIsStringElemTupleIsStringElemtuple_is_string_elem — Testen, ob die Elemente eines Tupels vom Typ string (Zeichenkette) sind.

Signatur

tuple_is_string_elem( : : T : IsString)

Herror tuple_is_string_elem(const char* T, Hlong* IsString)

Herror T_tuple_is_string_elem(const Htuple T, Htuple* IsString)

void TupleIsStringElem(const HTuple& T, HTuple* IsString)

HTuple HTuple::TupleIsStringElem() const

static void HOperatorSet.TupleIsStringElem(HTuple t, out HTuple isString)

HTuple HTuple.TupleIsStringElem()

def tuple_is_string_elem(t: HTupleType) -> Sequence[int]

def tuple_is_string_elem_s(t: HTupleType) -> int

Beschreibung

tuple_is_string_elemtuple_is_string_elemTupleIsStringElemTupleIsStringElemTupleIsStringElemtuple_is_string_elem testet die Elemente des Eingabetupels TTTTtt. Für alle Elemente vom Typ string (Zeichenkette) wird 1 (true) zurückgegeben, ansonsten wird 0 (false) zurückgegeben.

Sonderfall: Leeres Eingabetupel

Falls das Eingabetupel leer ist, gibt der Operator ein leeres Tupel zurück.

HDevelop Inline-Operation

HDevelop unterstützt eine Inline-Operation für tuple_is_string_elemtuple_is_string_elemTupleIsStringElemTupleIsStringElemTupleIsStringElemtuple_is_string_elem, die innerhalb eines Ausdrucks in der folgenden Syntax verwendet werden kann:

IsString := is_string_elem(T)

Ausführungsinformationen

Parameter

TTTTtt (input_control)  tuple(-array) HTupleHTupleTypeHTupleHtuple (string / real / integer / handle) (string / double / int / long / HHandle) (HString / double / Hlong / HHandle) (char* / double / Hlong / handle)

Eingabetupel.

IsStringIsStringIsStringIsStringisStringis_string (output_control)  number(-array) HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Sind die Elemente des Eingabetupels vom Typ string (Zeichenkette)?

Beispiel (HDevelop)

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

Ergebnis

Sind die Parameterwerte korrekt, dann liefert tuple_is_string_elemtuple_is_string_elemTupleIsStringElemTupleIsStringElemTupleIsStringElemtuple_is_string_elem den Wert TRUE.

Alternativen

tuple_typetuple_typeTupleTypeTupleTypeTupleTypetuple_type, tuple_type_elemtuple_type_elemTupleTypeElemTupleTypeElemTupleTypeElemtuple_type_elem, tuple_is_stringtuple_is_stringTupleIsStringTupleIsStringTupleIsStringtuple_is_string

Siehe auch

tuple_is_mixedtuple_is_mixedTupleIsMixedTupleIsMixedTupleIsMixedtuple_is_mixed, tuple_is_inttuple_is_intTupleIsIntTupleIsIntTupleIsInttuple_is_int, tuple_is_realtuple_is_realTupleIsRealTupleIsRealTupleIsRealtuple_is_real, tuple_is_stringtuple_is_stringTupleIsStringTupleIsStringTupleIsStringtuple_is_string, tuple_is_mixedtuple_is_mixedTupleIsMixedTupleIsMixedTupleIsMixedtuple_is_mixed, tuple_is_int_elemtuple_is_int_elemTupleIsIntElemTupleIsIntElemTupleIsIntElemtuple_is_int_elem, tuple_is_real_elemtuple_is_real_elemTupleIsRealElemTupleIsRealElemTupleIsRealElemtuple_is_real_elem, tuple_is_numbertuple_is_numberTupleIsNumberTupleIsNumberTupleIsNumbertuple_is_number, tuple_is_handle_elemtuple_is_handle_elemTupleIsHandleElemTupleIsHandleElemTupleIsHandleElemtuple_is_handle_elem, tuple_is_handletuple_is_handleTupleIsHandleTupleIsHandleTupleIsHandletuple_is_handle

Modul

Foundation