This commit is contained in:
iamboss 2025-12-13 15:31:59 +08:00
parent f4f4a0df9d
commit 5e28ac1fa7
22 changed files with 121 additions and 68 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -11,8 +11,8 @@
"dependencies": { "dependencies": {
"AvalonEdit": "6.3.0.90", "AvalonEdit": "6.3.0.90",
"FontAwesome.Sharp": "6.3.0", "FontAwesome.Sharp": "6.3.0",
"Hi.Wpf": "3.1.73", "Hi.Wpf": "3.1.74",
"HiNc": "3.1.94", "HiNc": "3.1.95",
"runtimepack.Microsoft.NETCore.App.Runtime.win-x64": "9.0.11", "runtimepack.Microsoft.NETCore.App.Runtime.win-x64": "9.0.11",
"runtimepack.Microsoft.WindowsDesktop.App.Runtime.win-x64": "9.0.11", "runtimepack.Microsoft.WindowsDesktop.App.Runtime.win-x64": "9.0.11",
"runtimepack.Microsoft.AspNetCore.App.Runtime.win-x64": "9.0.11" "runtimepack.Microsoft.AspNetCore.App.Runtime.win-x64": "9.0.11"
@ -1600,39 +1600,39 @@
} }
} }
}, },
"Hi.Wpf/3.1.73": { "Hi.Wpf/3.1.74": {
"dependencies": { "dependencies": {
"HiDisp": "3.1.78" "HiDisp": "3.1.79"
}, },
"runtime": { "runtime": {
"lib/net9.0-windows7.0/Hi.Wpf.dll": { "lib/net9.0-windows7.0/Hi.Wpf.dll": {
"assemblyVersion": "3.1.73.0", "assemblyVersion": "3.1.74.0",
"fileVersion": "3.1.73.0" "fileVersion": "3.1.74.0"
} }
} }
}, },
"HiCbtr/3.1.78": { "HiCbtr/3.1.79": {
"dependencies": { "dependencies": {
"HiDisp": "3.1.78" "HiDisp": "3.1.79"
}, },
"runtime": { "runtime": {
"lib/net9.0/HiCbtr.dll": { "lib/net9.0/HiCbtr.dll": {
"assemblyVersion": "3.1.78.0", "assemblyVersion": "3.1.79.0",
"fileVersion": "3.1.78.0" "fileVersion": "3.1.79.0"
} }
} }
}, },
"HiDisp/3.1.78": { "HiDisp/3.1.79": {
"dependencies": { "dependencies": {
"HiGeom": "3.1.73", "HiGeom": "3.1.74",
"System.Configuration.ConfigurationManager": "10.0.1", "System.Configuration.ConfigurationManager": "10.0.1",
"System.Drawing.Common": "10.0.1", "System.Drawing.Common": "10.0.1",
"System.Resources.Extensions": "10.0.1" "System.Resources.Extensions": "10.0.1"
}, },
"runtime": { "runtime": {
"lib/net9.0/HiDisp.dll": { "lib/net9.0/HiDisp.dll": {
"assemblyVersion": "3.1.78.0", "assemblyVersion": "3.1.79.0",
"fileVersion": "3.1.78.0" "fileVersion": "3.1.79.0"
} }
}, },
"native": { "native": {
@ -1647,7 +1647,7 @@
} }
} }
}, },
"HiGeom/3.1.73": { "HiGeom/3.1.74": {
"dependencies": { "dependencies": {
"Google.Protobuf": "3.28.3", "Google.Protobuf": "3.28.3",
"Grpc.AspNetCore": "2.66.0", "Grpc.AspNetCore": "2.66.0",
@ -1658,8 +1658,8 @@
}, },
"runtime": { "runtime": {
"lib/net9.0/HiGeom.dll": { "lib/net9.0/HiGeom.dll": {
"assemblyVersion": "3.1.73.0", "assemblyVersion": "3.1.74.0",
"fileVersion": "3.1.73.0" "fileVersion": "3.1.74.0"
} }
}, },
"resources": { "resources": {
@ -1671,27 +1671,27 @@
} }
} }
}, },
"HiLicense/3.1.73": { "HiLicense/3.1.74": {
"dependencies": { "dependencies": {
"HiGeom": "3.1.73" "HiGeom": "3.1.74"
}, },
"runtime": { "runtime": {
"lib/net9.0/HiLicense.dll": { "lib/net9.0/HiLicense.dll": {
"assemblyVersion": "3.1.73.0", "assemblyVersion": "3.1.74.0",
"fileVersion": "3.1.73.0" "fileVersion": "3.1.74.0"
} }
} }
}, },
"HiMech/3.1.85": { "HiMech/3.1.86": {
"dependencies": { "dependencies": {
"CommandLineParser": "2.9.1", "CommandLineParser": "2.9.1",
"HiCbtr": "3.1.78", "HiCbtr": "3.1.79",
"Microsoft.CodeAnalysis.CSharp.Scripting": "5.0.0" "Microsoft.CodeAnalysis.CSharp.Scripting": "5.0.0"
}, },
"runtime": { "runtime": {
"lib/net9.0/HiMech.dll": { "lib/net9.0/HiMech.dll": {
"assemblyVersion": "3.1.85.0", "assemblyVersion": "3.1.86.0",
"fileVersion": "3.1.85.0" "fileVersion": "3.1.86.0"
} }
}, },
"resources": { "resources": {
@ -1706,20 +1706,20 @@
} }
} }
}, },
"HiNc/3.1.94": { "HiNc/3.1.95": {
"dependencies": { "dependencies": {
"Google.Protobuf": "3.28.3", "Google.Protobuf": "3.28.3",
"Grpc.AspNetCore": "2.66.0", "Grpc.AspNetCore": "2.66.0",
"Grpc.Net.Client": "2.66.0", "Grpc.Net.Client": "2.66.0",
"HiLicense": "3.1.73", "HiLicense": "3.1.74",
"HiMech": "3.1.85", "HiMech": "3.1.86",
"HiUniNc": "3.1.82", "HiUniNc": "3.1.83",
"System.IO.Pipelines": "10.0.1" "System.IO.Pipelines": "10.0.1"
}, },
"runtime": { "runtime": {
"lib/net9.0/HiNc.dll": { "lib/net9.0/HiNc.dll": {
"assemblyVersion": "3.1.94.0", "assemblyVersion": "3.1.95.0",
"fileVersion": "3.1.94.0" "fileVersion": "3.1.95.0"
} }
}, },
"resources": { "resources": {
@ -1731,14 +1731,14 @@
} }
} }
}, },
"HiUniNc/3.1.82": { "HiUniNc/3.1.83": {
"dependencies": { "dependencies": {
"HiMech": "3.1.85" "HiMech": "3.1.86"
}, },
"runtime": { "runtime": {
"lib/net9.0/HiUniNc.dll": { "lib/net9.0/HiUniNc.dll": {
"assemblyVersion": "3.1.82.0", "assemblyVersion": "3.1.83.0",
"fileVersion": "3.1.82.0" "fileVersion": "3.1.83.0"
} }
} }
}, },
@ -2219,61 +2219,61 @@
"path": "grpc.net.common/2.66.0", "path": "grpc.net.common/2.66.0",
"hashPath": "grpc.net.common.2.66.0.nupkg.sha512" "hashPath": "grpc.net.common.2.66.0.nupkg.sha512"
}, },
"Hi.Wpf/3.1.73": { "Hi.Wpf/3.1.74": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-X/JWRuM/0lhD3BPlBsZCo9hCdUAPrfJ8v/L6SoQCLZo5vmr2IyK0mp9A9lb2jXRF2bNnKDlskHZ3ofIDudbUdw==", "sha512": "sha512-CzHZYMApU3eU2tKP5na7chCTdvAQ3hMDZjvvTCXvJTNOI2fqlXz3eJ9q3mL9VJvMq9BnGRNaVrTMcwxNJaZmcQ==",
"path": "hi.wpf/3.1.73", "path": "hi.wpf/3.1.74",
"hashPath": "hi.wpf.3.1.73.nupkg.sha512" "hashPath": "hi.wpf.3.1.74.nupkg.sha512"
}, },
"HiCbtr/3.1.78": { "HiCbtr/3.1.79": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-nteCc2FB7xxDMwnnEuAXsv6WXUnFznxZFhhQnAfsRJNr56Tk+FncXGroCVIAjoUgYKKFhIkBC+jYsR1X+d4l+w==", "sha512": "sha512-N2is71MQ3pN8VEX64Zd9QfvjY/wLs3E3QKqsMgE8UvqCE2eXitJftiv7eQyvRBAXfUU5nZDur/Cdj3lORpOB8w==",
"path": "hicbtr/3.1.78", "path": "hicbtr/3.1.79",
"hashPath": "hicbtr.3.1.78.nupkg.sha512" "hashPath": "hicbtr.3.1.79.nupkg.sha512"
}, },
"HiDisp/3.1.78": { "HiDisp/3.1.79": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-mHV9RsR+Gr+zrAprbFoIdNqGW/0ykYt5KfOjwUP1fwXsBreEUDLtzWY/Ad1bj1IzYLdtDrjxnBXWORYgFP4VvQ==", "sha512": "sha512-kVMrYJMibmDcSyUBvUHFdj6Wu+GwQka08c2PUX5AT1QUq7TeEhdyC15lmL96PHusPblgCXFLso0P3dd7vwTbaw==",
"path": "hidisp/3.1.78", "path": "hidisp/3.1.79",
"hashPath": "hidisp.3.1.78.nupkg.sha512" "hashPath": "hidisp.3.1.79.nupkg.sha512"
}, },
"HiGeom/3.1.73": { "HiGeom/3.1.74": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-g1+JsgQNPFs2MNOmTxCmhx9DfpW30bpdzmlnapJq7RCqRQCKtogMNwZRhAUKaPZDmfGntoHrI9wJNEWRswIHqg==", "sha512": "sha512-T0vgnzXZ8SHmSEmJ3msfsYXyUqm6AOCLSzEveeqfJcK0vG+8ITSqBVwQiGe6EM2GybaU0Qe+1aCxyy1EsiOnuA==",
"path": "higeom/3.1.73", "path": "higeom/3.1.74",
"hashPath": "higeom.3.1.73.nupkg.sha512" "hashPath": "higeom.3.1.74.nupkg.sha512"
}, },
"HiLicense/3.1.73": { "HiLicense/3.1.74": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-1BNiFSHIpr42QblW/mbBR/1M1L5g0Poe7ugnW0ztA6KthKrHn6nSSiOLnxUMlrE0WjiniXGUkSor1bTCyPpu2g==", "sha512": "sha512-QKk9JdBfHmydnVELj/jXoY4MixBemd2gRBVv1lKN1DO/2aOlbddfY6ejPlrcvfhNagyuVJbHdqgx4rx9GWpx2w==",
"path": "hilicense/3.1.73", "path": "hilicense/3.1.74",
"hashPath": "hilicense.3.1.73.nupkg.sha512" "hashPath": "hilicense.3.1.74.nupkg.sha512"
}, },
"HiMech/3.1.85": { "HiMech/3.1.86": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-T6+j7SkCpLZRcyvns8tcogvB4iwKBzDYwV2nTpUoMP+XmSY0uztsQC76BK3O1ORpYYEr+dLCmFntdjWUTPdCxQ==", "sha512": "sha512-pp4nlY/zievxqavmQ7hFmj6H35zW6Xa7xO9MPzixWuthYxRmREM3KGKUZjrfMEQIvSZuAtawfhOuap8mqMGtcg==",
"path": "himech/3.1.85", "path": "himech/3.1.86",
"hashPath": "himech.3.1.85.nupkg.sha512" "hashPath": "himech.3.1.86.nupkg.sha512"
}, },
"HiNc/3.1.94": { "HiNc/3.1.95": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-W4Z9JwU1FSHYw0u+mOKmeb0kMCnkK9KrkuBCB9QEI5jIwbKE/noWSgpdgWYMCxyDmQVTOL8uxRjpqxm4YjrcpA==", "sha512": "sha512-sLHRRFs+amO1K1ybQqPoDZCK9+19ZVPX4m+poszrFBt/952gwZzixZT6QKdyKO1/6KxZ+oOlItUHlH++WUqqUw==",
"path": "hinc/3.1.94", "path": "hinc/3.1.95",
"hashPath": "hinc.3.1.94.nupkg.sha512" "hashPath": "hinc.3.1.95.nupkg.sha512"
}, },
"HiUniNc/3.1.82": { "HiUniNc/3.1.83": {
"type": "package", "type": "package",
"serviceable": true, "serviceable": true,
"sha512": "sha512-msUPkCHId362e34plKLQnf6BL82TXTyNFOmG5V6PtrmwhG0Y08vQ9M7/l+H+yxywS+oVbzbiSP0VBcU+8WdWwA==", "sha512": "sha512-5ZbH1xeVgjzEaKlENCB4AN5xaSUikvWao8OhrZm4Dq2ayQTb9DXYnJeVpcV1XEVE0WB2l6wzNcXJqrAmL2aYOg==",
"path": "hiuninc/3.1.82", "path": "hiuninc/3.1.83",
"hashPath": "hiuninc.3.1.82.nupkg.sha512" "hashPath": "hiuninc.3.1.83.nupkg.sha512"
}, },
"MathNet.Numerics/5.0.0": { "MathNet.Numerics/5.0.0": {
"type": "package", "type": "package",

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -332,6 +332,43 @@ Class StringUtil
<a id="Hi_Common_StringUtil_ToUtf8NullTerminatedBytes_" data-uid="Hi.Common.StringUtil.ToUtf8NullTerminatedBytes*"></a>
<h3 id="Hi_Common_StringUtil_ToUtf8NullTerminatedBytes_System_String_" data-uid="Hi.Common.StringUtil.ToUtf8NullTerminatedBytes(System.String)">
ToUtf8NullTerminatedBytes(string)
</h3>
<div class="markdown level1 summary"><p>Converts a string to a null-terminated UTF-8 byte array for P/Invoke.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static byte[] ToUtf8NullTerminatedBytes(this string str)</code></pre>
</div>
<h4 class="section">Parameters</h4>
<dl class="parameters">
<dt><code>str</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></dt>
<dd></dd>
</dl>
<h4 class="section">Returns</h4>
<dl class="parameters">
<dt><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.byte">byte</a>[]</dt>
<dd></dd>
</dl>
</article> </article>

View File

@ -907,7 +907,7 @@
"api/Hi.Common.StringUtil.html": { "api/Hi.Common.StringUtil.html": {
"href": "api/Hi.Common.StringUtil.html", "href": "api/Hi.Common.StringUtil.html",
"title": "Class StringUtil | HiAPI-C# 2025", "title": "Class StringUtil | HiAPI-C# 2025",
"summary": "Class StringUtil Namespace Hi.Common Assembly HiGeom.dll Utility for managing text. public static class StringUtil Inheritance object StringUtil Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Methods ExtractFullFunctionCall(string, string, out string, int) Extracts a complete function call from a string, including the function name and all parameters. public static int ExtractFullFunctionCall(string input, string functionName, out string funcCall, int beginSearchIndex = 0) Parameters input string The input string to search in. functionName string The name of the function to find. funcCall string When this method returns, contains the extracted function call if found; otherwise, null. beginSearchIndex int The index in the input string to begin the search. Returns int The starting index of the function call if found; otherwise, -1. ExtractFunctionArguments(string, string) Extracts the arguments of a function call from a string. public static string ExtractFunctionArguments(string input, string functionName) Parameters input string The input string containing the function call. functionName string The name of the function whose arguments to extract. Returns string The arguments string if the function call is found; otherwise, null. GetPropertyStringIfToStringNotOverloaded(object, bool, bool) Create string by properties. public static string GetPropertyStringIfToStringNotOverloaded(this object src, bool changeLine = false, bool includeNonPublic = false) Parameters src object src changeLine bool change line includeNonPublic bool include non-public properties Returns string string ToDotSplitedString<T>(IEnumerable<T>) Converts a collection of objects to a comma-separated string. public static string ToDotSplitedString<T>(this IEnumerable<T> objects) Parameters objects IEnumerable<T> The collection of objects to convert. Returns string A comma-separated string representation of the objects. Type Parameters T" "summary": "Class StringUtil Namespace Hi.Common Assembly HiGeom.dll Utility for managing text. public static class StringUtil Inheritance object StringUtil Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() Methods ExtractFullFunctionCall(string, string, out string, int) Extracts a complete function call from a string, including the function name and all parameters. public static int ExtractFullFunctionCall(string input, string functionName, out string funcCall, int beginSearchIndex = 0) Parameters input string The input string to search in. functionName string The name of the function to find. funcCall string When this method returns, contains the extracted function call if found; otherwise, null. beginSearchIndex int The index in the input string to begin the search. Returns int The starting index of the function call if found; otherwise, -1. ExtractFunctionArguments(string, string) Extracts the arguments of a function call from a string. public static string ExtractFunctionArguments(string input, string functionName) Parameters input string The input string containing the function call. functionName string The name of the function whose arguments to extract. Returns string The arguments string if the function call is found; otherwise, null. GetPropertyStringIfToStringNotOverloaded(object, bool, bool) Create string by properties. public static string GetPropertyStringIfToStringNotOverloaded(this object src, bool changeLine = false, bool includeNonPublic = false) Parameters src object src changeLine bool change line includeNonPublic bool include non-public properties Returns string string ToDotSplitedString<T>(IEnumerable<T>) Converts a collection of objects to a comma-separated string. public static string ToDotSplitedString<T>(this IEnumerable<T> objects) Parameters objects IEnumerable<T> The collection of objects to convert. Returns string A comma-separated string representation of the objects. Type Parameters T ToUtf8NullTerminatedBytes(string) Converts a string to a null-terminated UTF-8 byte array for P/Invoke. public static byte[] ToUtf8NullTerminatedBytes(this string str) Parameters str string Returns byte[]"
}, },
"api/Hi.Common.TaskUtil.html": { "api/Hi.Common.TaskUtil.html": {
"href": "api/Hi.Common.TaskUtil.html", "href": "api/Hi.Common.TaskUtil.html",

View File

@ -13771,6 +13771,22 @@ references:
fullName.vb: Hi.Common.StringUtil.ToDotSplitedString(Of T)(System.Collections.Generic.IEnumerable(Of T)) fullName.vb: Hi.Common.StringUtil.ToDotSplitedString(Of T)(System.Collections.Generic.IEnumerable(Of T))
nameWithType: StringUtil.ToDotSplitedString<T>(IEnumerable<T>) nameWithType: StringUtil.ToDotSplitedString<T>(IEnumerable<T>)
nameWithType.vb: StringUtil.ToDotSplitedString(Of T)(IEnumerable(Of T)) nameWithType.vb: StringUtil.ToDotSplitedString(Of T)(IEnumerable(Of T))
- uid: Hi.Common.StringUtil.ToUtf8NullTerminatedBytes(System.String)
name: ToUtf8NullTerminatedBytes(string)
href: api/Hi.Common.StringUtil.html#Hi_Common_StringUtil_ToUtf8NullTerminatedBytes_System_String_
commentId: M:Hi.Common.StringUtil.ToUtf8NullTerminatedBytes(System.String)
name.vb: ToUtf8NullTerminatedBytes(String)
fullName: Hi.Common.StringUtil.ToUtf8NullTerminatedBytes(string)
fullName.vb: Hi.Common.StringUtil.ToUtf8NullTerminatedBytes(String)
nameWithType: StringUtil.ToUtf8NullTerminatedBytes(string)
nameWithType.vb: StringUtil.ToUtf8NullTerminatedBytes(String)
- uid: Hi.Common.StringUtil.ToUtf8NullTerminatedBytes*
name: ToUtf8NullTerminatedBytes
href: api/Hi.Common.StringUtil.html#Hi_Common_StringUtil_ToUtf8NullTerminatedBytes_
commentId: Overload:Hi.Common.StringUtil.ToUtf8NullTerminatedBytes
isSpec: "True"
fullName: Hi.Common.StringUtil.ToUtf8NullTerminatedBytes
nameWithType: StringUtil.ToUtf8NullTerminatedBytes
- uid: Hi.Common.TaskUtil - uid: Hi.Common.TaskUtil
name: TaskUtil name: TaskUtil
href: api/Hi.Common.TaskUtil.html href: api/Hi.Common.TaskUtil.html

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.