问题标签 [qchar]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
313 浏览

c++ - 如何评估开关中的 QChar 对象?

浏览了一堆代码,希望对其进行改进。

我遇到了这一点:

如果c是一个字符,这将很容易变成一个开关。c是一个 QChar;我应该如何将 QChar 变成一个整数并可靠地将它与各种情况>等进行比较=