Class VectorTextUtil
- Namespace
- Zyl.VectorTraits
- Assembly
- VectorTraits.dll
Provides some textual instrumental functions for vectors (提供了一些向量的文本性工具函数).
public static class VectorTextUtil
- Inheritance
-
VectorTextUtil
- Inherited Members
Fields
- DefaultLineCommentItemSeparator
The default end-of-line comment item separator (默认的行尾注释条目分隔符).
- DefaultLineCommentSeparator
The default end-of-line comment separator (默认的行尾注释分隔符).
- IndentNextSeparator
Indent next separator (增加缩进的分隔符).
- KeyValueSeparator
Separator for key-value pairs (键值对的分隔符).
Methods
- Fill<T>(T[], T)
Assigns the given value of type T to each element of the specified array.
- Fill<T>(T[], T, int, int)
Assigns the given value of type T to the elements of the specified array which are within the range of startIndex (inclusive) and the next count number of indices.
- Format(bool?, string?, string?, string, params object?[])
Format a string, append a hexadecimal string intelligently to the end of the line (格式化字符串,智能在行尾追加十六进制字符串). With these parameters:
noHex
,lineCommentSeparator
,lineCommentItemSeparator
.
- Format(string, params object?[])
Format a string, append a hexadecimal string intelligently to the end of the line (格式化字符串,智能在行尾追加十六进制字符串).
- FormatTo(Action<string>, bool?, string?, string?, string, params object?[])
Format a string, append a hexadecimal string intelligently to the end of the line, and output it to the Action (格式化字符串,智能在行尾追加十六进制字符串, 并会输出到 Action ). With these parameters:
noHex
,lineCommentSeparator
,lineCommentItemSeparator
.
- FormatTo(Action<string>, string, params object?[])
Format a string, append a hexadecimal string intelligently to the end of the line, and output it to the Action (格式化字符串,智能在行尾追加十六进制字符串, 并会输出到 Action ).
- GetHexTo<T>(Action<string>, Vector<T>, string?, bool)
Gets a hexadecimal string of the Vector and outputs it to Action (取得 Vector 的十六进制字符串, 并输出到 Action ).
- GetHexTo<T>(Action<string>, Vector128<T>, string?, bool)
Gets a hexadecimal string of the Vector128 and outputs it to Action (取得 Vector128 的十六进制字符串, 并输出到 Action ).
- GetHexTo<T>(Action<string>, Vector256<T>, string?, bool)
Gets a hexadecimal string of the Vector256 and outputs it to Action (取得 Vector256 的十六进制字符串, 并输出到 Action ).
- GetHexTo<T>(Action<string>, Vector512<T>, string?, bool)
Gets a hexadecimal string of the Vector512 and outputs it to Action (取得 Vector512 的十六进制字符串, 并输出到 Action ).
- GetHexTo<T>(Action<string>, Vector64<T>, string?, bool)
Gets a hexadecimal string of the Vector64 and outputs it to Action (取得 Vector64 的十六进制字符串, 并输出到 Action ).
- GetHexTo<T>(Action<string>, T, string?, bool)
Gets a hexadecimal string and outputs it to Action (取得十六进制字符串, 并输出到 Action ).
- GetHex<T>(Vector<T>, string?, bool)
Gets a hexadecimal string of the Vector (取得 Vector 的十六进制字符串).
- GetHex<T>(Vector128<T>, string?, bool)
Gets a hexadecimal string of the Vector128 (取得 Vector128 的十六进制字符串).
- GetHex<T>(Vector256<T>, string?, bool)
Gets a hexadecimal string of the Vector256 (取得 Vector256 的十六进制字符串).
- GetHex<T>(Vector512<T>, string?, bool)
Gets a hexadecimal string of the Vector512 (取得 Vector512 的十六进制字符串).
- GetHex<T>(Vector64<T>, string?, bool)
Gets a hexadecimal string of the Vector64 (取得 Vector64 的十六进制字符串).
- GetHex<T>(T?, string?, bool)
Get hexadecimal string (取得十六进制字符串).
- GetTargetFrameworkDisplayName(Assembly)
Get TargetFramework display name.
- OutputProperties(TextWriter, object)
Output the list of properties of the object (将对象的属性列表进行输出).
- OutputProperties(string?, TextWriter, object)
Output the list of properties of the object (将对象的属性列表进行输出). With these parameters:
indent
.
- SplitKeyValue(string, out string, string?)
Splitting key-value pairs (拆分键值对).
- SplitKeyValueToInt(string, out string, int, string?)
Splitting key-value pairs and converting values to integer (拆分键值对, 并将值转换为整数).
- TryParseArgsByPrefix(out int, string[], string, int)
Try parse command args by prefix (根据前缀解析命令行参数).
- Write(TextWriter, string, params object?[])
Writes a formatted string to the text stream, using the same semantics as the Format(string, params object?[]) method (使用与 Format 方法相同的语义,将格式化的字符串写入文本流).
- Write(string?, TextWriter, bool?, string?, string?, string, params object?[])
Writes a formatted string to the text stream, using the same semantics as the Format(string, params object?[]) method (使用与 Format 方法相同的语义,将格式化的字符串写入文本流). With these parameters:
indent
,noHex
,lineCommentSeparator
,lineCommentItemSeparator
.
- Write(string?, TextWriter, string, params object?[])
Writes a formatted string to the text stream, using the same semantics as the Format(string, params object?[]) method (使用与 Format 方法相同的语义,将格式化的字符串写入文本流). With these parameters:
indent
.
- WriteLine(TextWriter, string, params object?[])
Writes a formatted string and a new line to the text stream, using the same semantics as the Format(string, params object?[]) method (使用与 Format 方法相同的语义,将格式化的字符串和新行写入文本流).
- WriteLine(string?, TextWriter, bool?, string?, string?, string, params object?[])
Writes a formatted string and a new line to the text stream, using the same semantics as the Format(string, params object?[]) method (使用与 Format 方法相同的语义,将格式化的字符串和新行写入文本流). With these parameters:
indent
,noHex
,lineCommentSeparator
,lineCommentItemSeparator
.
- WriteLine(string?, TextWriter, string, params object?[])
Writes a formatted string and a new line to the text stream, using the same semantics as the Format(string, params object?[]) method (使用与 Format 方法相同的语义,将格式化的字符串和新行写入文本流). With these parameters:
indent
.
- WriteLines(TextWriter, IEnumerable?)
Writes lines (输出多行).