diff --git a/App/Hi.Wpf.dll b/App/Hi.Wpf.dll index 25b94c72..1c0d7990 100644 Binary files a/App/Hi.Wpf.dll and b/App/Hi.Wpf.dll differ diff --git a/App/HiCbtr.dll b/App/HiCbtr.dll index 076b5b99..d8fa10cf 100644 Binary files a/App/HiCbtr.dll and b/App/HiCbtr.dll differ diff --git a/App/HiDisp.dll b/App/HiDisp.dll index 246755f2..88fe9acf 100644 Binary files a/App/HiDisp.dll and b/App/HiDisp.dll differ diff --git a/App/HiGeom.dll b/App/HiGeom.dll index eda79234..f39fcc49 100644 Binary files a/App/HiGeom.dll and b/App/HiGeom.dll differ diff --git a/App/HiLicense.dll b/App/HiLicense.dll index bdbdd996..d2560a96 100644 Binary files a/App/HiLicense.dll and b/App/HiLicense.dll differ diff --git a/App/HiMech.dll b/App/HiMech.dll index 5912fd6a..e2301839 100644 Binary files a/App/HiMech.dll and b/App/HiMech.dll differ diff --git a/App/HiNC-2025-win-desktop.deps.json b/App/HiNC-2025-win-desktop.deps.json index 48f0126d..4775a393 100644 --- a/App/HiNC-2025-win-desktop.deps.json +++ b/App/HiNC-2025-win-desktop.deps.json @@ -11,8 +11,8 @@ "dependencies": { "AvalonEdit": "6.3.0.90", "FontAwesome.Sharp": "6.3.0", - "Hi.Wpf": "3.1.73", - "HiNc": "3.1.94", + "Hi.Wpf": "3.1.74", + "HiNc": "3.1.95", "runtimepack.Microsoft.NETCore.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" @@ -1600,39 +1600,39 @@ } } }, - "Hi.Wpf/3.1.73": { + "Hi.Wpf/3.1.74": { "dependencies": { - "HiDisp": "3.1.78" + "HiDisp": "3.1.79" }, "runtime": { "lib/net9.0-windows7.0/Hi.Wpf.dll": { - "assemblyVersion": "3.1.73.0", - "fileVersion": "3.1.73.0" + "assemblyVersion": "3.1.74.0", + "fileVersion": "3.1.74.0" } } }, - "HiCbtr/3.1.78": { + "HiCbtr/3.1.79": { "dependencies": { - "HiDisp": "3.1.78" + "HiDisp": "3.1.79" }, "runtime": { "lib/net9.0/HiCbtr.dll": { - "assemblyVersion": "3.1.78.0", - "fileVersion": "3.1.78.0" + "assemblyVersion": "3.1.79.0", + "fileVersion": "3.1.79.0" } } }, - "HiDisp/3.1.78": { + "HiDisp/3.1.79": { "dependencies": { - "HiGeom": "3.1.73", + "HiGeom": "3.1.74", "System.Configuration.ConfigurationManager": "10.0.1", "System.Drawing.Common": "10.0.1", "System.Resources.Extensions": "10.0.1" }, "runtime": { "lib/net9.0/HiDisp.dll": { - "assemblyVersion": "3.1.78.0", - "fileVersion": "3.1.78.0" + "assemblyVersion": "3.1.79.0", + "fileVersion": "3.1.79.0" } }, "native": { @@ -1647,7 +1647,7 @@ } } }, - "HiGeom/3.1.73": { + "HiGeom/3.1.74": { "dependencies": { "Google.Protobuf": "3.28.3", "Grpc.AspNetCore": "2.66.0", @@ -1658,8 +1658,8 @@ }, "runtime": { "lib/net9.0/HiGeom.dll": { - "assemblyVersion": "3.1.73.0", - "fileVersion": "3.1.73.0" + "assemblyVersion": "3.1.74.0", + "fileVersion": "3.1.74.0" } }, "resources": { @@ -1671,27 +1671,27 @@ } } }, - "HiLicense/3.1.73": { + "HiLicense/3.1.74": { "dependencies": { - "HiGeom": "3.1.73" + "HiGeom": "3.1.74" }, "runtime": { "lib/net9.0/HiLicense.dll": { - "assemblyVersion": "3.1.73.0", - "fileVersion": "3.1.73.0" + "assemblyVersion": "3.1.74.0", + "fileVersion": "3.1.74.0" } } }, - "HiMech/3.1.85": { + "HiMech/3.1.86": { "dependencies": { "CommandLineParser": "2.9.1", - "HiCbtr": "3.1.78", + "HiCbtr": "3.1.79", "Microsoft.CodeAnalysis.CSharp.Scripting": "5.0.0" }, "runtime": { "lib/net9.0/HiMech.dll": { - "assemblyVersion": "3.1.85.0", - "fileVersion": "3.1.85.0" + "assemblyVersion": "3.1.86.0", + "fileVersion": "3.1.86.0" } }, "resources": { @@ -1706,20 +1706,20 @@ } } }, - "HiNc/3.1.94": { + "HiNc/3.1.95": { "dependencies": { "Google.Protobuf": "3.28.3", "Grpc.AspNetCore": "2.66.0", "Grpc.Net.Client": "2.66.0", - "HiLicense": "3.1.73", - "HiMech": "3.1.85", - "HiUniNc": "3.1.82", + "HiLicense": "3.1.74", + "HiMech": "3.1.86", + "HiUniNc": "3.1.83", "System.IO.Pipelines": "10.0.1" }, "runtime": { "lib/net9.0/HiNc.dll": { - "assemblyVersion": "3.1.94.0", - "fileVersion": "3.1.94.0" + "assemblyVersion": "3.1.95.0", + "fileVersion": "3.1.95.0" } }, "resources": { @@ -1731,14 +1731,14 @@ } } }, - "HiUniNc/3.1.82": { + "HiUniNc/3.1.83": { "dependencies": { - "HiMech": "3.1.85" + "HiMech": "3.1.86" }, "runtime": { "lib/net9.0/HiUniNc.dll": { - "assemblyVersion": "3.1.82.0", - "fileVersion": "3.1.82.0" + "assemblyVersion": "3.1.83.0", + "fileVersion": "3.1.83.0" } } }, @@ -2219,61 +2219,61 @@ "path": "grpc.net.common/2.66.0", "hashPath": "grpc.net.common.2.66.0.nupkg.sha512" }, - "Hi.Wpf/3.1.73": { + "Hi.Wpf/3.1.74": { "type": "package", "serviceable": true, - "sha512": "sha512-X/JWRuM/0lhD3BPlBsZCo9hCdUAPrfJ8v/L6SoQCLZo5vmr2IyK0mp9A9lb2jXRF2bNnKDlskHZ3ofIDudbUdw==", - "path": "hi.wpf/3.1.73", - "hashPath": "hi.wpf.3.1.73.nupkg.sha512" + "sha512": "sha512-CzHZYMApU3eU2tKP5na7chCTdvAQ3hMDZjvvTCXvJTNOI2fqlXz3eJ9q3mL9VJvMq9BnGRNaVrTMcwxNJaZmcQ==", + "path": "hi.wpf/3.1.74", + "hashPath": "hi.wpf.3.1.74.nupkg.sha512" }, - "HiCbtr/3.1.78": { + "HiCbtr/3.1.79": { "type": "package", "serviceable": true, - "sha512": "sha512-nteCc2FB7xxDMwnnEuAXsv6WXUnFznxZFhhQnAfsRJNr56Tk+FncXGroCVIAjoUgYKKFhIkBC+jYsR1X+d4l+w==", - "path": "hicbtr/3.1.78", - "hashPath": "hicbtr.3.1.78.nupkg.sha512" + "sha512": "sha512-N2is71MQ3pN8VEX64Zd9QfvjY/wLs3E3QKqsMgE8UvqCE2eXitJftiv7eQyvRBAXfUU5nZDur/Cdj3lORpOB8w==", + "path": "hicbtr/3.1.79", + "hashPath": "hicbtr.3.1.79.nupkg.sha512" }, - "HiDisp/3.1.78": { + "HiDisp/3.1.79": { "type": "package", "serviceable": true, - "sha512": "sha512-mHV9RsR+Gr+zrAprbFoIdNqGW/0ykYt5KfOjwUP1fwXsBreEUDLtzWY/Ad1bj1IzYLdtDrjxnBXWORYgFP4VvQ==", - "path": "hidisp/3.1.78", - "hashPath": "hidisp.3.1.78.nupkg.sha512" + "sha512": "sha512-kVMrYJMibmDcSyUBvUHFdj6Wu+GwQka08c2PUX5AT1QUq7TeEhdyC15lmL96PHusPblgCXFLso0P3dd7vwTbaw==", + "path": "hidisp/3.1.79", + "hashPath": "hidisp.3.1.79.nupkg.sha512" }, - "HiGeom/3.1.73": { + "HiGeom/3.1.74": { "type": "package", "serviceable": true, - "sha512": "sha512-g1+JsgQNPFs2MNOmTxCmhx9DfpW30bpdzmlnapJq7RCqRQCKtogMNwZRhAUKaPZDmfGntoHrI9wJNEWRswIHqg==", - "path": "higeom/3.1.73", - "hashPath": "higeom.3.1.73.nupkg.sha512" + "sha512": "sha512-T0vgnzXZ8SHmSEmJ3msfsYXyUqm6AOCLSzEveeqfJcK0vG+8ITSqBVwQiGe6EM2GybaU0Qe+1aCxyy1EsiOnuA==", + "path": "higeom/3.1.74", + "hashPath": "higeom.3.1.74.nupkg.sha512" }, - "HiLicense/3.1.73": { + "HiLicense/3.1.74": { "type": "package", "serviceable": true, - "sha512": "sha512-1BNiFSHIpr42QblW/mbBR/1M1L5g0Poe7ugnW0ztA6KthKrHn6nSSiOLnxUMlrE0WjiniXGUkSor1bTCyPpu2g==", - "path": "hilicense/3.1.73", - "hashPath": "hilicense.3.1.73.nupkg.sha512" + "sha512": "sha512-QKk9JdBfHmydnVELj/jXoY4MixBemd2gRBVv1lKN1DO/2aOlbddfY6ejPlrcvfhNagyuVJbHdqgx4rx9GWpx2w==", + "path": "hilicense/3.1.74", + "hashPath": "hilicense.3.1.74.nupkg.sha512" }, - "HiMech/3.1.85": { + "HiMech/3.1.86": { "type": "package", "serviceable": true, - "sha512": "sha512-T6+j7SkCpLZRcyvns8tcogvB4iwKBzDYwV2nTpUoMP+XmSY0uztsQC76BK3O1ORpYYEr+dLCmFntdjWUTPdCxQ==", - "path": "himech/3.1.85", - "hashPath": "himech.3.1.85.nupkg.sha512" + "sha512": "sha512-pp4nlY/zievxqavmQ7hFmj6H35zW6Xa7xO9MPzixWuthYxRmREM3KGKUZjrfMEQIvSZuAtawfhOuap8mqMGtcg==", + "path": "himech/3.1.86", + "hashPath": "himech.3.1.86.nupkg.sha512" }, - "HiNc/3.1.94": { + "HiNc/3.1.95": { "type": "package", "serviceable": true, - "sha512": "sha512-W4Z9JwU1FSHYw0u+mOKmeb0kMCnkK9KrkuBCB9QEI5jIwbKE/noWSgpdgWYMCxyDmQVTOL8uxRjpqxm4YjrcpA==", - "path": "hinc/3.1.94", - "hashPath": "hinc.3.1.94.nupkg.sha512" + "sha512": "sha512-sLHRRFs+amO1K1ybQqPoDZCK9+19ZVPX4m+poszrFBt/952gwZzixZT6QKdyKO1/6KxZ+oOlItUHlH++WUqqUw==", + "path": "hinc/3.1.95", + "hashPath": "hinc.3.1.95.nupkg.sha512" }, - "HiUniNc/3.1.82": { + "HiUniNc/3.1.83": { "type": "package", "serviceable": true, - "sha512": "sha512-msUPkCHId362e34plKLQnf6BL82TXTyNFOmG5V6PtrmwhG0Y08vQ9M7/l+H+yxywS+oVbzbiSP0VBcU+8WdWwA==", - "path": "hiuninc/3.1.82", - "hashPath": "hiuninc.3.1.82.nupkg.sha512" + "sha512": "sha512-5ZbH1xeVgjzEaKlENCB4AN5xaSUikvWao8OhrZm4Dq2ayQTb9DXYnJeVpcV1XEVE0WB2l6wzNcXJqrAmL2aYOg==", + "path": "hiuninc/3.1.83", + "hashPath": "hiuninc.3.1.83.nupkg.sha512" }, "MathNet.Numerics/5.0.0": { "type": "package", diff --git a/App/HiNC-2025-win-desktop.dll b/App/HiNC-2025-win-desktop.dll index 5a636c12..d8ff8c18 100644 Binary files a/App/HiNC-2025-win-desktop.dll and b/App/HiNC-2025-win-desktop.dll differ diff --git a/App/HiNC-2025-win-desktop.pdb b/App/HiNC-2025-win-desktop.pdb index bc1e9328..3865b451 100644 Binary files a/App/HiNC-2025-win-desktop.pdb and b/App/HiNC-2025-win-desktop.pdb differ diff --git a/App/HiNc.dll b/App/HiNc.dll index 767f6a92..f92f40eb 100644 Binary files a/App/HiNc.dll and b/App/HiNc.dll differ diff --git a/App/HiUniNc.dll b/App/HiUniNc.dll index 6b9c39d8..efea01bb 100644 Binary files a/App/HiUniNc.dll and b/App/HiUniNc.dll differ diff --git a/App/core.dll b/App/core.dll index 293a0035..33dc1c01 100644 Binary files a/App/core.dll and b/App/core.dll differ diff --git a/App/en/HiGeom.resources.dll b/App/en/HiGeom.resources.dll index 545238fb..a5f96a1e 100644 Binary files a/App/en/HiGeom.resources.dll and b/App/en/HiGeom.resources.dll differ diff --git a/App/en/HiMech.resources.dll b/App/en/HiMech.resources.dll index 6ad20041..1307ff12 100644 Binary files a/App/en/HiMech.resources.dll and b/App/en/HiMech.resources.dll differ diff --git a/App/wwwroot/HiAPI-docsite/api/Hi.Common.StringUtil.html b/App/wwwroot/HiAPI-docsite/api/Hi.Common.StringUtil.html index 0a49eeae..49c0f6d8 100644 --- a/App/wwwroot/HiAPI-docsite/api/Hi.Common.StringUtil.html +++ b/App/wwwroot/HiAPI-docsite/api/Hi.Common.StringUtil.html @@ -332,6 +332,43 @@ Class StringUtil + + +

+ 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[]
+
+
+ + + + + + + + + + + diff --git a/App/wwwroot/HiAPI-docsite/index.json b/App/wwwroot/HiAPI-docsite/index.json index 65c768e3..01de444e 100644 --- a/App/wwwroot/HiAPI-docsite/index.json +++ b/App/wwwroot/HiAPI-docsite/index.json @@ -907,7 +907,7 @@ "api/Hi.Common.StringUtil.html": { "href": "api/Hi.Common.StringUtil.html", "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(IEnumerable) Converts a collection of objects to a comma-separated string. public static string ToDotSplitedString(this IEnumerable objects) Parameters objects IEnumerable 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(IEnumerable) Converts a collection of objects to a comma-separated string. public static string ToDotSplitedString(this IEnumerable objects) Parameters objects IEnumerable 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": { "href": "api/Hi.Common.TaskUtil.html", diff --git a/App/wwwroot/HiAPI-docsite/xrefmap.yml b/App/wwwroot/HiAPI-docsite/xrefmap.yml index a4285dec..179df15c 100644 --- a/App/wwwroot/HiAPI-docsite/xrefmap.yml +++ b/App/wwwroot/HiAPI-docsite/xrefmap.yml @@ -13771,6 +13771,22 @@ references: fullName.vb: Hi.Common.StringUtil.ToDotSplitedString(Of T)(System.Collections.Generic.IEnumerable(Of T)) nameWithType: StringUtil.ToDotSplitedString(IEnumerable) 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 name: TaskUtil href: api/Hi.Common.TaskUtil.html diff --git a/App/zh-Hans/HiMech.resources.dll b/App/zh-Hans/HiMech.resources.dll index ff8cdc58..d967a6db 100644 Binary files a/App/zh-Hans/HiMech.resources.dll and b/App/zh-Hans/HiMech.resources.dll differ diff --git a/App/zh-Hans/HiNc.resources.dll b/App/zh-Hans/HiNc.resources.dll index 23f6696d..4317bbde 100644 Binary files a/App/zh-Hans/HiNc.resources.dll and b/App/zh-Hans/HiNc.resources.dll differ diff --git a/App/zh-Hant/HiGeom.resources.dll b/App/zh-Hant/HiGeom.resources.dll index 748e5db8..57e641b6 100644 Binary files a/App/zh-Hant/HiGeom.resources.dll and b/App/zh-Hant/HiGeom.resources.dll differ diff --git a/App/zh-Hant/HiMech.resources.dll b/App/zh-Hant/HiMech.resources.dll index 81ab44d8..f3f831e0 100644 Binary files a/App/zh-Hant/HiMech.resources.dll and b/App/zh-Hant/HiMech.resources.dll differ diff --git a/App/zh-Hant/HiNc.resources.dll b/App/zh-Hant/HiNc.resources.dll index a091ec86..ed59b694 100644 Binary files a/App/zh-Hant/HiNc.resources.dll and b/App/zh-Hant/HiNc.resources.dll differ