⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lytwstring.h

📁 正则表达式由一些普通字符和一些元字符(metacharacters)组成。普通字符包括大小写的字母和数字
💻 H
字号:
#ifndef LYTWSTRING_H
#define LYTWSTRING_H

#define _CRT_SECURE_NO_DEPRECATE
#include <iostream>
#include <string.h>
#include <wchar.h>
#include <math.h>
#include <iomanip> 

using namespace std;

class LytWString
{
protected:
	int Length;
	wchar_t* String;
public:
	LytWString();
	LytWString(const wchar_t& Temp);
	LytWString(const wchar_t* Temp);
	LytWString(const LytWString& Temp);
	LytWString operator=(const wchar_t* Temp);
	LytWString operator=(const LytWString& Temp);
	bool operator==(const LytWString& Temp)const;
	bool LytWString::operator!=(const LytWString& Temp)const;
	bool LytWString::operator>(const LytWString& Temp)const;   
	bool LytWString::operator<(const LytWString& Temp)const;
	bool LytWString::operator>=(const LytWString& Temp)const;
	bool LytWString::operator<=(const LytWString& Temp)const;
	LytWString operator+(const LytWString& Temp)const;
	LytWString operator+(const wchar_t* Temp)const;
	LytWString operator++();
	LytWString operator++(int);
	LytWString operator--();
	LytWString operator--(int);
	//LytWString operator*();
	friend LytWString operator+(const wchar_t* TempLeft, const LytWString& TempRight);
	friend wostream& operator<<(wostream& Output, const LytWString& Temp);
	friend wistream& operator>>(wistream& Input, LytWString& Temp);
	friend LytWString Wchar_tToLytWString(const wchar_t& Temp);
	LytWString Sub(const int Index, const int Count)const;
	void Insert(const int Index, const LytWString Temp);
	void Delete(int Index, int Count);
	LytWString ToUpper()const;
	LytWString ToLower()const;
	LytWString Left(const int Count)const; 
	LytWString Right(const int Count)const;
	LytWString TrimLeft()const;
	LytWString TrimRight()const; 
	LytWString Trim()const;
	int Pos(const LytWString& Temp)const;
	int Replace(const LytWString& Find , const LytWString& Result);
	int Size()const;
	wchar_t& operator[](int Index);
	const wchar_t* Buffer()const;
	~LytWString();
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -