tuple_environmenttuple_environmentTupleEnvironmentTupleEnvironmenttuple_environment (算子)
名称
tuple_environmenttuple_environmentTupleEnvironmentTupleEnvironmenttuple_environment — 读取一个或多个环境变量。
签名
Herror tuple_environment(const char* Names, char* Values)
Herror T_tuple_environment(const Htuple Names, Htuple* Values)
def tuple_environment(names: MaybeSequence[str]) -> Sequence[str]
def tuple_environment_s(names: MaybeSequence[str]) -> str
描述
tuple_environmenttuple_environmentTupleEnvironmentTupleEnvironmentTupleEnvironmenttuple_environment reads the content of all environment variables
that are referenced by their names in the input tuple NamesNamesNamesNamesnamesnames and
returns the content with the output tuple ValuesValuesValuesValuesvaluesvalues. The input
tuple may only contain strings.
For general information about string operations see
Tuple / String Operations。
例外:空输入元组
If the input tuple is empty, the operator returns an empty tuple.
Additionally, an empty string is returned for every
name within NamesNamesNamesNamesnamesnames that does not denote a valid environment
variable.
HDevelop 内联操作
HDevelop provides an in-line operation for tuple_environmenttuple_environmentTupleEnvironmentTupleEnvironmentTupleEnvironmenttuple_environment,
which can be used in an expression in the following syntax:
Values := environment(Names)
执行信息
- 多线程类型:独立(即使使用独占算子也能并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
NamesNamesNamesNamesnamesnames (输入控制) string(-array) → HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Tuple containing name(s) of the environment
variable(s).
ValuesValuesValuesValuesvaluesvalues (输出控制) string(-array) → HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Content of the environment variable(s).
替代
tuple_strstrtuple_strstrTupleStrstrTupleStrstrTupleStrstrtuple_strstr,
tuple_strrstrtuple_strrstrTupleStrrstrTupleStrrstrTupleStrrstrtuple_strrstr,
tuple_strchrtuple_strchrTupleStrchrTupleStrchrTupleStrchrtuple_strchr,
tuple_strrchrtuple_strrchrTupleStrrchrTupleStrrchrTupleStrrchrtuple_strrchr,
tuple_strlentuple_strlenTupleStrlenTupleStrlenTupleStrlentuple_strlen,
tuple_str_first_ntuple_str_first_nTupleStrFirstNTupleStrFirstNTupleStrFirstNtuple_str_first_n,
tuple_str_last_ntuple_str_last_nTupleStrLastNTupleStrLastNTupleStrLastNtuple_str_last_n,
tuple_splittuple_splitTupleSplitTupleSplitTupleSplittuple_split,
tuple_substrtuple_substrTupleSubstrTupleSubstrTupleSubstrtuple_substr
模块
基础