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

📄 rstring.h

📁 TGFF省城程序
💻 H
字号:
// Copyright 2000 by Robert Dick.// All rights reserved.#ifndef R_STRING_H_#define R_STRING_H_/*###########################################################################*/#include "RFunctional.h"#include <string>#include <sstream>namespace rstd {template <typename T> class RVector;/*===========================================================================*/// Support routines for strings.const RVector<std::string>	tokenize(const std::string &s, const char * delim = " \t\n");const std::string first_token(const std::string & s,	const char * delim = " \t\n");void pop_token(std::string & s, const char * delim = " \t\n");template <typename T>	struct insen_less : rbinary_function<const T &, const T &, bool>	{ bool operator()(const T & a, const T & b) const; };template <typename T>	struct insen_equal_to : rbinary_function<const T &, const T &, bool>	{ bool operator()(const T & a, const T & b) const; };template <>	struct insen_less<char>	{ bool operator()(const char & a, const char & b) const; };template <>	struct insen_equal_to<char>	{ bool operator()(const char & a, const char & b) const; };template <>	struct insen_less<std::string>	{ bool operator()(const std::string & a, const std::string & b) const; };template <>	struct insen_equal_to<std::string>	{ bool operator()(const std::string & a, const std::string & b) const; };/*===========================================================================*/// Automatically converts strings to many other types.class Conv {public:	Conv(const std::string & str);	operator bool();	operator signed char();	operator unsigned char();	operator short();	operator unsigned short();	operator int();	operator unsigned();	operator long();	operator unsigned long();	operator float();	operator double();private:		std::string str_;};template <typename T> std::string to_string(const T & data);/*===========================================================================*/void RString_test();/*###########################################################################*/#include "RString.cct"}#endif

⌨️ 快捷键说明

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