??????????????
???????????? ???????[ 2014/1/22 13:47:34 ] ??????????????? ???????? ???
	??????????????????????????????????????????????ù????д?????????????????????д???????????????????????????????????????
	????1??????????????????????????λ?????????????????????MyString??????????????????????????????
	//????
	#ifndef MYSTRING_H
	#define MYSTRING_H
	#include <QString>
	class CGMyString
	{
	public:
	QString subQString(int start?? int end);
	public:
	CGMyString(QString& qstr);
	};
	#endif // MYSTRING_H
	//??????#include "MyString.h"
	CGMyString::CGMyString(QString &qstr)
	{
	}
	QString CGMyString::subQString(int start?? int end)
	{
	QString re;
	return re;
	}
	????2?????д???????
	#include <QString>
	#include <QtTest>
	#include <MyString.h>
	class MyStringTest : public QObject
	{
	Q_OBJECT
	public:
	MyStringTest();
	private Q_SLOTS:
	void testSubQString();
	void testSubQString_data();
	};
	MyStringTest::MyStringTest()
	{
	}
	void MyStringTest::testSubQString()
	{
	QFETCH(QString?? str);
	QFETCH(int?? start);
	QFETCH(int?? end);
	QFETCH(QString?? result);
	CGMyString testStr(str);
	QString execResult = testStr.subQString(start?? end);
	QVERIFY2(0 == result.compare(execResult)?? "MyStringTest_subQString");
	}
	void MyStringTest::testSubQString_data()
	{
	QTest::addColumn<QString>("str");
	QTest::addColumn<int>("start");
	QTest::addColumn<int>("end");
	QTest::addColumn<QString>("result");
	QTest::newRow("illegal start") << QString::fromLocal8Bit("HELLO") << -1 << 2 << "";
	QTest::newRow("illegal end") << QString::fromLocal8Bit("HELLO") << 0 << 7 << "";
	QTest::newRow("legal") << QString::fromLocal8Bit("HELLO") << 0 << 3 << "HELL";
	}
	QTEST_APPLESS_MAIN(MyStringTest)
	#include "tst_unittesttest.moc"
??????
					
					???·???
App??С????H5?????????????????Щ??
2024/9/11 15:34:34?????????????????????????
2024/9/10 11:13:49P-One ???????????????????????????????????????
2024/9/10 10:14:12???????????????????????????
2024/9/9 18:04:26??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44
					
			
								
								
								
								
								
								
								
								
								
								
				
sales@spasvo.com