交换字符串的 MathLink C 函数

 

参考资料参考资料

发送字符串

MLPutString() 零值结尾的 Mathematica 字符串

MLPutByteString() 8位字符串

MLPutUnicodeString(), MLPutUCS2String() 16位 UCS-2 字符串

MLPutUTF8String() UTF-8 字符串

MLPutUTF16String() UTF-16 字符串

MLPutUTF32String() UTF-32 字符串

接受字符串

MLGetString() 零值结尾的 Mathematica 字符串

MLGetByteString() 8位字符串

MLGetUnicodeString(), MLGetUCS2String() 16位 UCS-2 字符串

MLGetUTF8String() UTF-8 字符串

MLGetUTF16String() UTF-16 字符串

MLGetUTF32String() UTF-32 字符串

释放字符串的内存

MLReleaseString() 释放分配给字符串的 MathLink 内存

MLReleaseByteString() 8位字符串

MLReleaseUCS2String() 16位 UCS-2 字符串

MLReleaseUTF8String() UTF-8 字符串

MLReleaseUTF16String() UTF-16 字符串

MLReleaseUTF32String() UTF-32 字符串

New to Mathematica? Find your learning path »
Have a question? Ask support »