Skip to content

tuple_environmentTupleEnvironmentTupleEnvironmenttuple_environmenttuple_environment🔗

Short description🔗

tuple_environmentTupleEnvironmentTupleEnvironmenttuple_environmenttuple_environment — Read one or more environment variables.

Signature🔗

tuple_environment( string Names, out string Values )void TupleEnvironment( const HTuple& Names, HTuple* Values )static void HOperatorSet.TupleEnvironment( HTuple names, out HTuple values )def tuple_environment( names: MaybeSequence[str] ) -> Sequence[str]

def tuple_environment_s( names: MaybeSequence[str] ) -> strHerror tuple_environment( const char* Names, char* Values )

Herror T_tuple_environment( const Htuple Names, Htuple* Values )

HTuple HTuple::TupleEnvironment( ) const

HTuple HTuple.TupleEnvironment( )

Description🔗

tuple_environmentTupleEnvironment reads the content of all environment variables that are referenced by their names in the input tuple Namesnamesnames and returns the content with the output tuple Valuesvaluesvalues. The input tuple may only contain strings.

For general information about string operations see Tuple / String Operations.

Exception: Empty input tuples🔗

If the input tuple is empty, the operator returns an empty tuple. Additionally, an empty string is returned for every name within Namesnamesnames that does not denote a valid environment variable.

HDevelop In-line Operation🔗

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

Values := environment(Names)

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

Namesnamesnames (input_control) string(-array) → (string)HTuple (HString)HTuple (string)MaybeSequence[str]Htuple (char*)

Tuple containing name(s) of the environment variable(s).

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

Content of the environment variable(s).

Combinations with other operators🔗

Combinations

Alternatives

tuple_strstrTupleStrstr, tuple_strrstrTupleStrrstr, tuple_strchrTupleStrchr, tuple_strrchrTupleStrrchr, tuple_strlenTupleStrlen, tuple_str_first_nTupleStrFirstN, tuple_str_last_nTupleStrLastN, tuple_splitTupleSplit, tuple_substrTupleSubstr

Module🔗

Foundation