- Supports comments - more efficient as it scans the text block instead of repeatedly searching throught the whole block - type matching based on catalog (but need to add aliases manually) - added many keywords todo: - heap corruption bug - symbol stops at special char like parenthese or operator or something similar.
25 lines
451 B
C++
25 lines
451 B
C++
#ifndef UTIL_H
|
|
#define UTIL_H
|
|
|
|
#include <QString>
|
|
#include <QTableView>
|
|
|
|
QString msfloatToHumanReadableString(float ms);
|
|
void copySelectionToClipboard(const QTableView *view);
|
|
QString ConvertToMultiLineCString(const QString &in);
|
|
void exportTable(const QTableView *view, QTextStream &out);
|
|
|
|
namespace std {
|
|
|
|
template <>
|
|
struct hash<QString>
|
|
{
|
|
std::size_t operator()(const QString& s) const
|
|
{
|
|
return qHash(s);
|
|
}
|
|
};
|
|
|
|
}
|
|
|
|
#endif // UTIL_H
|