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

📄 utilities.h

📁 Full support for extended regular expressions (those with intersection and complement); Support for
💻 H
字号:

#ifndef __DOLPHIN__UTILITIES_H

#define __DOLPHIN__UTILITIES_H

#include <string.h>
#include <string>
#include <iostream>
#include <functional>

class NullTerminatedStringCompare : std::binary_function<char *, char *, bool>
{
public:
	bool operator ()(const char *s1, const char *s2) const
	{
		return strcmp(s1, s2)<0;
	}
};

std::string roman_itoa(int n, bool use_capital_letters);
std::string strip_dot(const std::string &s);

// style=1: "IDENTIFIER", style=2: "Identifier".
std::string convert_file_name_to_identifier(const std::string &s, int style);

const char *printable_increment(int x);

void print_dot_message(const char *file_name, std::ostream &os);

#endif

⌨️ 快捷键说明

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