Table of Contents

Method SplitKeyValue

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

SplitKeyValue(string, out string, string?)

Splitting key-value pairs (拆分键值对).

public static ReadOnlySpan<char> SplitKeyValue(string src, out string key, string? separator = null)

Parameters

src string

Source string(源字符串).

key string

Returns the key(返回键名)

separator string

The separator (分隔符). Default value is KeyValueSeparator.

Returns

ReadOnlySpan<char>

Returns the value. Returns empty if there is no value (返回值. 没有值时返回空).