QT中strtok_s的等效项是什么? [英] What is the equivalent for strtok_s in QT?
本文介绍了QT中strtok_s的等效项是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
QT中strtok_s的等效项是什么?
What is the equivalent for strtok_s in QT??
推荐答案
QT是一个应用程序框架.strtok_s
是C运行时函数.更具体地说,strtok_s
是Microsoft的同一标准C非安全功能strtok
的安全版本.如果您在Windows上使用QT,请继续使用strtok_s
,因为它应该可用.如果您的代码将要在Linux上运行,请使用strtok
,然后添加pragma
以隐藏/忽略在Visual Studio编译期间收到的警告.
QT is an application framework.strtok_s
is a C runtime function. More specifically,strtok_s
is Microsoft''s secure version of the same standard C non-secure function,strtok
. If you''re using QT on Windows, just keep usingstrtok_s
because it should be available. If your code is going to be running on Linux, usestrtok
, and add thepragma
that hides/ignores the warning you get during a Visual Studio compile.
strtok
是标准的C库函数,可以用来代替Microsoft特定的strtok_s
strtok
is the standard C library function that can be used instead of Microsoft-specificstrtok_s
我认为您正在寻找 ^ ]
I think you are looking for QString::split() [^]
这篇关于QT中strtok_s的等效项是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文