Functions._C2Hex 方法 | |
Convert a string value to a hexadecimal string.
命名空间:
XSharp.Core
程序集:
XSharp.Core (在 XSharp.Core.dll 中) 版本:2.22 GA
语法 FUNCTION _C2Hex(
cSource AS STRING,
lAddSpace AS LOGIC
) AS STRING
public static string _C2Hex(
string cSource,
bool lAddSpace
)
查看代码参数
- cSource
- 类型:String
String to convert - lAddSpace
- 类型:Boolean
When TRUE then the inidividual characters are separated with a space in the result string
返回值
类型:
StringA string with the hex representation of the value
示例
? _C2Hex("abcdef", TRUE) // 61 62 63 64 65 66
? _C2Hex("abcdef", FALSE) // 616263646566
参见