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
stringSource string(源字符串).
key
stringReturns the key(返回键名)
separator
stringThe separator (分隔符). Default value is KeyValueSeparator.
Returns
- ReadOnlySpan<char>
Returns the value. Returns empty if there is no value (返回值. 没有值时返回空).