ClassesClasses | | Operators

tuple_ordtuple_ordTupleOrdTupleOrd (Operator)

Name

tuple_ordtuple_ordTupleOrdTupleOrd — Convert a tuple of strings of length 1 into a tuple of integer numbers.

Signature

tuple_ord( : : T : Ord)

Herror tuple_ord(const char* T, Hlong* Ord)

Herror T_tuple_ord(const Htuple T, Htuple* Ord)

void TupleOrd(const HTuple& T, HTuple* Ord)

HTuple HTuple::TupleOrd() const

static void HOperatorSet.TupleOrd(HTuple t, out HTuple ord)

HTuple HTuple.TupleOrd()

Description

tuple_ordtuple_ordTupleOrdTupleOrdTupleOrd converts the input tuple TTTTt, which may only contain strings of length 1, into a tuple of integer numbers that represent the ASCII code of the characters of the strings (as long as the characters are part of the ASCII standard, for other characters please note the influence of the used character encoding table, see also Tuple / String Operations).

Exception: Empty input tuple

If the input tuple is empty, the operator returns an empty tuple.

HDevelop In-line Operation

HDevelop provides an in-line operation for tuple_ordtuple_ordTupleOrdTupleOrdTupleOrd, which can be used in an expression in the following syntax:

Ord := ord(T)

Execution Information

Parameters

TTTTt (input_control)  string(-array) HTupleHTupleHtuple (string) (string) (HString) (char*)

Input tuple with strings of length 1.

OrdOrdOrdOrdord (output_control)  integer(-array) HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Output tuple with integer numbers.

Alternatives

tuple_ordstuple_ordsTupleOrdsTupleOrdsTupleOrds

See also

tuple_chrtuple_chrTupleChrTupleChrTupleChr, tuple_chrttuple_chrtTupleChrtTupleChrtTupleChrt

Module

Foundation


ClassesClasses | | Operators